/* =========================================
   F-SERVER — DARK ORANGE THEME
   ========================================= */

:root {
    --background: #080a0f;
    --background-light: #0e1119;
    --card: #111620;
    --card-hover: #171e2a;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f5;
    --muted: #9299a8;
    --orange: #ff781f;
    --orange-light: #ff9a45;
    --orange-dark: #d9570b;
    --green: #35df80;
    --red: #ff5151;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(
            ellipse at 78% 18%,
            rgba(255, 106, 24, 0.11),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 10% 70%,
            rgba(255, 106, 24, 0.045),
            transparent 35%
        );
}

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

header {
    width: 100%;
    height: 82px;
    padding: 0 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 10, 15, 0.92);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(14px);
}

.logo {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 1px;
    color: white;
}

.logo span {
    color: var(--orange);
}

nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

nav a {
    color: #c2c5ce;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--orange-light);
}

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

main {
    width: 100%;
}

.hero {
    min-height: 475px;
    padding: 75px 12%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 78% 48%,
            rgba(255, 105, 20, 0.18),
            transparent 43%
        ),
        linear-gradient(
            110deg,
            #080a0f 0%,
            #0d1018 58%,
            #17100d 100%
        );
}

.hero::after {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    right: 9%;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 122, 31, 0.09);
    box-shadow:
        0 0 80px rgba(255, 105, 20, 0.055),
        inset 0 0 80px rgba(255, 105, 20, 0.035);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: clamp(38px, 5.2vw, 66px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: white;
}

h1 span {
    color: var(--orange);
    text-shadow: 0 0 28px rgba(255, 111, 28, 0.17);
}

.hero-content > p {
    margin-top: 20px;
    color: #aeb3bf;
    font-size: 17px;
    line-height: 1.6;
}

/* =========================================
   SERVER IP
   ========================================= */

.server-ip {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 9px 10px 9px 20px;
    background: rgba(22, 27, 37, 0.92);
    border: 1px solid rgba(255, 125, 37, 0.3);
    border-radius: 9px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.25);
}

.server-ip span {
    color: white;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.server-ip button,
.mode-modal-button {
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: white;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    padding: 14px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.server-ip button:hover,
.mode-modal-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 7px 24px rgba(255, 112, 27, 0.3);
}

#copy-status,
#mode-copy-status {
    min-height: 18px;
    margin-top: 9px;
    color: var(--green);
    font-size: 13px;
}

/* =========================================
   ONLINE STATUS
   ========================================= */

.online-section {
    padding: 0 12%;
    margin-top: -1px;
    position: relative;
    z-index: 2;
}

.online-card {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-width: 270px;
    padding: 22px 28px;
    background: linear-gradient(145deg, #131923, #0e121a);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: 9px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.online-indicator {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(53, 223, 128, 0.65);
    animation: online-pulse 2s infinite;
}

@keyframes online-pulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(53, 223, 128, 0.45);
    }
    50% {
        box-shadow: 0 0 17px rgba(53, 223, 128, 0.9);
    }
}

.online-label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.online-card h2 {
    color: white;
    font-size: 30px;
    font-weight: 900;
}

.online-card h2 small {
    color: #767e8c;
    font-size: 17px;
    font-weight: 600;
}

.online-card p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* =========================================
   PLAYERS LIST
   ========================================= */

.players-list-section {
    padding: 75px 12% 10px;
}

.players-list-section h2 {
    margin-bottom: 22px;
    color: white;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.players-list-section h2::after,
.modes > h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 12px;
    border-radius: 5px;
    background: var(--orange);
}

.players-list {
    min-height: 55px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 17px;
    background: rgba(17, 22, 32, 0.8);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.players-list > p {
    color: var(--muted);
    font-size: 13px;
}

.player-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    color: #e6e8ed;
    background: #1a202c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.player-name::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

/* =========================================
   GAME MODES
   ========================================= */

.modes {
    padding: 80px 12% 105px;
}

.modes > h2 {
    color: white;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.modes > p {
    margin-top: 13px;
    color: var(--muted);
    font-size: 15px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 32px;
}

.mode-card {
    min-height: 205px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    font-family: inherit;
    color: white;
    background:
        linear-gradient(145deg, rgba(24, 30, 41, 0.98), rgba(13, 17, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.mode-card::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--orange);
    opacity: 0.75;
    transition: width 0.25s ease;
}

.mode-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -65px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(255, 111, 25, 0.08);
    filter: blur(15px);
    transition: background 0.25s ease;
}

.mode-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 125, 37, 0.55);
    background: linear-gradient(145deg, #1b202a, #151820);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.mode-card:hover::before {
    width: 6px;
}

.mode-card:hover::after {
    background: rgba(255, 111, 25, 0.2);
}

.mode-card h3 {
    margin-bottom: 12px;
    color: white;
    font-size: 25px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.mode-card p {
    color: #a4aab6;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.mode-card-more {
    margin-top: 22px;
    color: var(--orange-light);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.mode-card:focus-visible,
button:focus-visible,
nav a:focus-visible {
    outline: 2px solid var(--orange-light);
    outline-offset: 4px;
}

/* =========================================
   MODE INFORMATION MODAL
   ========================================= */

.mode-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.mode-modal.active {
    opacity: 1;
    visibility: visible;
}

.mode-modal-content {
    width: 100%;
    max-width: 510px;
    padding: 42px;
    position: relative;
    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(255, 108, 25, 0.13),
            transparent 45%
        ),
        #111620;
    border: 1px solid rgba(255, 125, 37, 0.3);
    border-radius: 13px;
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.65);
    transform: translateY(15px) scale(0.98);
    transition: transform 0.25s ease;
}

.mode-modal.active .mode-modal-content {
    transform: translateY(0) scale(1);
}

.mode-modal-close {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aeb4c0;
    background: #202633;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.mode-modal-close:hover {
    color: white;
    background: var(--orange-dark);
}

.mode-modal-label {
    display: inline-block;
    margin-bottom: 17px;
    color: var(--orange-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.mode-modal-content h2 {
    margin-bottom: 13px;
    color: white;
    font-size: 30px;
    font-weight: 900;
}

.mode-modal-content > p {
    color: #b1b7c3;
    font-size: 14px;
    line-height: 1.7;
}

.mode-modal-info {
    margin-top: 22px;
    padding: 17px;
    color: #d4d7de;
    background: rgba(255, 255, 255, 0.035);
    border-left: 3px solid var(--orange);
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.7;
}

.mode-modal-button {
    width: 100%;
    margin-top: 25px;
    padding: 16px;
}

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

footer {
    padding: 28px 15px;
    color: #777f8e;
    background: #090c12;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
    header {
        padding: 0 6%;
    }

    .hero {
        padding: 70px 8%;
    }

    .online-section,
    .players-list-section,
    .modes {
        padding-left: 8%;
        padding-right: 8%;
    }

    .hero::after {
        right: -100px;
        opacity: 0.6;
    }
}

@media (max-width: 600px) {
    header {
        height: 70px;
        padding: 0 6%;
    }

    .logo {
        font-size: 21px;
    }

    nav {
        gap: 17px;
    }

    nav a {
        font-size: 12px;
    }

    .hero {
        min-height: 420px;
        padding: 65px 7%;
    }

    .hero::after {
        width: 250px;
        height: 250px;
        right: -125px;
    }

    h1 {
        font-size: clamp(35px, 9vw, 48px);
        letter-spacing: -1px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .server-ip {
        width: 100%;
        gap: 8px;
        justify-content: space-between;
        padding: 8px;
    }

    .server-ip span {
        padding-left: 7px;
        font-size: 13px;
    }

    .server-ip button {
        padding: 13px 10px;
        font-size: 9px;
    }

    .online-section,
    .players-list-section,
    .modes {
        padding-left: 7%;
        padding-right: 7%;
    }

    .online-card {
        width: 100%;
        padding: 19px 22px;
    }

    .players-list-section {
        padding-top: 58px;
    }

    .modes {
        padding-top: 65px;
        padding-bottom: 75px;
    }

    .modes > h2 {
        font-size: 23px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .mode-card {
        min-height: 180px;
        padding: 25px;
    }

    .mode-modal-content {
        padding: 35px 24px 27px;
    }

    .mode-modal-content h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Minecraft version badge */
.server-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 13px;
    background: #21170f;
    border: 1px solid rgba(255, 120, 31, 0.4);
    border-radius: 7px;
    color: #ff9a45 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
