
/* SaveTweak - Main Stylesheet */

:root {
    --background: #10151c;
    --surface: #19212b;
    --surface-hover: #202b37;
    --text: #e8edf2;
    --muted: #abb8c5;
    --accent: #79b8f3;
    --border: #354456;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Page layout */

.container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header and navigation */

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    color: var(--text);
    font-size: 26px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.logo:hover {
    text-decoration: none;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: var(--muted);
}

nav a:hover,
nav a.active {
    color: var(--text);
}

/* Main content */

main {
    padding: 55px 0;
    min-height: 65vh;
}

h1, h2, h3 {
    line-height: 1.3;
    margin-top: 0;
}

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

h2 {
    font-size: 25px;
}

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 18px;
}

.muted {
    color: var(--muted);
}

/* Homepage */

.hero {
    text-align: center;
    padding: 65px 0;
}

.hero h1 {
    font-size: 44px;
}

.hero p {
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto 30px;
}

/* Buttons */

.button,
.download-link {
    display: inline-block;
    background: var(--accent);
    color: var(--background);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.download-link:hover {
    background: #a6d0f7;
    text-decoration: none;
}

/* Games catalogue */

.catalogue-intro {
    margin-bottom: 30px;
}

.search-box {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    max-width: 450px;
    padding: 12px 15px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
}

.search-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Game grid - three columns */

.game-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Individual game tile */

.game-entry {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.game-entry:hover {
    background: var(--surface-hover);
    border-color: #536a82;
}

.game-entry[hidden] {
    display: none;
}

/* Game icon and title */

.game-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.game-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    object-fit: contain;
    background: var(--background);
    border-radius: 6px;
}

.game-heading {
    flex: 1;
    min-width: 0;
}

.game-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
}

.game-year {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

/* Game description */

.game-details {
    flex: 1;
}

.game-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Download button at bottom of tile */

.game-actions {
    margin-top: auto;
}

.download-link {
    display: block;
    width: 100%;
    padding: 9px 14px;
}

/* Search results */

#no-results {
    margin-top: 20px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 25px 0;
    font-size: 13px;
    text-align: center;
}

/* Tablet - two columns */

@media (max-width: 900px) {
    .game-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile - one column */

@media (max-width: 650px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    main {
        padding: 35px 0;
    }

    h1 {
        font-size: 29px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .game-list {
        grid-template-columns: 1fr;
    }

    .game-entry {
        padding: 18px;
    }

    .game-icon {
        width: 48px;
        height: 48px;
    }
}

/* Request form */

.request-form {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--radius);
}

.request-form iframe {
    display: block;
    width: 100%;
    border: 0;
}

@media (max-width: 650px) {
    .request-form {
        padding: 10px;
    }
}

/* FAQ */

.faq-list {
    max-width: 850px;
    margin-top: 30px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.faq-item summary {
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border);
}

.faq-item p {
    color: var(--muted);
    padding: 15px 20px;
    margin: 0;
}
