/* Public-only safety polish. Loaded after app.css to avoid cached mixed layouts. */

.site-header {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 12px 44px;
}

.site-header .brand-premium,
.footer .brand-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-header .brand-sigil,
.footer .brand-sigil {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    display: grid;
    place-items: center;
}

.site-header .brand-sigil img,
.footer .brand-sigil img,
.hero-emblem img {
    max-width: 100%;
    max-height: 100%;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.site-header .brand-copy,
.footer .brand-copy {
    display: grid;
    line-height: 1;
}

.site-header .brand-copy strong,
.footer .brand-copy strong {
    color: #f2d37b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    line-height: 1;
}

.site-header .brand-copy small,
.footer .brand-copy small {
    margin-top: 4px;
    color: #9fb1c9;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav,
.header-actions {
    align-items: center;
}

.hero {
    min-height: calc(100vh - 88px);
    padding: 48px 7vw 72px;
}

.hero-layout {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    align-items: center;
    gap: 42px;
}

.hero-content {
    width: 100%;
    margin: 0;
}

.hero-emblem {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 8px 14px 8px 8px;
    border: 1px solid rgba(215, 180, 106, .3);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(20, 26, 45, .72), rgba(7, 10, 19, .48));
}

.hero-emblem img {
    width: 62px !important;
    height: 62px !important;
    flex: 0 0 62px;
}

.hero-emblem strong {
    display: block;
    color: #f4d77e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.68rem;
    line-height: 1;
}

.hero-emblem span {
    display: block;
    color: #9fb1c9;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-title {
    gap: 7px;
    margin-bottom: 14px;
}

.hero-title h1 {
    font-size: 3.52rem;
    line-height: 1;
}

.hero-title h2 {
    font-size: 1.92rem;
}

.hero-title p {
    font-size: 1.04rem;
}

.hero-copy {
    max-width: 680px;
    margin-bottom: 18px;
    font-size: .98rem;
}

.hero-badges {
    gap: 8px;
    margin-bottom: 20px;
}

.hero-badges span {
    min-height: 38px;
    flex: 0 1 156px;
    max-width: 192px;
    font-size: .84rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions .btn-large {
    min-height: 48px;
}

.hero-server-card {
    max-width: 360px;
    overflow: hidden;
}

.hero-server-card > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 24%;
}

.hero-server-card > div {
    padding: 18px;
}

.hero-server-card h3 {
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.hero-server-card ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-server-card li {
    min-height: 64px;
}

.server-strip {
    margin-top: -32px;
}

.countdown-band {
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(100deg, rgba(6, 8, 16, .96), rgba(17, 18, 38, .88)),
        url("../img/banners/coming-soon.png") center/cover;
}

.countdown-band::before,
.countdown-band::after {
    opacity: .18;
}

.countdown div {
    position: relative;
    z-index: 1;
}

.public-empty {
    grid-column: 1 / -1;
    width: 100%;
    padding: 24px;
    border: 1px dashed rgba(215, 180, 106, .35);
    border-radius: 8px;
    color: #aeb7d4;
    background: rgba(215, 180, 106, .06);
}

.news-placeholder h3 {
    color: #fff;
}

.wiki-systems-section {
    padding-top: 42px;
}

.wiki-systems-section .system-grid {
    align-items: stretch;
}

.wiki-systems-section .system-card,
.systems-section .system-card {
    height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.wiki-systems-section .system-card p,
.systems-section .system-card p {
    margin-bottom: 0;
}

.timeline {
    gap: 18px;
}

.timeline-item {
    position: relative;
    grid-template-columns: minmax(180px, .75fr) minmax(0, 1.7fr) auto;
    align-items: center;
    border-color: rgba(215, 180, 106, .18);
    background: radial-gradient(circle at 0 0, rgba(71, 182, 255, .12), transparent 32%), linear-gradient(180deg, rgba(20, 26, 45, .9), rgba(6, 9, 18, .92));
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #dfe8ff;
    font-weight: 800;
}

.event-date i {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 241, 168, .72);
    background: radial-gradient(circle, #fff1a8 0 32%, rgba(71, 182, 255, .78) 34% 100%);
    box-shadow: 0 0 18px rgba(71, 182, 255, .28);
}

.event-status {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(215, 180, 106, .3);
    border-radius: 999px;
    color: #fff1a8 !important;
    background: linear-gradient(180deg, rgba(215, 180, 106, .14), rgba(71, 182, 255, .08));
    font-size: .82rem;
    font-style: normal;
    font-weight: 900;
}

.ranking-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.ranking-tabs,
.ranking-limits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ranking-tabs a,
.ranking-limits a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(188, 202, 255, .16);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(20, 26, 45, .86), rgba(8, 11, 20, .86));
    color: #dfe8ff;
    font-weight: 800;
}

.ranking-tabs .is-active,
.ranking-limits .is-active,
.ranking-tabs a:hover,
.ranking-limits a:hover {
    border-color: rgba(71, 182, 255, .42);
    box-shadow: 0 0 24px rgba(71, 182, 255, .12), inset 0 0 18px rgba(141, 107, 255, .08);
}

.ranking-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.podium-card {
    min-height: 140px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(215, 180, 106, .28);
    border-radius: 8px;
    background: radial-gradient(circle at 18% 0, rgba(71, 182, 255, .16), transparent 38%), linear-gradient(180deg, rgba(24, 30, 50, .92), rgba(6, 9, 17, .95));
}

.podium-card .rank-medal,
.premium-ranking .rank-medal {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(188, 202, 255, .18);
    background: radial-gradient(circle at 45% 28%, rgba(255, 255, 255, .32), rgba(71, 182, 255, .25) 38%, rgba(12, 17, 34, .92) 74%);
    color: #fff4bf;
    font-weight: 900;
    box-shadow: 0 0 22px rgba(71, 182, 255, .14);
}

.rank-medal-1 {
    border-color: rgba(255, 241, 168, .6) !important;
    background: radial-gradient(circle at 45% 28%, #fff7bf, #d7b46a 45%, #684715 100%) !important;
    color: #190f02 !important;
}

.rank-medal-2 {
    border-color: rgba(220, 230, 255, .52) !important;
    background: radial-gradient(circle at 45% 28%, #fff, #aab7d5 46%, #39445f 100%) !important;
    color: #0b1020 !important;
}

.rank-medal-3 {
    border-color: rgba(232, 150, 83, .52) !important;
    background: radial-gradient(circle at 45% 28%, #ffd4a6, #b46e39 46%, #44220e 100%) !important;
    color: #140803 !important;
}

.podium-card strong,
.podium-card em,
.podium-card small {
    display: block;
}

.podium-card em,
.podium-card small {
    color: #aeb7d4;
    font-style: normal;
}

.premium-ranking .class-icon {
    display: none;
}

.premium-ranking .class-chip {
    min-height: 34px;
    padding: 4px 10px;
}

.ranking-wrap {
    border: 1px solid rgba(188, 202, 255, .13);
    border-radius: 8px;
    overflow-x: auto;
    background: radial-gradient(circle at 16% 0, rgba(71, 182, 255, .08), transparent 30%), linear-gradient(180deg, rgba(12, 16, 30, .92), rgba(5, 7, 13, .94));
}

.podium-card small {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid rgba(188, 202, 255, .1);
}

.premium-ranking {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
}

.premium-ranking th,
.premium-ranking td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(188, 202, 255, .12);
    text-align: left;
}

.premium-ranking th {
    color: #f2d37b;
    background: rgba(215, 180, 106, .06);
    font-size: .82rem;
    text-transform: uppercase;
}

.premium-ranking tbody tr:hover td {
    background: rgba(71, 182, 255, .075);
    box-shadow: inset 0 0 24px rgba(71, 182, 255, .05);
}

.news-grid:empty::before,
.timeline:empty::before {
    content: "Informațiile oficiale vor fi afișate aici în curând.";
    display: block;
    padding: 24px;
    border: 1px dashed rgba(215, 180, 106, .35);
    border-radius: 8px;
    color: #aeb7d4;
    background: rgba(215, 180, 106, .06);
}

.auth-card .auth-sigil {
    width: 104px;
    height: 104px;
}

.footer .brand-sigil {
    width: 50px !important;
    height: 50px !important;
    flex-basis: 50px !important;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.footer-socials a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(71, 182, 255, .2);
    border-radius: 8px;
    color: #dfe8ff;
    background: rgba(71, 182, 255, .07);
    font-weight: 800;
}

.footer-socials a:hover {
    border-color: rgba(215, 180, 106, .36);
    box-shadow: 0 0 20px rgba(71, 182, 255, .12);
}

@media (max-width: 1180px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .hero-server-card {
        width: min(100%, 420px);
    }

    .ranking-podium {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .site-header {
        min-height: 76px;
        grid-template-columns: auto auto;
        padding: 10px 18px;
    }

    .site-header .brand-sigil {
        width: 46px !important;
        height: 46px !important;
        flex-basis: 46px !important;
    }

    .site-header .brand-copy strong {
        font-size: 1.35rem;
    }

    .site-header .brand-copy small {
        display: none;
    }

    .hero {
        padding: 56px 20px 86px;
    }

    .hero-emblem {
        justify-content: center;
        width: 100%;
    }

    .hero-title h1 {
        font-size: 2.45rem;
    }

    .hero-title h2 {
        font-size: 1.52rem;
    }

    .ranking-toolbar {
        display: grid;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ranking-tabs a,
    .ranking-limits a {
        width: 100%;
    }

    .wiki-systems-section {
        padding-top: 28px;
    }
}
