/* FPL Wrapped - Common Styles */

/* ========================================
   ANIMATIONS & KEYFRAMES
   ======================================== */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.welcome-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========================================
   FORM INPUTS - GLASS MORPHISM
   ======================================== */

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.glass-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.glass-input:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.glass-input .form-control {
    color: var(--text-primary);
    background: transparent !important;
    border: none !important;
}

.glass-input .form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.glass-input .form-control:focus {
    box-shadow: none;
    color: var(--text-primary);
}

.glass-input .input-group-text {
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary);
}

/* ========================================
   ALERTS - GLASS MORPHISM
   ======================================== */

.glass-alert {
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.glass-alert.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* ========================================
   BUTTONS - HERO STYLE
   ======================================== */

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-hero:disabled {
    opacity: 0.7;
    transform: none;
}

/* Signup/Login Button Styles */
.btn-signup,
.btn-login {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    margin: 1.5rem 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-signup::before,
.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-signup:hover::before,
.btn-login:hover::before {
    left: 100%;
}

.btn-signup:hover,
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 178, 172, 0.4);
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.signup-hero,
.login-hero {
    background: var(--hero-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.signup-hero::before,
.login-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></svg>');
    animation: float 20s ease-in-out infinite;
}

/* ========================================
   FORM CHECKBOXES
   ======================================== */

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========================================
   LINKS
   ======================================== */

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .btn-hero {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .card,
    .glass-card {
        border-radius: 16px;
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .card .card-body {
        padding: 1.25rem;
    }

    .row.g-4,
    .row.g-5,
    .row.g-3 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.25rem;
    }

    .row.g-4 > [class*="col-"],
    .row.g-5 > [class*="col-"],
    .row.g-3 > [class*="col-"] {
        margin-bottom: 1.25rem;
    }

    .analysis-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .analysis-nav::-webkit-scrollbar {
        display: none;
    }

    .analysis-nav .nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.95rem;
        padding: 0.75rem 1.2rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .stat-card-enhanced .stat-card-content {
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.9rem;
    }

    h1,
    .welcome-title {
        font-size: 1.75rem;
    }

    .btn-hero {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }

    .analysis-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .card,
    .glass-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}
