@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700;800&display=swap');

:root {
    --light-color: #f3f3f3;
    --dark-color: #090909;
    --yellow-color: #ff2d2d;
    --accent-color: #ffffff;
    --surface-color: #121212;
    --surface-soft: #1b1b1b;
    --muted-color: #bdbdbd;
    --border-color: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Barlow', sans-serif;
    color: var(--light-color);
    background:
        radial-gradient(circle at 82% 8%, rgba(255, 45, 45, 0.14), transparent 26%),
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.06), transparent 28%),
        #060606;
    min-height: 100vh;
}

a {
    color: #ffffff;
}

a:hover {
    color: #ff9e9e;
}

a:visited {
    color: #ffffff;
}

.container {
    max-width: 1340px;
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.92);
}

.header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.header img {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.nav-link {
    transition: all 0.2s ease;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: transparent;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
}

.nav-link:hover {
    color: #fff;
    border-color: var(--yellow-color);
    background: var(--yellow-color);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.search-bar form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar input {
    font-family: inherit;
    width: 180px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    padding: 9px 10px;
    font-size: 14px;
    background: #111;
    color: #fff;
}

.search-bar input:focus {
    border-color: var(--yellow-color);
}

.search-bar button {
    border: 1px solid var(--border-color);
    background: var(--surface-soft);
    color: #fff;
    border-radius: 6px;
    padding: 9px 11px;
    cursor: pointer;
}

.lang-switch {
    display: flex;
    align-items: center;
}

.lang-switch select {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #101010;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    min-width: 108px;
}

.lang-switch select:focus {
    outline: none;
    border-color: var(--yellow-color);
}

.mobile-only {
    display: none;
}

.mobile-nav {
    display: none;
}

.burger {
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.main {
    padding: 18px 0 42px;
}

.hero {
    position: relative;
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 10px;
    background: linear-gradient(120deg, #111111, #0b0b0b);
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 30px var(--shadow-color);
}

.hero-kicker {
    margin: 0;
    color: #a8a8a8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
}

.hero h1 {
    margin: 8px 0 10px;
    font-size: 52px;
    line-height: 0.95;
    text-transform: uppercase;
}

.hero-text {
    margin: 0;
    max-width: 700px;
    color: #d4d4d4;
    font-size: 18px;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.content-section {
    margin-bottom: 26px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.section-head h2 {
    margin: 0;
    font-size: 28px;
    text-transform: uppercase;
}

.section-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--yellow-color);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 8px 0 0;
}

.news-card {
    border-radius: 10px;
}

.store-badges {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.store-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}

.pagination {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.card {
    text-decoration: none;
    background-color: #111;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    color: inherit;
    display: block;
    transform: translateY(0);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--yellow-color);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 10px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.rating {
    color: #ff4b4b;
    font-weight: 700;
    margin-top: 6px;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.panel {
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #0d0d0d;
}

.news-line {
    margin-bottom: 8px;
}

.news-entry {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
}

.panel h3,
.support h3 {
    margin: 0 0 10px;
    font-size: 24px;
    text-transform: uppercase;
}

.panel p,
.support p {
    margin: 0;
    color: var(--muted-color);
}

.panel-link {
    display: inline-block;
    margin-top: 12px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--yellow-color);
}

.form-section {
    max-width: 780px;
    margin: 0 auto 26px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feedback-form input,
.feedback-form textarea,
.feedback-form select {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: #101010;
    color: #fff;
    font-family: inherit;
}

.feedback-form input:focus,
.feedback-form textarea:focus,
.feedback-form select:focus {
    border-color: var(--yellow-color);
    outline: none;
}

.support {
    text-align: center;
}

.support .nav-link {
    margin-top: 14px;
    display: inline-block;
}

.flashes {
    list-style: none;
    padding-left: 0;
}

.flashes li {
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 6px;
}

.feed-layout {
    overflow: visible;
}

.reddit-feed-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
}

.reddit-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reddit-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #0f0f0f;
}

.clickable-card {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.clickable-card:hover {
    border-color: var(--yellow-color);
    transform: translateY(-2px);
}

.reddit-votes {
    border-right: 1px solid var(--border-color);
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 6px;
    color: #c9c9c9;
    font-size: 13px;
    font-weight: 700;
}

.vote-arrow {
    color: #a7a7a7;
}

.reddit-body {
    padding: 12px 14px;
}

.reddit-meta {
    margin: 0 0 8px;
    color: #9d9d9d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.reddit-text p {
    margin: 0 0 8px;
    color: #ddd;
}

.reddit-text p:last-child {
    margin-bottom: 0;
}

.reddit-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.flat-btn {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 12px;
    color: #c7c7c7;
    background: #141414;
}

.feed-preview,
.forum-inline-image,
.reddit-text img,
.media-shot {
    width: auto;
    max-width: min(100%, 520px);
    max-height: 420px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 10px;
}

.thread-top-card {
    margin-bottom: 14px;
}

.feed-aside {
    position: sticky;
    top: 90px;
    align-self: start;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #101010;
    padding: 12px;
}

.feed-aside h3 {
    margin: 0 0 10px;
    text-transform: uppercase;
    font-size: 16px;
}

.aside-item {
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
}

.aside-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.aside-item p {
    margin: 0;
    color: #d0d0d0;
    font-size: 13px;
}

.aside-meta {
    color: #9a9a9a;
    margin-bottom: 4px;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    border: 1px solid var(--border-color);
    background: #0c0c0c;
    border-radius: 8px;
    padding: 8px;
}

.editor-toolbar button {
    border: 1px solid var(--border-color);
    background: #141414;
    color: #ededed;
    padding: 6px 9px;
    font-family: inherit;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
}

.editor-toolbar button:hover {
    border-color: var(--yellow-color);
}

.editor-hint {
    margin: 2px 0 4px;
    color: #a9a9a9;
    font-size: 12px;
}

.forum-underline {
    text-decoration: underline;
}

.reddit-text blockquote {
    margin: 10px 0;
    border-left: 3px solid var(--yellow-color);
    padding: 6px 10px;
    background: #141414;
    color: #e3e3e3;
}

.reddit-text pre {
    margin: 10px 0;
    background: #0b0b0b;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-x: auto;
    padding: 10px;
}

.reddit-text ul,
.reddit-text ol {
    margin: 8px 0 8px 20px;
    color: #ddd;
}

.reddit-text a {
    color: #ff7a7a;
}

.success {
    color: #c4ffd7;
    background: #184128;
}

.error {
    color: #ffd2d2;
    background: #4a1818;
}

@media (max-width: 1180px) {
    .header {
        grid-template-columns: auto 1fr;
    }

    .desktop-nav {
        display: none;
    }

    .header-tools.desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
        justify-self: end;
    }

    .mobile-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: #0a0a0a;
        border-top: 1px solid var(--border-color);
        padding: 14px 18px 18px;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease;
    }

    .mobile-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav .nav-link {
        width: 100%;
        text-align: center;
    }

    .mobile-nav .search-bar input {
        width: 100%;
    }

    .mobile-nav .search-bar form {
        width: 100%;
    }

    .mobile-nav .search-bar {
        width: 100%;
    }

    .mobile-nav .lang-switch {
        width: 100%;
        justify-content: center;
    }

    .mobile-nav .lang-switch select {
        width: 100%;
    }

    .header img {
        width: 210px;
    }

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

    .split {
        grid-template-columns: 1fr;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .card img {
        height: 190px;
    }

    .reddit-feed-wrap {
        grid-template-columns: 1fr;
    }

    .feed-aside {
        position: static;
    }

    .reddit-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }
}
