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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #252b31;
    color: #fff;
    min-height: 100vh;
}

/* =========================
   BACKGROUND
========================= */

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            rgba(18, 23, 29, 0.78),
            rgba(18, 23, 29, 0.88)
        ),
        url("background.png") center / cover no-repeat;

    filter: saturate(0.8);
}

/* =========================
   HEADER
========================= */

.site-header {
    width: 1140px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding-top: 45px;
}

/* Minecraft-style logo */

.logo {
    display: block;
    width: fit-content;
    margin: 0 auto 35px;

    color: #d8d8d8;
    text-decoration: none;

    font-size: 78px;
    font-weight: 900;
    letter-spacing: -8px;
    line-height: 0.8;

    text-shadow:
        3px 3px 0 #222,
        5px 5px 0 #111;
}

.logo span {
    color: #82c96b;
}

/* =========================
   NAVIGATION
========================= */

nav {
    height: 105px;
    background: rgba(55, 55, 55, 0.96);

    display: flex;
    align-items: center;

    padding: 16px;
    gap: 8px;
}

nav a {
    height: 73px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 30px;

    color: #fff;
    text-decoration: none;

    font-size: 18px;
    font-weight: 700;

    transition: 0.2s ease;
}

nav a:hover {
    background: #4a4a4a;
}

nav a.active {
    background: #f5f5f5;
    color: #222;
}

nav .shop {
    margin-left: auto;
    min-width: 160px;
    background: #82acd4;
}

nav .shop:hover {
    background: #719bc4;
}

/* =========================
   MAIN
========================= */

.container {
    width: 1140px;
    max-width: calc(100% - 40px);
    margin: 40px auto 80px;
}

/* =========================
   HERO
========================= */

.hero-grid {
    display: grid;
    grid-template-columns: 2.25fr 1fr;
    gap: 40px;
}

/* Left image */

.hero-art {
    height: 475px;
    position: relative;
    overflow: hidden;

    background:
        url("minecraft-background.jpg")
        center / cover no-repeat;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Dark overlay */

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.05),
            rgba(0,0,0,0.35)
        );

    pointer-events: none;
}

/* Hide these if you use a real Minecraft screenshot */

.sky,
.sun,
.mountain,
.ground,
.ruin,
.lava {
    position: absolute;
}

/* Caption */

.hero-caption {
    position: absolute;
    z-index: 5;

    left: 22px;
    bottom: 22px;

    padding: 13px 18px;

    background: rgba(50, 50, 50, 0.9);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* =========================
   INFO CARD
========================= */

.info-card {
    min-height: 475px;

    padding: 42px 36px;

    background: rgba(67, 67, 67, 0.96);

    text-align: center;
}

.info-card h2 {
    font-size: 21px;
    line-height: 1.45;
    margin-bottom: 32px;
}

.info-card h2 span {
    color: #7fd06a;
}

.info-card p {
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 12px;
}

.divider {
    height: 1px;
    background: #555;
    margin: 28px 0;
}

.online {
    font-size: 17px;
    margin-bottom: 25px;
}

.online strong {
    color: #7fd06a;
}

/* Join button */

.join-btn {
    width: 100%;
    height: 56px;

    background: transparent;
    border: 2px solid #7fd06a;

    color: #7fd06a;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.join-btn:hover {
    background: #7fd06a;
    color: #222;
}

.join-btn span {
    margin-left: 7px;
}

.info-card small {
    display: block;
    color: #aaa;
    margin-top: 12px;
}

/* =========================
   STATS
========================= */

.stats {
    margin-top: 40px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    background: rgba(60, 60, 60, 0.95);
}

.stats div {
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid #555;
}

.stats div:last-child {
    border-right: none;
}

.stats b,
.stats span {
    display: block;

    font-size: 11px;
    letter-spacing: 1px;

    color: #aaa;
}

.stats strong {
    display: block;

    margin: 8px 0;

    color: #7fd06a;
    font-size: 27px;
}

/* =========================
   CONTENT
========================= */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;

    margin-top: 40px;
}

.content-grid article {
    background: rgba(60, 60, 60, 0.95);
    padding: 38px;
}

.content-grid h2 {
    font-size: 25px;
    margin-bottom: 18px;
}

.content-grid h2 em {
    color: #7fd06a;
    font-style: normal;
}

.content-grid p {
    color: #bdbdbd;
    line-height: 1.8;
}

.content-grid .big {
    color: #7fd06a;
    font-size: 48px;
    font-weight: 800;
}

/* =========================
   JOIN PANEL
========================= */

.join-panel {
    margin-top: 40px;

    padding: 35px 40px;

    background: rgba(55, 55, 55, 0.97);

    display: flex;
    align-items: center;
    gap: 70px;
}

.join-panel > div {
    flex: 1;
}

.join-panel small {
    color: #999;
    font-size: 11px;
    letter-spacing: 1px;
}

.join-panel h2 {
    color: #fff;
    margin-top: 5px;
}

.join-panel button {
    padding: 18px 35px;

    border: none;
    background: #82acd4;

    color: #fff;

    font-family: inherit;
    font-weight: 700;
    font-size: 15px;

    cursor: pointer;
}

.join-panel button:hover {
    background: #719bc4;
}

/* =========================
   FOOTER
========================= */

footer {
    padding: 35px;
    background: #303030;

    text-align: center;

    color: #888;
    font-size: 12px;
    letter-spacing: 1px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .site-header {
        padding-top: 25px;
    }

    .logo {
        font-size: 55px;
    }

    nav {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        height: 55px;
        padding: 0 18px;
        font-size: 14px;
    }

    nav .shop {
        margin-left: 0;
    }

    .hero-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-art,
    .info-card {
        min-height: 400px;
        height: auto;
    }

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

    .join-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
}

@media (max-width: 550px) {

    .container,
    .site-header {
        max-width: calc(100% - 20px);
    }

    .logo {
        font-size: 43px;
    }

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

    .stats div {
        border-right: none;
        border-bottom: 1px solid #555;
    }
}

/* =========================
   INTERNAL PAGES
========================= */

.content-page {
    width: 100%;
}

.page-title {
    background: rgba(55, 55, 55, 0.96);
    padding: 45px;
    margin-bottom: 40px;
    text-align: center;
}

.page-title small {
    color: #82acd4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.page-title h1 {
    margin: 8px 0 12px;
    font-size: 42px;
    font-weight: 800;
}

.page-title h1 em {
    color: #7fd06a;
    font-style: normal;
}

.page-title p {
    color: #aaa;
}


/* COMMANDS */

.command-list {
    background: rgba(60, 60, 60, 0.96);
}

.command {
    min-height: 82px;
    padding: 20px 30px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid #505050;
}

.command:last-child {
    border-bottom: none;
}

.command-name {
    width: 220px;

    color: #7fd06a;

    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
}

.command-description {
    color: #bbb;
    font-size: 14px;
}


/* RULES */

.rules-banner {
    display: flex;
    align-items: center;
    gap: 30px;

    padding: 35px;

    background: rgba(60, 60, 60, 0.96);
    border-left: 5px solid #7fd06a;

    margin-bottom: 40px;
}

.rules-symbol {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #7fd06a;
    color: #222;

    font-size: 35px;
    font-weight: 900;
}

.rules-banner h2 {
    margin-bottom: 10px;
}

.rules-banner h2 em {
    color: #7fd06a;
    font-style: normal;
}

.rules-banner p {
    color: #aaa;
    line-height: 1.7;
}


/* SHOP */

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

.shop-card {
    padding: 40px 30px;

    background: rgba(60, 60, 60, 0.96);

    text-align: center;

    border: 1px solid #505050;

    transition: transform 0.2s ease, border 0.2s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
    border-color: #7fd06a;
}

.shop-card.featured {
    border: 2px solid #7fd06a;
}

.shop-icon {
    color: #7fd06a;
    font-size: 30px;
    margin-bottom: 15px;
}

.shop-card h2 {
    font-size: 21px;
    margin-bottom: 15px;
}

.shop-card p {
    min-height: 75px;

    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

.price {
    margin: 25px 0;

    color: #7fd06a;
    font-size: 28px;
    font-weight: 800;
}

.shop-card button {
    width: 100%;
    padding: 15px;

    background: #82acd4;
    border: none;

    color: #fff;

    font-family: inherit;
    font-weight: 700;

    cursor: pointer;
}

.shop-card button:hover {
    background: #719bc4;
}


/* MOBILE INTERNAL PAGES */

@media (max-width: 800px) {

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

    .command {
        display: block;
    }

    .command-name {
        width: auto;
        margin-bottom: 8px;
    }

    .rules-banner {
        align-items: flex-start;
    }

    .page-title h1 {
        font-size: 32px;
    }
}

/* =========================
   NEWS
========================= */

.news-preview {
    width: 100%;
}

.section-heading {
    background: rgba(55, 55, 55, 0.96);

    padding: 25px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.section-heading small {
    color: #82acd4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h1 {
    margin-top: 5px;
    font-size: 30px;
}

.section-heading h1 em {
    color: #7fd06a;
    font-style: normal;
}

.section-heading a {
    color: #7fd06a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.section-heading a:hover {
    color: #fff;
}


/* NEWS CARD */

.news-card {
    background: rgba(60, 60, 60, 0.96);

    padding: 30px;

    border: 1px solid transparent;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: #7fd06a;
}

.news-date {
    color: #888;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 15px;
}

.news-tag {
    display: inline-block;

    padding: 5px 10px;

    background: #7fd06a;
    color: #202020;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 13px;
}

.news-card h2 {
    font-size: 25px;
    margin-bottom: 13px;
}

.news-card p {
    color: #aaa;

    font-size: 14px;
    line-height: 1.8;
}

.news-content {
    max-width: 850px;
}

.read-more {
    display: inline-block;

    margin-top: 20px;

    color: #7fd06a;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;
}

.read-more:hover {
    color: #fff;
}


/* FEATURED */

.featured-news {
    padding: 42px;

    margin-bottom: 25px;

    border-left: 4px solid #7fd06a;
}

.featured-news h2 {
    font-size: 34px;
}


/* NEWS GRID */

.news-small-grid,
.news-list {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.news-list {
    margin-top: 25px;
}


/* MOBILE */

@media (max-width: 700px) {

    .news-small-grid,
    .news-list {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-block;
        margin-top: 15px;
    }

    .featured-news {
        padding: 30px;
    }

    .featured-news h2 {
        font-size: 27px;
    }
}


/* =========================
   404 PAGE
========================= */

.error-page {
    min-height: 500px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: rgba(55, 55, 55, 0.97);

    padding: 60px 30px;

    margin-bottom: 30px;
}


.error-number {
    color: #7fd06a;

    font-size: clamp(100px, 18vw, 190px);

    font-weight: 900;

    line-height: 0.85;

    letter-spacing: -8px;

    text-shadow:
        6px 6px 0 rgba(0, 0, 0, 0.25);

    margin-bottom: 25px;
}


.error-tag {
    display: inline-block;

    background: #7fd06a;
    color: #202020;

    padding: 7px 13px;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 2px;

    margin-bottom: 20px;
}


.error-page h1 {
    font-size: 30px;

    margin-bottom: 15px;
}


.error-page h1 em {
    color: #7fd06a;
    font-style: normal;
}


.error-page p {
    max-width: 520px;

    color: #aaa;

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 30px;
}


.error-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    justify-content: center;
}


.error-button {
    display: inline-block;

    padding: 14px 22px;

    background: #82acd4;

    color: #fff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.5px;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.error-button:hover {
    background: #7fd06a;

    color: #202020;

    transform: translateY(-2px);
}


.error-button.secondary {
    background: transparent;

    border: 1px solid #666;

    color: #aaa;
}


.error-button.secondary:hover {
    border-color: #7fd06a;

    color: #7fd06a;

    background: transparent;
}


/* MOBILE */

@media (max-width: 600px) {

    .error-page {
        min-height: 420px;

        padding: 40px 20px;
    }

    .error-number {
        letter-spacing: -5px;
    }

    .error-page h1 {
        font-size: 24px;
    }

}