/* ========================================
   STATE COLLEGE HUB - MODERN DARK THEME
   ======================================== */

/* CSS Variables for Dark Theme */
:root {
    /* Dark theme colors */
    --bg-dark: #0a0e27;
    --bg-dark-secondary: #151935;
    --bg-card: #1a1f3a;
    --bg-card-hover: #1f2544;
    
    /* Accent colors with gradients */
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Text colors */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Border and divider */
    --border: rgba(148, 163, 184, 0.1);
    --border-light: rgba(148, 163, 184, 0.05);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.1) 0, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Desktop Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 31, 58, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border);
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-light);
    }
    
    nav a {
        display: block;
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
}

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */

main {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

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

h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1.25rem;
}

h4 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   CARD COMPONENTS
   ======================================== */

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.3);
}

.card-highlight {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79, 70, 229, 0.05) 100%);
}

.card-warning {
    border-left: 4px solid var(--warning);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.05) 100%);
    padding: 2rem;
}

.card-info {
    border-left: 4px solid var(--secondary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.card-success {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.05) 100%);
}

/* Proper spacing after elements inside cards */
.card > *:last-child {
    margin-bottom: 0;
}

.card .btn {
    margin-top: 1.5rem;
}

.card table + p,
.card table + .btn {
    margin-top: 2rem;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Grid cards should have no bottom margin */
.grid .card,
.grid .feature-box {
    margin-bottom: 0;
}

/* ========================================
   TABLES
   ======================================== */

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

thead th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 1.25rem 1.5rem;
    color: var(--text-secondary);
}

tbody td strong {
    color: var(--primary-light);
}

/* ========================================
   BUTTONS & CTAs
   ======================================== */

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ========================================
   LISTS
   ======================================== */

ul, ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.list-clean {
    list-style: none;
    margin-left: 0;
}

.list-icons {
    list-style: none;
    margin-left: 0;
}

.list-icons li {
    padding-left: 2rem;
    position: relative;
}

.list-icons li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79, 70, 229, 0.1) 100%);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 900px;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-item {
    background: var(--bg-card);
    border-left: 4px solid var(--secondary);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   STATS GRID
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(79, 70, 229, 0.1) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.stat-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card p {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

/* ========================================
   FEATURE BOXES
   ======================================== */

.feature-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: block;
}

.feature-box h3,
.feature-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ========================================
   SPACING UTILITIES
   ======================================== */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

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

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, rgba(79, 70, 229, 0.1) 100%);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

footer p {
    margin: 0.75rem 0;
    color: var(--text-muted);
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    nav {
        padding: 1rem;
    }

    main {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    .grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card,
    .feature-box {
        padding: 1.75rem;
    }

    .hero {
        padding: 2rem;
    }

    .stat-card p {
        font-size: 2.25rem;
    }
    
    thead th,
    tbody td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }
    
    h1 {
        font-size: 1.875rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    header,
    footer,
    .btn,
    .menu-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
