/*
 * style.css | Council App
 * A clean, organized stylesheet for the project.
 *
 * --- TABLE OF CONTENTS ---
 * 1. Global Variables & Base Styles
 * 2. Site-Wide Components: Header & Footer
 * 3. Interactive Aurora Background
 * 4. Page Layouts & Main Content
 * 5. Component Styles
 * 6. Animations & Keyframes
 * 7. Responsive Media Queries (Placeholder)
*/


/* --- 1. Global Variables & Base Styles --- */
:root {
    --brand-blue: #5B5FFB;
    --brand-purple: #A777F8;
    --background-dark: #0A0A14;
    --text-primary: #EAEAF2;
    --text-secondary: #9292A8;
    --surface-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevents scrollbars on main layout */
    background-color: var(--background-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
}

/* FIX: The body should NOT be a flex container. 
   This allows the header and footer to be positioned relative to the viewport correctly. */
body {
    position: relative;
}


/* --- 2. Site-Wide Components: Header & Footer --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

header .logo {
    width: 40px;
    height: auto;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--surface-glass);
}

footer {
    position: absolute;
    bottom: 1.5rem;
    left: 0; /* FIX: Ensure footer is aligned to the left before centering text */
    right: 0; /* FIX: Ensure footer spans the full width */
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.5;
    z-index: 5;
}


/* --- 3. Interactive Aurora Background --- */
#aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#aurora-bg::before {
    content: '';
    position: absolute;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    width: 800px;
    height: 800px;
    background-image: radial-gradient(
        circle,
        rgba(91, 95, 251, 0.3) 0%,
        rgba(91, 95, 251, 0) 50%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.6s ease-out, top 0.6s ease-out;
}


/* --- 4. Page Layouts & Main Content --- */
main {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

/* FIX: Flexbox properties moved here from the body tag.
   This correctly centers ONLY the homepage content. */
main.homepage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    animation: fadeIn 1.5s ease-out;
}

main.content-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
    overflow-y: auto;
    gap: 2.5rem; /* FIX: Adds consistent vertical spacing between all sections */
}


/* --- 5. Component Styles --- */

/* Homepage: Logo & Titles */
.logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    max-width: 15ch;
    letter-spacing: -0.03em;
}

h1 span {
    color: var(--brand-blue);
    text-shadow: 0 0 20px rgba(91, 95, 251, 0.5);
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 50ch;
    line-height: 1.6;
}

/* Homepage: "Coming Soon" Section */
.coming-soon-container {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.coming-soon-container h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* FAQ Page: Threat Landscape Section */
.threat-section {
    width: 100%;
    max-width: 768px;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    /* FIX: Removed margin-bottom as the parent 'gap' now handles spacing */
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.threat-section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.threat-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.threat-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.threat-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.threat-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.threat-list li::before {
    content: '🛡️';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1rem;
}

.threat-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* FAQ Page: Accordion Styles */
.faq-container {
    width: 100%;
    max-width: 768px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

details {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

details:hover {
    background: rgba(255, 255, 255, 0.08);
}

details[open] {
    border-color: rgba(91, 95, 251, 0.5);
}

summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

details[open] summary .faq-icon {
    transform: rotate(45deg);
}


/* --- 6. Animations & Keyframes --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- 7. Responsive Media Queries (Placeholder) --- */
/* @media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
} */