/* =====================================================
   THEME VARIABLES
   ===================================================== */

/* DARK MODE (DEFAULT) */
:root {
    --bg-main: #0b0b0b;
    --bg-secondary: #161616;
    --bg-nav: #0e0e0e;

    --text-main: #eaeaea;
    --text-muted: #bdbdbd;

    --accent: #3fa9f5;
    --border: #222;
}

/* LIGHT MODE */
:root[data-theme="light"] {
    --bg-main: #f4f4f4;
    --bg-secondary: #ffffff;
    --bg-nav: #ffffff;

    --text-main: #111111;
    --text-muted: #555555;

    --accent: #1e6fd9;
    --border: #dddddd;
}

/* =====================================================
   BASE RESET & TYPOGRAPHY
   ===================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, var(--bg-main), var(--bg-secondary));
    color: var(--text-main);
    line-height: 1.75;
}

p {
    color: var(--text-muted);
}

ul {
    padding-left: 22px;
}

ul li {
    margin-bottom: 14px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: auto;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    max-height: 120px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--accent);
}

/* =====================================================
   HEADERS & LAYOUT
   ===================================================== */
header {
    text-align: center;
    padding: 120px 30px;
}

section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 25px;
}

.panel {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 55px;
    margin-bottom: 80px;
    border: 1px solid var(--border);
}

h1 {
    font-size: 3.6rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.button.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

/* =====================================================
   CONVERSATION DROPDOWN (CRITICAL FIX)
   ===================================================== */
.conversation-box {
    margin-top: 40px;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 720px;
}

.conversation-box form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.conversation-box input,
.conversation-box textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 1rem;
}

.conversation-box textarea {
    min-height: 160px;
    resize: vertical;
}

.conversation-box button {
    align-self: flex-start;
    margin-top: 10px;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: var(--bg-nav);
    padding: 90px 25px;
    text-align: center;
    border-top: 1px solid var(--border);
}

/* =====================================================
   MOBILE RESPONSIVENESS
   ===================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    header {
        padding: 90px 20px;
    }

    section {
        padding: 70px 20px;
    }

    .panel {
        padding: 35px;
    }

    .nav-container {
        flex-direction: column;
        gap: 18px;
    }

    .conversation-box {
        padding: 30px;
    }
}
