/*
 * site-theme.css
 * ============================================================
 * Single shared design system for the informational / account
 * pages (about.php, help.php, and — going forward — any other
 * page in this same "indigo/purple" family such as contact.php,
 * terms.php, privacy.php, cookies.php). These pages link this
 * ONE file instead of each shipping its own near-identical
 * <style> block, so there is one source of truth for colors,
 * layout and shared components — no drift, no conflicting
 * values getting out of sync between pages.
 *
 * Theme: indigo → purple gradient. This is a different palette
 * from the "Aurora" violet/blue theme in upload-theme.css (used
 * by uploader.php + video_files.php) — the two are intentionally
 * separate files so the two visual families never fight over the
 * same CSS variable names or bleed into each other.
 *
 * Page-specific rules (things only one page uses, like
 * .accordion-button on help.php or .timeline-item on about.php)
 * stay in that page's own inline <style> block. Only put a rule
 * here once two or more pages need the exact same thing.
 * ============================================================
 */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #f9fafb;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary, #667eea) 0%, var(--secondary, #764ba2) 100%);
    background-attachment: fixed;
}

/* ---------- Layout shell ---------- */

.content-container {
    margin-top: 80px;
    animation: fadeInUp 0.6s ease;
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* ---------- Buttons ---------- */

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(103, 126, 234, 0.4);
}

/* ---------- Shared responsive tweaks ---------- */

@media (max-width: 768px) {
    .glass-card {
        margin: 1rem;
        padding: 1.5rem !important;
    }
}

/* ---------- Responsive tables ---------- */

/* ---------- Responsive tables ---------- */
/* Tables stay full-width on desktop and become horizontally scrollable on
   narrow screens. This prevents the table itself from becoming a thin
   squeezed strip while keeping the page viewport responsive. */
.responsive-table-wrap, .table-container, .af-table-wrap, .ap-table-wrap {
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
}
.responsive-table-wrap > table,
.responsive-table-wrap table {
    width:100%;
    min-width:680px;
}
@media (max-width:640px) {
    .responsive-table-wrap > table,
    .responsive-table-wrap table { min-width:680px; }
}
