/* ==========================================================
   PDX CLAN SERVERS
   One-Screen Desktop Layout
   ========================================================== */


/* ----------------------------------------------------------
   RESET
   ---------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background:
        radial-gradient(
            circle at 50% 0%,
            #14011f 0%,
            #050810 36%,
            #02050b 100%
        );

    color: #f5f5f7;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    overflow-x: hidden;
}


/* ----------------------------------------------------------
   COLORS
   ---------------------------------------------------------- */

:root {
    --bg: #03060c;
    --panel: rgba(6, 10, 18, 0.92);
    --panel-2: rgba(9, 14, 24, 0.94);

    --border: rgba(140, 150, 180, 0.22);

    --purple: #bd45ff;
    --purple-light: #d96aff;
    --purple-dark: #6714b8;

    --green: #00ff32;
    --red: #ff3038;

    --text: #ffffff;
    --muted: #aaaab4;
}


/* ==========================================================
   ONE SCREEN PAGE
   ========================================================== */

.page {
    width: 100%;

    min-height: 100vh;

    display: grid;

    grid-template-rows:
        63px
        minmax(330px, 41vh)
        minmax(285px, 1fr)
        145px
        44px;

    background: #03060b;
}


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

.topbar {
    background:
        rgba(2, 4, 10, 0.98);

    border-bottom:
        1px solid rgba(165, 55, 255, 0.12);

    position: relative;

    z-index: 50;
}

.navigation {
    height: 100%;

    max-width: 1710px;

    margin: auto;

    padding:
        0 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;
}

.nav-links {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 48px;
}

.nav-links a {
    height: 100%;

    display: flex;

    align-items: center;

    color: #eeeeef;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    position: relative;

    transition:
        color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--purple-light);
}

.nav-links a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 5px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            #7c21db,
            #ef5fff
        );
}


/* Discord Button Navigation */

.discord-nav-btn {
    position: absolute;

    right: 35px;

    top: 50%;

    transform:
        translateY(-50%);

    height: 38px;

    padding:
        0 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(184, 65, 255, 0.6);

    border-radius: 6px;

    color: var(--purple-light);

    text-decoration: none;

    font-weight: 700;

    font-size: 13px;

    background:
        rgba(32, 8, 48, 0.22);

    transition:
        all 0.2s ease;
}

.discord-nav-btn:hover {
    background:
        rgba(166, 44, 255, 0.15);

    box-shadow:
        0 0 20px
        rgba(172, 44, 255, 0.17);
}

.discord-icon {
    margin-right: 10px;
}


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

.hero {
    position: relative;

    min-height: 0;

    overflow: hidden;

    background-image:
        url("../assets/hero/pdx-hero.png");

    /* Hero deutlich weiter rausgezoomt */
    background-size: 70% auto;

    background-repeat: no-repeat;

    background-position:
        center center;

    background-color: #03060b;

    border-bottom:
        1px solid
        rgba(157, 46, 255, 0.15);
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(1, 4, 10, 0.58) 0%,
            rgba(4, 2, 12, 0.16) 42%,
            rgba(1, 4, 12, 0.26) 65%,
            rgba(0, 3, 10, 0.62) 100%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 1720px;

    height: 100%;

    margin: auto;

    padding:
        25px 30px;

    display: grid;

    grid-template-columns:
        minmax(400px, 1fr)
        minmax(320px, 420px);

    align-items: center;

    gap: 75px;
}


/* ----------------------------------------------------------
   HERO LEFT
   ---------------------------------------------------------- */

.hero-text {
    max-width: 590px;

    transform:
        translateX(-55px);
}

.hero-eyebrow {
    color: #e45fff;

    font-size: 17px;

    font-weight: 600;

    margin-bottom: 7px;
}

.hero h1 {
    color: white;

    font-size:
        clamp(38px, 3.05vw, 58px);

    font-weight: 900;

    line-height: 0.98;

    letter-spacing: -1.5px;

    text-shadow:
        0 2px 15px
        rgba(0, 0, 0, 0.8);

    margin-bottom: 14px;
}

.hero h2 {
    color: #ee55ff;

    font-size: 18px;

    font-weight: 700;

    letter-spacing: 0.6px;

    margin-bottom: 20px;
}

.hero-text p {
    color: #eeeeef;

    font-size: 14px;

    line-height: 1.45;

    margin-bottom: 7px;

    text-shadow:
        0 1px 5px #000;
}

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 22px;
}


/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */

.btn {
    height: 42px;

    padding:
        0 22px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 5px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        all 0.2s ease;
}

.btn-purple {
    border:
        1px solid
        rgba(205, 63, 255, 0.75);

    color: #df5dff;

    background:
        rgba(52, 4, 86, 0.38);
}

.btn-purple:hover {
    color: white;

    background:
        linear-gradient(
            135deg,
            #5a16bd,
            #8e27e8
        );
}

.btn-dark {
    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    color: white;

    background:
        rgba(5, 6, 11, 0.61);
}

.btn-dark:hover {
    background:
        rgba(255, 255, 255, 0.08);
}


/* ==========================================================
   DISCORD HERO CARD
   ========================================================== */

.discord-card {
    justify-self: end;

    width: 100%;

    max-width: 410px;

    transform:
        translateX(55px);

    padding:
        20px 22px;

    background:
        linear-gradient(
            145deg,
            rgba(3, 6, 15, 0.96),
            rgba(5, 8, 18, 0.93)
        );

    border:
        1px solid
        rgba(141, 68, 213, 0.34);

    border-radius: 10px;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.48);
}

.discord-title {
    display: flex;

    align-items: center;

    gap: 12px;

    color: #bc4bff;

    font-size: 18px;

    font-weight: 800;

    margin-bottom: 18px;
}

.discord-title span {
    font-size: 22px;
}

.discord-card ul {
    list-style: none;

    display: grid;

    gap: 11px;

    color: #ececf0;

    font-size: 14px;
}

.discord-card li::before {
    content: "✓";

    color: #c744ff;

    font-weight: 900;

    margin-right: 12px;
}

.discord-main-btn {
    margin-top: 19px;

    width: 100%;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 5px;

    text-decoration: none;

    color: white;

    font-weight: 800;

    background:
        linear-gradient(
            110deg,
            #5f16d7,
            #8127ee
        );

    box-shadow:
        0 0 22px
        rgba(131, 31, 255, 0.34);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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

    box-shadow:
        0 0 30px
        rgba(171, 58, 255, 0.48);
}


/* ==========================================================
   SERVER SECTION
   ========================================================== */

.servers-section {
    min-height: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(26, 7, 55, 0.18),
            transparent 42%
        ),
        #03060b;

    padding:
        10px 5.3vw 9px;
}

.section-header {
    max-width: 1710px;

    height: 44px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.section-title {
    color: white;

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 800;

    font-size: 16px;
}

.section-title:first-letter {
    color: #cf42ff;
}

.section-subtitle {
    margin-left: 29px;

    margin-top: 1px;

    font-size: 12px;

    color: #91929b;
}

.last-update {
    border:
        1px solid
        rgba(132, 137, 155, 0.25);

    border-radius: 5px;

    color: #aaaab4;

    font-size: 11px;

    padding:
        8px 13px;

    background:
        rgba(2, 4, 10, 0.35);
}


/* ==========================================================
   SERVER GRID
   ========================================================== */

.server-grid {
    max-width: 1710px;

    height:
        calc(100% - 44px);

    margin: auto;

    display: grid;

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

    gap: 20px;
}

.server-card {
    min-width: 0;

    height: 100%;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    background:
        linear-gradient(
            155deg,
            #080d17,
            #04070d
        );

    border:
        1px solid
        rgba(133, 139, 158, 0.31);

    border-radius: 7px;

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

.server-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(179, 62, 255, 0.55);

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.35);
}


/* ----------------------------------------------------------
   SERVER IMAGE / HEADER
   ---------------------------------------------------------- */

.server-image {
    height: 44%;

    min-height: 105px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    border-bottom:
        1px solid
        rgba(142, 146, 160, 0.22);

    isolation: isolate;
}

.server-image::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.95;

    z-index: -2;
}

.server-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.36)
        );

    z-index: -1;
}

.minecraft::before {
    background:
        radial-gradient(
            circle at 25% 30%,
            #49a93c,
            transparent 24%
        ),
        radial-gradient(
            circle at 73% 25%,
            #6ab649,
            transparent 25%
        ),
        linear-gradient(
            140deg,
            #214d1a,
            #487d31 50%,
            #172d19
        );
}

.valheim::before {
    background:
        radial-gradient(
            circle at 50% 15%,
            #00a388,
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #033c3b,
            #0c594e 40%,
            #071b22
        );
}

.seven-days::before {
    background:
        radial-gradient(
            circle at 60% 20%,
            #654521,
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #292117,
            #131416 47%,
            #07090c
        );
}

.enshrouded::before {
    background:
        radial-gradient(
            circle at 72% 25%,
            #176f9e,
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #122d38,
            #0b5067,
            #081723
        );
}

.game-image-title {
    font-size:
        clamp(21px, 2vw, 37px);

    font-weight: 900;

    letter-spacing: -1px;

    color: rgba(255, 255, 255, 0.92);

    text-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.9);
}

.status-badge {
    position: absolute;

    top: 11px;
    left: 11px;

    padding:
        4px 9px;

    border-radius: 3px;

    font-size: 11px;

    font-weight: 800;

    color: white;
}

.online-badge {
    background: #00a42c;

    box-shadow:
        0 0 12px
        rgba(0, 255, 70, 0.2);
}

.offline-badge {
    background: #d61724;
}


/* ----------------------------------------------------------
   SERVER CONTENT
   ---------------------------------------------------------- */

.server-content {
    flex: 1;

    min-height: 0;

    padding:
        10px 14px;

    display: flex;

    flex-direction: column;
}

.server-name {
    color: white;

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 700;

    font-size: 14px;

    margin-bottom: 4px;
}

.server-name span {
    color: var(--purple);
}

.server-type {
    color: #a750e8;

    font-size: 12px;

    margin-left: 30px;

    margin-bottom: 7px;
}

.server-info {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #b9bac1;

    font-size: 12px;

    line-height: 1.2;

    margin-bottom: 6px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.server-info span:last-child {
    overflow: hidden;

    text-overflow: ellipsis;
}

.offline-text {
    color: #ff3038;

    font-weight: 700;
}

.server-actions {
    margin-top: auto;

    display: flex;

    gap: 7px;
}

.join-btn,
.details-btn,
.copy-btn {
    height: 37px;

    border-radius: 4px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

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

.join-btn {
    flex: 1;

    border: none;

    color: white;

    background:
        linear-gradient(
            100deg,
            #5a16bc,
            #7a22d1
        );
}

.copy-btn {
    width: 48px;

    color: #c84aff;

    border:
        1px solid
        #7e2fb1;

    background:
        rgba(18, 8, 32, 0.44);
}

.details-btn {
    width: 100%;

    color: #ca47ff;

    border:
        1px solid
        rgba(174, 53, 227, 0.74);

    background:
        transparent;
}

.join-btn:hover,
.copy-btn:hover,
.details-btn:hover {
    filter: brightness(1.2);

    transform:
        translateY(-1px);
}


/* ==========================================================
   BOTTOM 3 CARDS
   ========================================================== */

.bottom-grid {
    min-height: 0;

    padding:
        0 5.3vw 8px;

    display: grid;

    grid-template-columns:
        1fr 1.04fr 1.13fr;

    gap: 20px;

    background: #03060b;
}

.info-card {
    min-width: 0;

    overflow: hidden;

    padding:
        11px 19px;

    border:
        1px solid
        rgba(132, 139, 160, 0.28);

    border-radius: 7px;

    background:
        linear-gradient(
            145deg,
            rgba(7, 11, 19, 0.98),
            rgba(3, 6, 12, 0.98)
        );
}

.info-title {
    color: #c445ff;

    display: flex;

    align-items: center;

    gap: 11px;

    font-size: 17px;

    font-weight: 800;

    margin-bottom: 8px;
}


/* ----------------------------------------------------------
   SERVER STATUS CARD
   ---------------------------------------------------------- */

.status-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 27px;

    border-bottom:
        1px solid
        rgba(118, 125, 145, 0.14);

    color: #d4d4d9;

    font-size: 13px;
}

.status-row:last-child {
    border-bottom: 0;
}

.green {
    color: var(--green);

    font-weight: 600;
}


/* ----------------------------------------------------------
   CONTACT CARD
   ---------------------------------------------------------- */

.contact-row {
    min-height: 27px;

    display: grid;

    grid-template-columns:
        minmax(110px, 1fr)
        minmax(130px, 1.3fr)
        20px;

    align-items: center;

    color: #d9d9dd;

    text-decoration: none;

    border-bottom:
        1px solid
        rgba(118, 125, 145, 0.14);

    font-size: 13px;

    transition:
        color 0.2s ease;
}

.contact-row:last-child {
    border-bottom: 0;
}

.contact-row:hover {
    color: #d85cff;
}

.contact-detail {
    color: #a0a0aa;

    text-align: right;

    padding-right: 12px;
}


/* ----------------------------------------------------------
   RULES CARD
   ---------------------------------------------------------- */

.rules-card p {
    color: #a9a9b1;

    font-size: 13px;

    line-height: 1.35;

    margin-bottom: 5px;
}

.rules-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    height: 36px;

    margin-top: 3px;

    padding:
        0 18px;

    color: #d851ff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    border:
        1px solid
        rgba(195, 64, 255, 0.67);

    border-radius: 4px;

    background:
        rgba(46, 10, 70, 0.25);
}


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

.footer {
    padding:
        0 5.3vw;

    min-height: 0;

    border-top:
        1px solid
        rgba(95, 101, 121, 0.16);

    color: #777985;

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    align-items: center;

    font-size: 12px;

    background: #02050a;
}

.footer-slogan {
    text-align: center;

    color: #d066ee;

    letter-spacing: 7px;

    font-size: 10px;
}

.footer-icons {
    text-align: right;

    color: #a4a4ab;

    font-size: 18px;
}


/* ==========================================================
   LARGE DESKTOP OPTIMISATION
   ========================================================== */

@media
(max-height: 950px)
and (min-width: 1101px) {

    .page {
        grid-template-rows:
            57px
            minmax(300px, 40vh)
            minmax(265px, 1fr)
            132px
            40px;
    }

    .hero-content {
        padding-top: 17px;
        padding-bottom: 17px;
    }

    .discord-card {
        padding:
            16px 20px;
    }

    .discord-title {
        margin-bottom: 12px;
    }

    .discord-card ul {
        gap: 8px;
    }

    .discord-main-btn {
        margin-top: 14px;
    }

    .server-content {
        padding:
            8px 13px;
    }

    .info-card {
        padding:
            8px 17px;
    }

    .info-title {
        margin-bottom: 5px;
    }
}


/* ==========================================================
   LAPTOP
   ========================================================== */

@media
(max-width: 1350px)
and (min-width: 901px) {

    .nav-links {
        gap: 25px;
    }

    .discord-nav-btn {
        display: none;
    }

    .hero-content {
        padding:
            20px 45px;

        gap: 35px;

        grid-template-columns:
            1fr
            350px;
    }

    .hero-text {
        transform: none;
    }

    .discord-card {
        transform: none;
    }

    .servers-section,
    .bottom-grid,
    .footer {
        padding-left: 3vw;
        padding-right: 3vw;
    }

    .server-grid,
    .bottom-grid {
        gap: 12px;
    }

    .server-info {
        font-size: 11px;
    }

    .join-btn,
    .details-btn,
    .copy-btn {
        font-size: 10px;
    }

}


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

@media
(max-width: 900px) {

    body {
        overflow-y: auto;
    }

    .page {
        min-height: 100vh;

        display: block;
    }

    .topbar {
        min-height: 64px;
    }

    .navigation {
        justify-content: flex-start;

        overflow-x: auto;

        padding:
            0 18px;
    }

    .nav-links {
        justify-content: flex-start;

        gap: 25px;

        min-width: max-content;
    }

    .discord-nav-btn {
        display: none;
    }


    /* Hero Mobile */

    .hero {
        min-height: 650px;

        background-size: cover;

        background-position: center;
    }

    .hero-content {
        min-height: 650px;

        padding:
            50px 20px;

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .hero-text {
        max-width: 620px;

        transform: none;
    }

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

    .discord-card {
        justify-self: start;

        transform: none;
    }


    /* Server Mobile */

    .servers-section {
        overflow: visible;

        padding:
            30px 20px;
    }

    .section-header {
        height: auto;

        margin-bottom: 20px;

        gap: 15px;

        flex-wrap: wrap;
    }

    .server-grid {
        height: auto;

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

        gap: 18px;
    }

    .server-card {
        min-height: 330px;
    }

    .server-image {
        height: 145px;
    }


    /* Bottom Mobile */

    .bottom-grid {
        padding:
            0 20px 25px;

        grid-template-columns: 1fr;

        gap: 15px;
    }

    .info-card {
        min-height: 135px;
    }


    /* Footer Mobile */

    .footer {
        min-height: 100px;

        padding:
            20px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 12px;

        text-align: center;
    }

    .footer-slogan,
    .footer-icons {
        text-align: center;
    }

}


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

@media
(max-width: 600px) {

    .hero {
        background-position: center;
    }

    .hero-content {
        padding:
            40px 18px;
    }

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

    .hero h2 {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .discord-card {
        max-width: none;
    }

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

    .server-card {
        min-height: 350px;
    }

    .server-image {
        height: 155px;
    }

    .last-update {
        width: 100%;
    }

}