/**
 * YolkDay Common Styles
 * Shared CSS across all pages
 * Extracted: October 2025
 */

/* ==========================================
   CSS VARIABLES (Design Tokens)
   ========================================== */
:root {
    /* Colors */
    --yolk-yellow: #FBBF24;
    --yolk-yellow-dark: #F59E0B;
    --yolk-yellow-darker: #EAB308;
    --navy: #0F172A;
    --navy-light: #1E293B;
    --navy-lighter: #334155;
    --navy-grad-alt: #0A1628;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(203, 213, 225, 0.8);
    --text-tertiary: rgba(203, 213, 225, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Spacing */
    --footer-height: 80px;

    /* Borders */
    --border-light: rgba(255, 255, 255, 0.2);
    --border-lighter: rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-sm: 0 4px 14px 0 rgba(251, 191, 36, 0.15);
    --shadow-md: 0 8px 25px 0 rgba(251, 191, 36, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(-45deg, var(--navy), var(--navy-light), var(--navy), var(--navy-grad-alt));
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================
   BRAND ELEMENTS
   ========================================== */
.brand-header {
    text-align: center;
    margin-bottom: 20px;
}

.brand-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.025em;
}

.brand-header p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* The yolk.day "o" logo */
.yolk-o {
    display: inline-block;
    position: relative;
    color: transparent;
    background: var(--yolk-yellow);
    border-radius: 50%;
    width: 0.7em;
    height: 0.7em;
    line-height: 0.6em;
    text-align: center;
    margin: 0 0.02em;
    vertical-align: baseline;
}

.yolk-o::after {
    content: '';
    position: absolute;
    top: 0.1em;
    left: 0.16em;
    width: 0.15em;
    height: 0.22em;
    background: var(--text-primary);
    border-radius: 50%;
    opacity: 0.95;
    transform: rotate(40deg);
}

.highlight {
    color: var(--yolk-yellow);
}

/* ==========================================
   LAYOUT
   ========================================== */
.main-content {
    flex: 1 0 auto;
    overflow: visible;
}

/* Note: .container class is page-specific - each page defines its own container width */

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    width: 100%;
    background: linear-gradient(135deg, var(--yolk-yellow), var(--yolk-yellow-dark));
    color: var(--navy);
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.025em;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(135deg, var(--yolk-yellow-dark), var(--yolk-yellow-darker));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    margin-bottom: 0;
    box-shadow: none;
}

.btn-secondary:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    transform: none;
    box-shadow: none;
    text-decoration: underline;
}

.btn-skip {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-light);
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.btn-skip:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none;
}

/* ==========================================
   FORMS & INPUTS
   ========================================== */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: center;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-muted);
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-lighter);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.progress-bar {
    width: 100%;
    height: 2px;
    background: var(--border-lighter);
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yolk-yellow), #F97316);
    border-radius: 1px;
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

/* ==========================================
   TOOLTIPS
   ========================================== */
.tooltip {
    display: inline-block;
    position: relative;
    cursor: help;
    margin-left: 5px;
    color: var(--yolk-yellow);
    font-size: 0.8rem;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: normal;
    max-width: 200px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    z-index: 9999;
}

.toast-success {
    background: #10B981;
}

.toast-error {
    background: #EF4444;
}

.toast-warning {
    background: #F59E0B;
}

.toast-info {
    background: #3B82F6;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px 0 10px;
    }

    .brand-header h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        font-size: 1rem;
        padding: 14px;
    }
}

@media (max-width: 360px) {
    .brand-header h1 {
        font-size: 1.75rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}
