/* 
 * Shared Student Theme Styles
 * Dark futuristic theme for all student-facing pages
 * Created to ensure consistency across survey, essay results, and student direct pages
 */

/* ========================================
   BASE STYLES - Applied to all student pages
   ======================================== */

/* Body styles for dark theme */
.survey-body {
    background: linear-gradient(135deg, #1a1d3a 0%, #2a2942 50%, #1f1b2e 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height */
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Mobile - ensure scrollable body */
@media (max-width: 768px) {
    .survey-body {
        overflow-y: auto;
        height: auto;
    }
}

/* ========================================
   TYPOGRAPHY - Common text styles
   ======================================== */

/* Headers */
.survey-body h1, 
.survey-body h2, 
.survey-body h3 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    line-height: 1.2;
}

/* Eyebrow text */
.survey-body .eyebrow-text,
.survey-body .results-eyebrow {
    color: #5c79ec;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* ========================================
   COMMON COMPONENTS
   ======================================== */

/* Container */
.survey-body .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Logo Section - Common across student pages */
.survey-body .logo-section {
    padding: 12px 0 8px 0;  /* Match index.html sizing */
    text-align: center;
    position: relative;
    z-index: 100;
}

.survey-body .logo-img {
    width: 40px;  /* Match index.html - width not height */
    height: auto;
}

/* Glass-morphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Primary CTA Button */
.survey-body .cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3d4dee 0%, #5c79ec 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.survey-body .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 77, 238, 0.4);
}

/* Secondary Button */
.survey-body .secondary-button {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: #8da4f7;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(141, 164, 247, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.survey-body .secondary-button:hover {
    background: rgba(141, 164, 247, 0.1);
    border-color: #8da4f7;
    transform: translateY(-1px);
}

/* ========================================
   FLOATING PARTICLES - Animated background
   ======================================== */

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(92, 121, 236, 0.6);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 70%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0) translateX(0);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-30px) translateX(10px);
    }
}

/* ========================================
   ANIMATIONS - Common animation utilities
   ======================================== */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text colors */
.text-primary { color: #5c79ec; }
.text-secondary { color: #8da4f7; }
.text-muted { color: rgba(255, 255, 255, 0.6); }

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Hide on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}