/* ==========================================================
   FOXHOLE PUBLIC DASHBOARD
   ========================================================== */

* {
    box-sizing: border-box;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #f4f4f4;

    background:
        linear-gradient(
            rgba(5, 7, 12, 0.30),
            rgba(5, 7, 12, 0.30)
        ),
        url("foxhole-bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* ==========================================================
   HAUPTBEREICH
   ========================================================== */

.dashboard {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 35px;
}


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

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    margin: 0;

    font-size: clamp(42px, 8vw, 82px);
    letter-spacing: 8px;

    color: #ffffff;

    text-shadow:
        0 0 8px rgba(255, 59, 95, 0.7),
        0 0 22px rgba(255, 59, 95, 0.35);
}

.server-address {
    margin-top: 8px;

    font-size: 18px;
    letter-spacing: 2px;

    color: #c8c8d0;
}

.server-status {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 9px;
    margin-top: 18px;

    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}


/* ==========================================================
   SERVER STATUS DOT
   ========================================================== */

.status-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #777;
    box-shadow: 0 0 8px #777;
}

.status-dot.online {
    background: #39ff88;
    box-shadow: 0 0 10px #39ff88;
}

.status-dot.offline {
    background: #ff3b5f;
    box-shadow: 0 0 10px #ff3b5f;
}

.separator {
    color: #777;
}


/* ==========================================================
   KARTEN
   ========================================================== */

.card {
    padding: 22px;

    background: rgba(13, 17, 23, 0.78);

    border: 1px solid rgba(255, 59, 95, 0.30);
    border-radius: 12px;

    box-shadow:
        0 5px 22px rgba(0, 0, 0, 0.38),
        0 0 12px rgba(255, 59, 95, 0.12);
}

.card-title {
    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;

    color: #a9abb5;
}

.card-value {
    margin-top: 10px;

    font-size: 24px;
    font-weight: bold;

    color: #ffffff;
}


/* ==========================================================
   STATUS GRID
   ========================================================== */

.status-grid {
    display: grid;

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

    gap: 16px;

    margin-bottom: 16px;
}

.status-grid .card:nth-child(1) {
    border-top: 2px solid #ff3b5f;
}

.status-grid .card:nth-child(2) {
    border-top: 2px solid #b45cff;
}

.status-grid .card:nth-child(3) {
    border-top: 2px solid #25d9ff;
}


/* ==========================================================
   PERFORMANCE GRAPH
   ========================================================== */

.graph-card {
    margin-bottom: 16px;
}

#performanceGraph {
    display: block;

    width: 100%;
    height: 250px;

    margin-top: 18px;

    background: rgba(2, 4, 8, 0.82);

    border-radius: 8px;
}


/* ==========================================================
   SERVER INFO
   ========================================================== */

.info-grid {
    display: grid;

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

    gap: 16px;
}


/* ==========================================================
   SOCIAL SECTION
   ========================================================== */

.social-section {
    margin-top: 45px;

    text-align: center;
}

.social-section h2 {
    margin: 0 0 20px;

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

    letter-spacing: 4px;

    color: #ffffff;
}


/* ==========================================================
   SOCIAL GRID
   ========================================================== */

.social-links {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;

    max-width: 760px;

    margin: 0 auto;
}


/* ==========================================================
   SOCIAL BUTTONS
   ========================================================== */

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 160px;
    min-height: 46px;

    padding: 12px 18px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;

    text-decoration: none;

    color: #ffffff;
    background: rgba(13, 17, 23, 0.82);

    border: 1px solid rgba(255, 59, 95, 0.42);
    border-radius: 8px;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

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

.social-button:hover {
    color: #ffffff;

    background: rgba(255, 59, 95, 0.20);

    border-color: #ff3b5f;

    box-shadow:
        0 0 14px rgba(255, 59, 95, 0.25);

    transform: translateY(-2px);
}

.social-button:active {
    transform: translateY(0);
}

.social-button:focus-visible {
    outline: 2px solid #25d9ff;
    outline-offset: 3px;
}


/* ==========================================================
   SOCIAL SVG ICONS
   Telegram / Discord / Bluesky / Instagram / X / TikTok
   ========================================================== */

.social-icon {
    display: block;

    width: 19px;
    height: 19px;

    margin-right: 9px;

    flex: 0 0 19px;

    /*
       Wichtig für unsere Inline-SVGs:
       Sowohl fill als auch stroke werden gesetzt.
    */
    fill: currentColor;
    stroke: none;

    color: #ffffff;

    opacity: 0.72;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.social-icon path,
.social-icon circle,
.social-icon ellipse {
    fill: currentColor;
}

.social-button:hover .social-icon {
    opacity: 1;
    transform: scale(1.08);
}


/* ==========================================================
   PAW PNG
   Fur Affinity / Furbase
   ========================================================== */

.social-paw-icon {
    display: block;

    width: 20px;
    height: 20px;

    margin-right: 9px;

    flex: 0 0 20px;

    object-fit: contain;

    /*
       Schwarze PNG-Pfote -> weiß.
    */
    filter: invert(1);

    opacity: 0.72;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.social-button:hover .social-paw-icon {
    opacity: 1;
    transform: scale(1.08);
}


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

footer {
    width: 100%;

    margin-top: 45px;

    text-align: center;

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

    color: #777b85;
}


/* ==========================================================
   TABLET / SMALL DESKTOP
   ========================================================== */

@media (max-width: 800px) {

    .dashboard {
        width: min(94%, 650px);
        padding-top: 30px;
    }

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

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

    #performanceGraph {
        height: 200px;
    }
}


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

@media (max-width: 480px) {

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

    .hero h1 {
        letter-spacing: 4px;
    }

    .server-status {
        flex-wrap: wrap;
    }

    .social-links {
        width: 100%;
    }

    .social-button {
        width: 100%;
    }
}

/* ==========================================================
   TEXT SOCIAL ICONS
   ========================================================== */

.social-text-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 19px;
    height: 19px;

    margin-right: 9px;

    flex: 0 0 19px;

    font-size: 18px;
    line-height: 1;

    color: #ffffff;

    opacity: 0.72;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.social-button:hover .social-text-icon {
    opacity: 1;
    transform: scale(1.08);
}