/* =========================================================
   DAW Tuner – Global Styles v1.2
   - Unified dark theme
   - Softer text colors
   - Improved list & paragraph spacing
   - Navbar + separators
   - Callouts & disclaimer
   - Forms & buttons
   - Footer
   - Cookie banner
   ========================================================= */

/* ---------- Root Theme Variables ---------- */
:root {
    --bg: #141414;
    --card: #1f1f1f;

    /* Softer text */
    --text: #d0d0d0;
    --text-muted: #8c8c8c;

    --accent: #4aa3ff;
    --accent-hover: #6bb9ff;

    --danger: #ff5555;
    --warning: #ffb347;
    --info: #4aa3ff;

    --radius: 12px;
    --radius-lg: 16px;

    --font-body: Arial, sans-serif;
    --max-width: 980px;
}

/* ---------- Reset & Global ---------- */
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    font-family: var(--font-body);
    color: var(--text);
}

/* ---------- Layout Wrappers ---------- */
.wrapper {
    padding: 30px 40px 40px 40px;
}

.card {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px;
    background: var(--card);
    border-radius: var(--radius);
    box-sizing: border-box;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    margin-top: 0;
    color: #ffffff;
}

p {
    line-height: 1.55;
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
}

ul, ol {
    padding-left: 20px;
    margin-top: 0.6rem;
    margin-bottom: 1.2rem;
    font-size: 0.92rem;
}

ul li,
ol li {
    margin-bottom: 0.55rem;
    line-height: 1.5;
}

code {
    background: #202020;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Small helper text */
.hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* For grouped version notes (e.g., changelog) */
.changelog-section {
    margin-top: 2.4rem;
}

/* ---------- Links ---------- */
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--accent-hover);
}

/* ---------- Version Text ---------- */
.version {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* ---------- Sections ---------- */
.section,
.tool-section {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #333;
}
.section:first-of-type,
.tool-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    background: #333;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-left: 6px;
}

/* ---------- Callout Boxes ---------- */
.callout {
    background: #252525;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin: 12px 0;
}

.callout-info   { border-left: 3px solid var(--info); }
.callout-warn   { border-left: 3px solid var(--warning); }
.callout-danger { border-left: 3px solid var(--danger); }
.callout-okay   { border-left: 3px solid var(--accent); }

/* ---------- Disclaimer (Red Box) ---------- */
.disclaimer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #f5c2c2;
    background: #3a1010;
    border: 1px solid #ff5555;
    padding: 12px 14px;
    border-radius: 8px;
}

.disclaimer strong {
    color: #ffe5e5;
}

.disclaimer ul {
    margin-top: 8px;
    padding-left: 20px;
}

/* ---------- Forms ---------- */
input[type=text],
input[type=email],
select,
textarea {
    width: 100%;
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 15px;
    box-sizing: border-box;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* Align submit button row in forms when needed */
.submit-row {
    margin-top: 10px;
    text-align: right;
}

/* ---------- Buttons ---------- */
button,
input[type=submit] {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
}

button:hover,
input[type=submit]:hover {
    background: var(--accent-hover);
}

/* ---------- Navigation Bar ---------- */
.navbar {
    background: #1a1a1a;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    border-bottom: 1px solid #333;
}

.navbar a {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0 4px;
}

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

.nav-sep {
    color: #555;
    padding: 0 6px;
    user-select: none;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 50px;
    padding: 20px 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.site-footer a:hover {
    color: #fff;
}

.footer-divider {
    margin: 0 10px;
    color: #555;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #111;
    border-top: 1px solid #333;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text);
}

.cookie-banner p {
    margin: 0;
    margin-right: 10px;
    flex: 1 1 auto;
}

.cookie-banner button {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.cookie-banner button:hover {
    background: var(--accent-hover);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 700px) {
    .wrapper {
        padding: 20px;
    }

    .navbar {
        gap: 8px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cookie-banner p {
        margin-right: 0;
    }
}
