:root {
    --ink: #ecd9b4;
    --gold: #d4a650;
    --gold-soft: #f7dca2;
    --bronze: #8d6430;
    --emerald: #3cae66;
    --shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Marcellus", serif;
    background:
        radial-gradient(circle at 50% 25%, rgba(255, 200, 95, 0.22), transparent 40%),
        linear-gradient(rgba(12, 10, 8, 0.58), rgba(10, 8, 7, 0.82)),
        url("../img/anasayfa.png") center top / cover no-repeat fixed;
    min-height: 100vh;
}

.home-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 193, 90, 0.06), rgba(255, 193, 90, 0)),
        repeating-linear-gradient(
            120deg,
            rgba(255, 223, 166, 0.018) 0 2px,
            transparent 2px 44px
        );
}

.home-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.particles-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    left: var(--x);
    bottom: -8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd990 0%, rgba(255, 217, 144, 0.4) 70%, transparent 100%);
    box-shadow: 0 0 10px rgba(255, 204, 112, 0.45);
    animation: floatParticle var(--dur) linear infinite;
    animation-delay: var(--delay);
}

@keyframes floatParticle {
    from {
        transform: translateY(0) scale(0.65);
        opacity: 0;
    }
    10% {
        opacity: 0.85;
    }
    to {
        transform: translateY(-110vh) scale(1);
        opacity: 0;
    }
}

.top-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px 10px;
    position: relative;
}

.social-links {
    position: absolute;
    top: 16px;
    right: 24px;
    display: flex;
    gap: 14px;
}

.social-links a {
    color: #f8ddab;
    text-decoration: none;
    font-size: 13px;
    font-family: "Cinzel", serif;
    letter-spacing: 0.35px;
}

.brand-block {
    text-align: center;
    position: relative;
}

.logo-halo {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 380px;
    height: 130px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 205, 111, 0.36) 0%, rgba(255, 205, 111, 0.05) 62%, transparent 100%);
    filter: blur(6px);
}

.main-logo {
    width: min(430px, 78vw);
    max-height: 145px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65));
}

.header-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    min-width: 158px;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid #6b4920;
    text-decoration: none;
    color: #f9edcf;
    font-family: "Cinzel", serif;
    font-weight: 700;
    letter-spacing: 0.45px;
    background:
        linear-gradient(180deg, rgba(255, 216, 152, 0.2), rgba(255, 216, 152, 0) 38%),
        linear-gradient(180deg, #7a5b2f 0%, #4f391c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 176, 0.65),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3),
        0 8px 14px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 176, 0.8),
        0 0 16px rgba(255, 193, 93, 0.35),
        0 12px 18px rgba(0, 0, 0, 0.52);
}

.hero-btn.strong {
    border-color: #2f6f45;
    background:
        linear-gradient(180deg, rgba(138, 245, 184, 0.15), rgba(138, 245, 184, 0) 35%),
        linear-gradient(180deg, #2f8050 0%, #1d5834 100%);
    box-shadow:
        inset 0 1px 0 rgba(198, 255, 223, 0.45),
        inset 0 -2px 0 rgba(0, 0, 0, 0.35),
        0 8px 14px rgba(0, 0, 0, 0.45);
}

.gold-separator {
    margin-top: 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(250, 208, 122, 0.95), transparent);
}

.home-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 24px 34px;
}

.home-wrap h2 {
    margin: 0 0 14px;
    font-family: "Cinzel", serif;
    color: var(--gold-soft);
    font-size: 33px;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.stats-bar {
    margin: 0 0 18px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    border: 1px solid rgba(222, 170, 79, 0.56);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(26, 21, 17, 0.58), rgba(16, 13, 11, 0.72));
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 218, 146, 0.08);
}

.stat-item {
    position: relative;
    overflow: hidden;
    border-radius: 11px;
    border: 1px solid rgba(219, 165, 73, 0.52);
    background: linear-gradient(140deg, rgba(45, 35, 26, 0.9), rgba(30, 24, 18, 0.9));
    text-align: center;
    padding: 12px 10px;
    box-shadow: inset 0 1px 0 rgba(255, 212, 136, 0.2);
}

.stat-item::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255, 221, 157, 0.3), transparent);
    animation: statShine 8s linear infinite;
}

.stat-item:nth-child(2)::after {
    animation-delay: 1.6s;
}

.stat-item:nth-child(3)::after {
    animation-delay: 3.2s;
}

.stat-item:nth-child(4)::after {
    animation-delay: 4.8s;
}

@keyframes statShine {
    0% {
        transform: translateX(-130%);
    }
    45%, 100% {
        transform: translateX(130%);
    }
}

.stat-item .label {
    display: block;
    color: #e8c989;
    font-family: "Cinzel", serif;
    font-size: 13px;
    margin-bottom: 7px;
}

.stat-item strong {
    color: #fff1d1;
    font-family: "Cinzel", serif;
    font-size: 29px;
    text-shadow: 0 0 12px rgba(255, 208, 124, 0.32);
}

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

.server-card {
    position: relative;
    padding: 20px 16px 16px;
    border-radius: 16px;
    color: #f4e2bd;
    border: 1px solid rgba(184, 133, 56, 0.8);
    background:
        linear-gradient(180deg, rgba(76, 53, 28, 0.92), rgba(51, 36, 19, 0.95)),
        linear-gradient(90deg, rgba(255, 221, 157, 0.08), transparent 45%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 217, 144, 0.1),
        inset 0 -12px 18px rgba(0, 0, 0, 0.2),
        var(--shadow);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.server-card .border-shimmer {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    pointer-events: none;
    overflow: hidden;
}

.server-card .border-shimmer::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 217, 144, 0.8), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transform: translateX(-120%);
    animation: borderShine 6s linear infinite;
}

@keyframes borderShine {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
}

.server-card::before,
.server-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(245, 199, 119, 0.78);
}

.server-card::before {
    top: 10px;
    left: 10px;
    border-right: 0;
    border-bottom: 0;
}

.server-card::after {
    right: 10px;
    bottom: 10px;
    border-left: 0;
    border-top: 0;
}

.server-card .top-badges {
    position: absolute;
    top: 8px;
    right: 9px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.top-badge {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 23px;
    text-align: center;
    color: #111;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.45);
}

.top-badge.gold { background: linear-gradient(180deg, #f7df9e, #c8982b); }
.top-badge.silver { background: linear-gradient(180deg, #e8e8e8, #9a9a9a); }
.top-badge.bronze { background: linear-gradient(180deg, #e8b883, #9d5f2b); }

.server-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.server-head h3 {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 24px;
    color: #ffe5b4;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.speed-pill {
    min-width: 58px;
    text-align: center;
    border-radius: 50px;
    padding: 6px 10px;
    font-family: "Cinzel", serif;
    font-size: 14px;
    border: 1px solid rgba(104, 74, 20, 0.95);
    color: #2f1d0a;
    background: linear-gradient(180deg, #ffe09c, #bf8d34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 8px rgba(0, 0, 0, 0.35);
}

.open-time {
    margin: 8px 0 0;
    font-size: 15px;
    color: #e8cfa2;
}

.countdown {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    color: #ffe8bf;
    border: 1px solid rgba(225, 181, 94, 0.55);
    background: linear-gradient(180deg, rgba(43, 28, 13, 0.82), rgba(29, 20, 10, 0.82));
    box-shadow: inset 0 0 0 1px rgba(255, 220, 150, 0.08), 0 0 12px rgba(255, 180, 75, 0.14);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 14px;
}

.feature-list li {
    margin-bottom: 8px;
    padding-left: 18px;
    font-size: 15px;
    color: #f4dfba;
    position: relative;
}

.feature-list li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #ebc36d;
    font-size: 11px;
    top: 3px;
}

.population-wrap {
    margin: 8px 0 14px;
}

.population-head {
    display: flex;
    justify-content: space-between;
    color: #e8cb95;
    font-size: 13px;
    margin-bottom: 5px;
}

.population-bar {
    height: 18px;
    border-radius: 100px;
    padding: 2px;
    border: 1px solid rgba(181, 140, 73, 0.75);
    background: linear-gradient(180deg, #2f251b, #211910);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55);
}

.population-fill {
    display: block;
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #2d793f, #54d37b);
    box-shadow: 0 0 10px rgba(101, 220, 129, 0.45);
    position: relative;
}

.population-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: barSweep 3s linear infinite;
}

@keyframes barSweep {
    from { transform: translateX(-60%); }
    to { transform: translateX(60%); }
}

.panel-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 11px 16px;
    border-radius: 11px;
    text-decoration: none;
    font-family: "Cinzel", serif;
    font-weight: 700;
    letter-spacing: 0.45px;
    color: #fff3d6;
    border: 1px solid #b6812e;
    background: linear-gradient(180deg, #cb8d37, #8f5f23);
    box-shadow: inset 0 1px 0 rgba(255, 218, 147, 0.6), 0 7px 12px rgba(0, 0, 0, 0.35);
}

.server-card.is-open .panel-btn {
    border-color: #358d56;
    background: linear-gradient(180deg, #46b56c, #1f6b3f);
    box-shadow: inset 0 1px 0 rgba(194, 255, 213, 0.45), 0 0 16px rgba(87, 227, 143, 0.25);
}

.server-card.is-open {
    box-shadow:
        inset 0 0 0 1px rgba(255, 217, 144, 0.14),
        inset 0 -12px 18px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 137, 46, 0.18),
        var(--shadow);
}

.server-card.is-open::selection {
    background: transparent;
}

.server-card.is-open > .border-shimmer::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -10px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 137, 64, 0.35) 0%, rgba(255, 137, 64, 0) 75%);
    animation: emberPulse 2.6s ease-in-out infinite;
}

@keyframes emberPulse {
    0%, 100% { opacity: 0.35; transform: scale(0.98); }
    50% { opacity: 0.7; transform: scale(1.02); }
}

.server-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 206, 121, 0.95);
    box-shadow:
        inset 0 0 0 1px rgba(255, 217, 144, 0.18),
        0 0 20px rgba(247, 196, 117, 0.22),
        0 20px 28px rgba(0, 0, 0, 0.62);
}

.news-section {
    margin-top: 30px;
}

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

.news-card {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #b48f52;
    color: #3f2d16;
    background:
        linear-gradient(180deg, rgba(241, 229, 194, 0.98), rgba(230, 212, 168, 0.98)),
        repeating-linear-gradient(0deg, rgba(100, 77, 45, 0.04) 0 2px, transparent 2px 4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 236, 0.55), 0 12px 20px rgba(0, 0, 0, 0.28);
}

.news-card .news-date {
    font-size: 13px;
    color: #7c643b;
}

.news-card h3 {
    margin: 7px 0 8px;
    font-size: 22px;
    color: #34220d;
}

.news-card p {
    margin: 0;
    line-height: 1.5;
    font-size: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 11px;
    text-decoration: none;
    color: #2f7a1a;
    font-weight: 700;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.read-more:hover {
    color: #3fad25;
    text-shadow: 0 0 10px rgba(91, 212, 70, 0.4);
}

.feature-section {
    margin-top: 30px;
}

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

.feature-card {
    border-radius: 14px;
    border: 1px solid rgba(180, 132, 57, 0.7);
    padding: 15px 12px;
    background: linear-gradient(180deg, rgba(38, 30, 23, 0.75), rgba(24, 19, 14, 0.85));
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-card .icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 23px;
    color: #2a1a08;
    border: 1px solid #936b2f;
    background: linear-gradient(180deg, #f7dfab, #be9044);
}

.feature-card h3 {
    margin: 10px 0 0;
    font-size: 17px;
    color: #f1d7a5;
}

.home-footer {
    max-width: 1280px;
    margin: 14px auto 0;
    padding: 14px 16px 18px;
    text-align: center;
    color: #efe0bc;
    border-top: 1px solid rgba(215, 171, 89, 0.45);
    background: linear-gradient(180deg, rgba(40, 30, 21, 0.45), rgba(30, 23, 16, 0.52));
}

.home-footer a {
    color: #f6e5be;
    text-decoration: none;
    font-weight: 700;
}

.home-footer a:hover {
    color: #fff4d5;
}

.footer-links,
.footer-lang {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.footer-links span,
.footer-lang span {
    color: #d3b374;
}

.footer-copy {
    margin-top: 8px;
    font-size: 16px;
}

.footer-note {
    margin-top: 2px;
    font-size: 14px;
}

.footer-lang {
    margin-top: 4px;
}

@media (max-width: 1120px) {
    .server-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .top-header,
    .home-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .social-links {
        position: static;
        justify-content: center;
        margin-bottom: 10px;
    }

    .home-wrap h2 {
        font-size: 26px;
    }
}
