/* Pinsource static website — dark theme matching raspisumpv2 */

/* ------------------------------------------------------------------ */
/* 1. Custom properties                                                  */
/* ------------------------------------------------------------------ */
:root {
    --brand:        #007f7f;
    --brand-hover:  #009999;
    --bg:           #1a1a1a;
    --nav-bg:       #111111;
    --nav-border:   #007f7f;
    --surface:      #242424;
    --surface-alt:  #2c2c2c;
    --border:       #333333;
    --text:         #e0e0e0;
    --text-muted:   #999999;
    --code-bg:      #1e1e1e;
    --code-text:    #a8d8a8;
    --radius:       6px;
    --max-w:        1000px;
}

[data-theme="light"] {
    --bg:           #f5f5f5;
    --nav-bg:       #ffffff;
    --nav-border:   #007f7f;
    --surface:      #ffffff;
    --surface-alt:  #f0f0f0;
    --border:       #dddddd;
    --text:         #1a1a1a;
    --text-muted:   #666666;
    --code-bg:      #f0f4f0;
    --code-text:    #1a5c1a;
}

/* ------------------------------------------------------------------ */
/* 2. Reset / base                                                       */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.88em;
    font-family: "Fira Code", "Courier New", monospace;
}

pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.88em;
    font-family: "Fira Code", "Courier New", monospace;
    line-height: 1.5;
    margin: 0.75rem 0;
    border-left: 3px solid var(--brand);
}

pre code { background: none; padding: 0; font-size: inherit; }

/* ------------------------------------------------------------------ */
/* 3. Navigation                                                         */
/* ------------------------------------------------------------------ */
.site-nav {
    background: var(--nav-bg);
    border-bottom: 2px solid var(--nav-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    color: var(--brand);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-check { display: none; }
.nav-toggle-label {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text);
    margin-left: auto;
    line-height: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: background 0.15s;
}
.nav-links a:hover { background: var(--surface-alt); text-decoration: none; color: var(--brand); }

.btn-donate {
    background: var(--brand) !important;
    color: #fff !important;
    padding: 0.35rem 0.9rem !important;
    border-radius: var(--radius) !important;
    font-size: 0.9rem;
}
.btn-donate:hover { background: var(--brand-hover) !important; }

.btn-theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius);
    padding: 0.3rem 0.55rem;
    font-size: 1rem;
    line-height: 1;
    margin-left: 0.5rem;
}
.btn-theme-toggle:hover { border-color: var(--brand); color: var(--brand); }

[data-theme="dark"]  .theme-icon-sun  { display: inline; }
[data-theme="dark"]  .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun  { display: none; }
[data-theme="light"] .theme-icon-moon { display: inline; }

@media (max-width: 700px) {
    .nav-toggle-label { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--nav-bg);
        border-bottom: 2px solid var(--nav-border);
        padding: 0.5rem 1rem 1rem;
        gap: 0;
    }
    .nav-check:checked ~ .nav-links { display: flex; }
    .btn-theme-toggle { margin-left: 0; }
    .site-nav { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ */
/* 4. Pre-release banner                                                 */
/* ------------------------------------------------------------------ */
.prerelease-banner {
    background: #332700;
    color: #ffd54f;
    border: 1px solid #664d00;
    border-radius: var(--radius);
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
    margin: 1.25rem auto 0;
    max-width: var(--max-w);
    line-height: 1.5;
}
[data-theme="light"] .prerelease-banner {
    background: #fff8e1;
    color: #6d4c00;
    border-color: #ffc107;
}
.prerelease-banner a { color: inherit; text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* 5. Hero                                                               */
/* ------------------------------------------------------------------ */
.hero {
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

.hero-logo {
    max-width: 260px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* 6. Buttons                                                            */
/* ------------------------------------------------------------------ */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
    text-decoration: none !important;
}
.btn-primary  { background: var(--brand); color: #fff; }
.btn-primary:hover  { background: var(--brand-hover); color: #fff; }
.btn-secondary { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text); }

/* ------------------------------------------------------------------ */
/* 7. Content sections                                                   */
/* ------------------------------------------------------------------ */
.content-section {
    max-width: var(--max-w);
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
}

.content-section h2 {
    font-size: 1.5rem;
    color: var(--brand);
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.content-section h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
}

.content-section p { margin-bottom: 0.85rem; }

/* ------------------------------------------------------------------ */
/* 8. Feature grid                                                       */
/* ------------------------------------------------------------------ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
}

.feature-card h3 {
    font-size: 1rem;
    color: var(--brand);
    margin: 0 0 0.5rem;
}

.feature-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------------ */
/* 9. Supported platforms                                                */
/* ------------------------------------------------------------------ */
.platform-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.platform-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }

.badge-os {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15em 0.55em;
    border-radius: 3px;
    white-space: nowrap;
}
.badge-recommended   { background: #004d4d; color: #4dd0cc; }
.badge-supported     { background: #1a3a1a; color: #6abf6a; }
.badge-not-supported { background: #3a1a1a; color: #cf6679; }

[data-theme="light"] .badge-recommended   { background: #e0f7f7; color: #006666; }
[data-theme="light"] .badge-supported     { background: #e8f5e8; color: #2e7d32; }
[data-theme="light"] .badge-not-supported { background: #fce8ea; color: #c62828; }

/* ------------------------------------------------------------------ */
/* 10. Feature list                                                      */
/* ------------------------------------------------------------------ */
.feature-list {
    padding-left: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.95rem;
}

/* ------------------------------------------------------------------ */
/* 11. Install block                                                     */
/* ------------------------------------------------------------------ */
.install-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    margin-top: 1rem;
}

.install-block h3 {
    font-size: 1rem;
    color: var(--brand);
    margin: 0 0 0.75rem;
}

/* ------------------------------------------------------------------ */
/* 12. Images                                                            */
/* ------------------------------------------------------------------ */
.image-block {
    margin: 1.5rem 0;
    text-align: center;
}
.image-block img {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.image-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}
.image-row img {
    flex: 1 1 220px;
    max-width: 320px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.image-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

.screenshot-block {
    margin: 1.5rem 0;
    text-align: center;
}
.screenshot-block img {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ------------------------------------------------------------------ */
/* 13. Support grid                                                      */
/* ------------------------------------------------------------------ */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.support-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.support-card h3 { font-size: 1rem; color: var(--brand); margin: 0; }
.support-card p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; flex: 1; }

/* ------------------------------------------------------------------ */
/* 14. Footer                                                            */
/* ------------------------------------------------------------------ */
footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3rem;
}
footer a { color: var(--text-muted); text-decoration: underline; }
footer a:hover { color: var(--brand); }
