/*
Theme Name: VBallStars
Theme URI: https://vballstars.com
Author: VBallStars Team
Author URI: https://vballstars.com
Description: Evidence-based mental performance assessments for elite volleyball athletes. Science-backed assessments. Championship mindset.
Version: 1.1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vballstars
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
*/

/* ===== GLOBAL VARIABLES & RESET ===== */
:root {
    --purple-gradient: linear-gradient(135deg, #1e3a8a 0%, #0a1628 100%);
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --bg-light: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --border-radius: 12px;
    --purple-bright: #1e3a8a;
    --purple-deep: #0a1628;
    --gold: #d4af37;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: #1e293b;
    line-height: 1.5;
}

/* ===== GLOBAL HEADER & NAVIGATION ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--purple-gradient);
    color: white;
    padding: 0.75rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-navigation {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.main-navigation a:hover,
.main-navigation a.active {
    border-bottom-color: white;
}

.user-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-icon {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.25);
}

/* ===== GLOBAL FOOTER ===== */
.site-footer {
    background: var(--purple-gradient);
    color: white;
    padding: 3rem 5% 1.5rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: white;
    color: #1e293b;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid #3b82f6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== DASHBOARD & PROFILE COMMON ===== */
.dashboard-grid,
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--card-shadow);
}
/* ===== MOBILE RESPONSIVE FIXES – ADD TO EXISTING style.css ===== */

/* Base mobile adjustments */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    p { font-size: 0.9375rem !important; }
    
    /* Containers */
    .dashboard-grid,
    .profile-grid,
    .coach-dashboard,
    [style*="max-width: 1400px"],
    [style*="max-width: 1200px"],
    [style*="max-width: 900px"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Stats cards - 2 columns on tablet */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Assessment question containers */
    .assessment-form,
    [style*="max-width: 800px"] {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        padding: 1rem !important;
    }
    
    /* Question options - stack vertically on mobile */
    [style*="display: flex; gap: 0.5rem;"]:not(.main-navigation) {
        flex-direction: column !important;
    }
    
    /* Mood check buttons */
    .mood-btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Navigation */
    .site-header {
        flex-direction: column !important;
        padding: 0.75rem 1rem !important;
    }
    
    .main-navigation {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .main-navigation a {
        font-size: 0.875rem !important;
        padding: 0.5rem !important;
    }
    
    .user-controls {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    /* Footer */
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* Results page constructs grid */
    [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
    
    /* 3-column priority areas */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Neural network canvas */
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Coach dashboard */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .athlete-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .athlete-table table {
        min-width: 800px !important;
    }
    
    /* Modals */
    .coach-modal-content,
    [id*="modal"] > div:first-child {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1rem !important;
    }
    
    /* Action buttons */
    .btn-primary,
    .btn-secondary,
    [style*="padding: 0.75rem 1.5rem"] {
        width: 100% !important;
        justify-content: center !important;
        margin: 0.25rem 0 !important;
    }
    
    /* Hero section */
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    
    .hero-logo svg {
        max-width: 80% !important;
        height: auto !important;
    }
    
    /* Progress bars - ensure visibility */
    .progress-bar,
    [style*="height: 8px"] {
        width: 100% !important;
    }
    
    /* Toast notifications */
    .toast-container {
        left: 1rem !important;
        right: 1rem !important;
        bottom: 1rem !important;
        max-width: none !important;
    }
    
    .toast {
        max-width: 100% !important;
    }
    
    /* Touch targets - minimum 44px */
    button,
    .btn-icon,
    .mood-btn,
    [role="button"],
    a[style*="padding"] {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Fix overlapping text */
    [style*="white-space: nowrap"] {
        white-space: normal !important;
        word-break: break-word !important;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    /* Stats cards - 1 column on phones */
    [style*="grid-template-columns: repeat(4, 1fr)"],
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer - 1 column */
    .footer-widgets {
        grid-template-columns: 1fr !important;
    }
    
    /* Welcome card */
    [style*="display: flex; align-items: center; gap: 1rem;"] {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    /* Profile card */
    #profile-summary > div {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    /* Next step banner */
    [style*="display: flex; align-items: center; justify-content: space-between;"] {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    /* Assessment navigation */
    #prev-btn,
    #next-btn,
    #submit-btn {
        width: 100% !important;
        margin: 0.25rem 0 !important;
    }
    
    /* Results readiness meter */
    [style*="display: flex; align-items: center; gap: 1.5rem;"] {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    /* Question counter */
    #question-counter {
        font-size: 0.75rem !important;
    }
    
    /* Scale legend */
    [style*="display: flex; justify-content: space-around;"] {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }
    
    /* Coach dashboard stats */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Hide less important columns on mobile */
    .athlete-table th:nth-child(4),
    .athlete-table th:nth-child(5),
    .athlete-table td:nth-child(4),
    .athlete-table td:nth-child(5) {
        display: none !important;
    }
}

/* Fix for very small devices */
@media (max-width: 360px) {
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.125rem !important; }
    
    .site-logo svg {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Touch-friendly improvements */
button, 
.btn-icon,
.mood-btn,
[role="button"] {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Prevent zoom on input focus for iOS */
input, select, textarea {
    font-size: 16px !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Fix for sticky hover on mobile */
@media (hover: none) {
    .feature-card:hover,
    .btn-icon:hover,
    .mood-btn:hover {
        transform: none !important;
    }
}

/* ===== ASSESSMENT FORMS ===== */
.assessment-form {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.question-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.question-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.assessment-section {
    margin-bottom: 2rem;
}

.assessment-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--purple-bright);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* ===== ASSESSMENT HUB ===== */
.assessment-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.assessment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -5px rgba(0,0,0,0.15);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed { background: #d1fae5; color: #065f46; }
.status-in-progress { background: #fef3c7; color: #92400e; }
.status-not-started { background: #f3f4f6; color: #4b5563; }

/* ===== MOOD CHECK PAGE ===== */
.mood-btn {
    width: 60px;
    height: 60px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mood-btn.selected {
    background: var(--purple-gradient);
    color: white;
    border-color: var(--purple-bright);
    transform: scale(1.05);
}

.mood-slider-btn {
    flex: 1;
    height: 48px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mood-slider-btn:hover,
.sleep-slider-btn:hover,
.stress-slider-btn:hover {
    background: var(--purple-bright);
    color: white;
    border-color: var(--purple-bright);
}

/* ===== RESULTS PAGES ===== */
.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.score-circle.elite { background: linear-gradient(135deg, #ffd700, #ffb700); }
.score-circle.advanced { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.score-circle.developing { background: linear-gradient(135deg, #f59e0b, #d97706); }
.score-circle.foundation { background: linear-gradient(135deg, #6b7280, #4b5563); }
.score-circle.champion { background: linear-gradient(135deg, #d4af37, #b38728); }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--purple-gradient);
    transition: width 0.3s ease;
}

/* ===== FRONT PAGE – PREMIUM REDESIGN ===== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple-gradient);
    color: white;
    padding: 4rem 2rem;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-logo {
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #0a0a0a;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -5px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #d4af37, #f9e076);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    transform: translateY(-3px);
}

.stats-banner {
    background: white;
    padding: 3rem 2rem;
    margin-top: -2rem;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--purple-bright);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #fff, #f9fafc);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--purple-bright);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 35px -10px rgba(30, 58, 138, 0.1);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 45px -10px rgba(30, 58, 138, 0.2);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(30,58,138,0.1) 0%, rgba(10,22,40,0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--purple-bright);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.feature-link:hover {
    gap: 0.75rem;
}

.how-it-works {
    padding: 6rem 2rem;
    background: white;
}

.steps-grid {
    max-width: 1000px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    color: #0a0a0a;
    font-size: 1.75rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.step-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.step-item p {
    color: #6b7280;
    line-height: 1.6;
}

.step-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 30px;
    right: -1.5rem;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.5;
}

.testimonials-section {
    padding: 6rem 2rem;
    background: linear-gradient(145deg, #f3f4f6, #fff);
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 8rem;
    color: var(--purple-bright);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #1f2937;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--purple-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.cta-section {
    padding: 6rem 2rem;
    background: var(--purple-gradient);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* ===== LEGAL & STATIC PAGES ===== */
.legal-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.legal-content .card {
    padding: 2rem;
}

.legal-content h2 {
    color: var(--purple-bright);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #4b5563;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.legal-content th,
.legal-content td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.legal-content th {
    background: #f3f4f6;
    font-weight: 600;
}

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

.hidden { display: none !important; }
.visible { display: block !important; }

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-content h1 {
        -webkit-text-fill-color: white;
        background: none;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    .hero-cta {
        justify-content: center;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .step-item:not(:last-child)::after {
        content: '↓';
        top: auto;
        bottom: -1.5rem;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    .main-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .user-controls {
        width: 100%;
        justify-content: center;
    }
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-section {
        min-height: 70vh;
    }
}

@media (max-width: 480px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-cta {
        flex-direction: column;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .assessment-form {
        padding: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer,
    .user-controls,
    .btn-icon,
    .hero-section,
    .cta-section,
    .stats-banner {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        break-inside: avoid;
    }
    a {
        text-decoration: none;
        color: black;
    }
    h1, h2, h3, h4 {
        color: black !important;
    }
}
/* UsersWP form styling */
.uwp-registration-form,
.uwp-login-form,
.uwp-account-form,
.uwp-profile-form,
.uwp-forgot-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.08);
}

.uwp-registration-form input,
.uwp-login-form input,
.uwp-account-form input,
.uwp-profile-form input,
.uwp-forgot-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.uwp-registration-form input[type="submit"],
.uwp-login-form input[type="submit"],
.uwp-account-form input[type="submit"],
.uwp-profile-form input[type="submit"],
.uwp-forgot-form input[type="submit"] {
    background: #1e3a8a;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.uwp-registration-form input[type="submit"]:hover {
    background: #2a4a9a;
    transform: translateY(-2px);
}