/*!
Theme Name: qamos
Version: 1.1.0
*/

@font-face {
    font-family: "sfpro";
    src: url("./fonts/shrift/SFProDisplay-Regular.woff") format("woff"),
         url("./fonts/shrift/SFProDisplay-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "sfpro";
    src: url("./fonts/shrift/SFProDisplay-Semibold.woff") format("woff"),
         url("./fonts/shrift/SFProDisplay-Semibold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "sfpro";
    src: url("./fonts/shrift/SFProDisplay-Bold.woff") format("woff"),
         url("./fonts/shrift/SFProDisplay-Bold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "sfpro", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
}

main {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(10, 10, 12, 0.82) 0%, rgba(20, 16, 14, 0.9) 100%),
        url("https://dobrynya-rust.ru/wp-content/uploads/2024/08/1588166585_1mymdxown7n31.png") center/cover no-repeat fixed;
    padding-bottom: 60px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo__desk {
    display: block;
    max-width: 280px;
}

.logo__desk img {
    width: 100%;
    height: auto;
    display: block;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.nav a {
    color: #e8e8e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav a:hover { color: #e87a3a; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.2s;
}

/* Sections */
.section {
    padding: 48px 0;
}

.section--dark {
    background: rgba(0, 0, 0, 0.25);
}

.section--discord {
    padding-bottom: 24px;
}

.section__title {
    margin: 0 0 28px;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-align: center;
}

.section__title--light { color: #fff; }

.tagline {
    padding: 0 0 20px;
    text-align: center;
}

.tagline p {
    margin: 0;
    color: #ddd;
    font-size: 18px;
    font-weight: 600;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero { padding-top: 32px; }

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
    align-items: start;
}

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

.serverbox { padding: 22px; }

.server-status__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.server-status__title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.server-status__badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.server-status__badge.is-online {
    background: #dff5e8;
    color: #1a8a4a;
    animation: pulse-online 2s infinite;
}

.server-status__badge.is-offline {
    background: #fde8e8;
    color: #c0392b;
}

@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 138, 74, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(26, 138, 74, 0); }
}

.server-status__grid { display: grid; gap: 10px; }

.server-status__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.server-status__label { color: #666; font-weight: 600; }
.server-status__value { font-weight: 700; text-align: right; }
.server-status__ip { font-family: ui-monospace, monospace; font-size: 14px; }

.server-status__actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.server-status__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.server-status__updated {
    color: #888;
    font-size: 13px;
}

.server-players {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.server-players__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 10px;
}

.server-players__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.server-players__list li {
    background: #f4f4f4;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.server-players__list li.is-empty {
    background: transparent;
    color: #999;
    font-weight: 500;
    padding: 0;
}

/* Player stats */
.stats-note {
    text-align: center;
    color: #bbb;
    margin: -12px 0 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stats-card {
    padding: 18px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
}

.stats-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.stats-card__head h3 {
    margin: 0;
    font-size: 18px;
}

.stats-card__count {
    background: #f0f0f0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 800;
    color: #c45c26;
}

.stats-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.stats-card__list li {
    background: #f4f4f4;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}

.stats-card__list li.is-empty {
    background: transparent;
    color: #999;
    font-weight: 500;
    padding: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
    background: linear-gradient(135deg, #d4642a, #b84e1a);
    color: #fff;
}

.btn--primary:hover { color: #fff; background: linear-gradient(135deg, #e07535, #c45a22); }

.btn--ghost {
    background: #f3f3f3;
    color: #333;
}

.btn--ghost:hover { background: #e8e8e8; }

.btn--sm { padding: 8px 14px; font-size: 13px; }

.btn--discord {
    background: #5865f2;
    color: #fff;
}

.btn--discord:hover { background: #4752c4; color: #fff; }

/* Social + wipe mini */
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    text-decoration: none;
    color: #222;
    font-weight: 700;
    transition: transform 0.15s;
}

.social-card:hover {
    transform: translateY(-2px);
    color: #222;
}

.social-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.wipe-mini {
    padding: 16px;
    text-align: center;
}

.wipe-mini__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    font-weight: 700;
}

.wipe-mini__date {
    font-size: 18px;
    font-weight: 800;
    margin: 6px 0 12px;
    color: #c45c26;
}

.wipe-countdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.wipe-countdown div {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 4px;
}

.wipe-countdown strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
}

.wipe-countdown span {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    padding: 22px 18px;
    text-align: center;
}

.feature-card__icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.feature-card p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* Map */
.map-block {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    overflow: hidden;
    padding: 0;
}

.map-block__info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.map-block__info p { margin: 0; }

.map-block__preview {
    display: block;
    min-height: 260px;
    background: #111;
}

.map-block__preview img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step-card {
    padding: 22px;
    position: relative;
}

.step-card__num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: #c45c26;
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: 12px;
}

.step-card h3 { margin: 0 0 8px; }
.step-card p { margin: 0 0 12px; color: #555; font-size: 14px; }
.step-card code {
    display: block;
    background: #f4f4f4;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 10px;
}

/* Rules */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rule-card {
    padding: 22px;
}

.rule-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.rule-card ul {
    margin: 0;
    padding-left: 18px;
}

.rule-card li {
    margin-bottom: 8px;
    color: #444;
}

.rule-card--ok h3 { color: #1a8a4a; }
.rule-card--no h3 { color: #c0392b; }

.rules-note {
    text-align: center;
    color: #ccc;
    margin: 20px 0 0;
    font-size: 14px;
}

/* FAQ */
.faq {
    display: grid;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    float: right;
    font-weight: 400;
    color: #999;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
    margin: 0;
    padding: 0 20px 16px;
    color: #555;
    font-size: 14px;
}

/* Discord */
.discord-block {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 28px 32px;
    background: linear-gradient(135deg, #2b2d42, #1a1c2e);
    color: #fff;
}

.discord-block h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.discord-block p {
    margin: 0 0 16px;
    color: #bbb;
    max-width: 480px;
}

.discord-block__visual img {
    width: 80px;
    opacity: 0.9;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.news-card {
    padding: 20px;
}

.news-card time {
    font-size: 12px;
    color: #c45c26;
    font-weight: 700;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 8px 0;
    font-size: 17px;
}

.news-card p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* Footer */
.footer {
    padding: 28px 0;
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__wrapper {
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__side {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hero__side .card { flex: 1 1 140px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .rules-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .map-block { grid-template-columns: 1fr; }
    .discord-block { grid-template-columns: 1fr; text-align: center; }
    .discord-block__visual { display: none; }
}

@media (max-width: 700px) {
    .nav-toggle { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 12, 0.97);
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav.is-open { display: flex; }
    .header { position: relative; }
    .header__inner { flex-wrap: wrap; }
    .logo__desk { max-width: 200px; }
    .features { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .section__title { font-size: 22px; }
    .tagline p { font-size: 15px; }
}
