/* ============================================
   TIMELAPSE DESIGN SYSTEM
   ============================================ */

/* CSS Custom Properties (Design Tokens) */
:root {
    /* Brand Colors */
    --color-primary: #8B52D1;
    --color-primary-dark: #6B3FA0;
    --color-primary-light: #a78bfa;
    
    /* Neutral Colors */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-error: #ef4444;
    --color-error-light: #fee2e2;
    
    /* Typography */
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-mono: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: 'Open Sans', sans-serif;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

.poppins-semibold {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.sans-regular {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.sans-semibold {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.roboto-regular {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #8B52D1 0%, #6B3FA0 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px 0 rgba(139, 82, 209, 0.3);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px 0 rgba(139, 82, 209, 0.4);
    transform: translateY(-1px);
}

/* Secondary Button (Black) */
.btn-secondary {
    background-color: #000000;
    color: #FFFFFF;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #1f2937;
    transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #000000;
}

.btn-outline:hover:not(:disabled) {
    background-color: #f5f5f5;
}

/* Button Sizes */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   FORM STYLES (inline for reliability)
   ============================================ */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.form-label-hint {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    background-color: #FFFFFF;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-input:hover {
    border-color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #8B52D1;
    box-shadow: 0 0 0 3px rgba(139, 82, 209, 0.15);
}

.form-textarea {
    height: auto;
    min-height: 120px;
    padding: 1rem;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-error {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #ef4444;
}

.form-help {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* File Upload */
.form-file-wrapper {
    position: relative;
    display: inline-block;
}

.form-file-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.form-file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #000000;
    color: #FFFFFF;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.form-file-label:hover {
    background-color: #1f2937;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}
