/* =========================================================
   KinakomochiMilk's Pages
   INDEX - Main Style
   ========================================================= */


/* =========================================================
   Base
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        "Segoe UI",
        "Noto Sans JP",
        sans-serif;

    color: #e8edf5;

    background:
        #080b10;

    overflow-x: hidden;
}


/* =========================================================
   Background
   ========================================================= */

.background {
    position: fixed;
    inset: 0;

    z-index: -1;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(100, 150, 210, 0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(80, 130, 190, 0.08),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #070a0f 0%,
            #0b1017 50%,
            #080b10 100%
        );
}


/* Subtle grid */

.background::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 40px 40px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );

    pointer-events: none;
}


/* =========================================================
   Main Container
   ========================================================= */

.container {
    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;

    padding:
        50px 0
        40px;
}


/* =========================================================
   Header
   ========================================================= */

header {
    display: flex;

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

    gap: 30px;

    margin-bottom: 35px;

    padding-bottom: 25px;

    border-bottom:
        1px solid
        rgba(180, 200, 225, 0.12);
}


/* =========================================================
   Logo
   ========================================================= */

.logo {
    display: flex;

    align-items: center;

    gap: 18px;
}


.logo-icon {
    display: flex;

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

    width: 58px;
    height: 58px;

    border:
        1px solid
        rgba(190, 215, 245, 0.25);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(150, 180, 220, 0.15),
            rgba(70, 100, 140, 0.08)
        );

    color: #dcecff;

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

    letter-spacing: 2px;

    box-shadow:
        0 0 25px
        rgba(100, 160, 220, 0.08);

    backdrop-filter: blur(10px);
}


.logo-text h1 {
    margin: 0;

    color: #f0f4fa;

    font-size: clamp(20px, 3vw, 28px);

    font-weight: 500;

    letter-spacing: 0.5px;
}


.logo-text p {
    margin: 5px 0 0;

    color: #8fa2b8;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 4px;
}


/* =========================================================
   Clock
   ========================================================= */

.clock {
    color: #a9bfd8;

    font-family:
        "Consolas",
        "SFMono-Regular",
        monospace;

    font-size: 15px;

    letter-spacing: 2px;

    white-space: nowrap;
}


/* =========================================================
   Main
   ========================================================= */

main {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* =========================================================
   Cards
   ========================================================= */

.card {
    position: relative;

    padding: 25px 28px;

    border:
        1px solid
        rgba(180, 205, 235, 0.10);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 27, 37, 0.78),
            rgba(12, 17, 24, 0.82)
        );

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.22),

        inset 0 1px 0
        rgba(255, 255, 255, 0.025);

    backdrop-filter: blur(14px);
}


.card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 28px;

    width: 45px;
    height: 1px;

    background:
        rgba(170, 205, 240, 0.65);

    box-shadow:
        0 0 10px
        rgba(130, 190, 240, 0.35);
}


.card h2 {
    margin: 0 0 25px;

    color: #a9bdd4;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 3px;
}


/* =========================================================
   Server Status
   ========================================================= */

.status-grid {
    display: grid;

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

    gap: 24px 35px;
}


.status-item {
    display: grid;

    grid-template-columns:
        80px
        minmax(100px, 1fr)
        65px;

    align-items: center;

    gap: 15px;

    color: #b9c6d6;

    font-size: 13px;
}


/* =========================================================
   Progress Bars
   ========================================================= */

.progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.bar {
    width: 0%;
    height: 100%;
    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #7899b8,
        #c8def2
    );

    transition: width 0.6s ease;
}


#ping-bar {
    background:
        linear-gradient(
            90deg,
            #7899b8,
            #b7cee4
        );
}


/* Values */

.status-item > span:last-child {
    color: #dbe6f2;

    font-family:
        "Consolas",
        "SFMono-Regular",
        monospace;

    font-size: 12px;

    text-align: right;

    white-space: nowrap;
}


/* =========================================================
   Services
   ========================================================= */

.service-list {
    display: grid;

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

    gap: 10px;
}


.service {
    display: flex;

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

    min-height: 48px;

    padding:
        0 15px;

    border:
        1px solid
        rgba(180, 205, 235, 0.07);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.018);

    color: #c4cfdb;

    font-size: 13px;

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


.service:hover {
    background:
        rgba(150, 190, 225, 0.045);

    border-color:
        rgba(180, 210, 240, 0.14);
}


/* =========================================================
   Service Status
   ========================================================= */

.status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    font-family:
        "Consolas",
        "SFMono-Regular",
        monospace;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}


.status::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;
}


/* Online */

.status.online {
    color: #a9c9bc;
}


.status.online::before {
    background: #83bca5;

    box-shadow:
        0 0 8px
        rgba(120, 200, 165, 0.7);
}


/* Offline */

.status.offline {
    color: #d49b9b;
}


.status.offline::before {
    background: #c87878;

    box-shadow:
        0 0 8px
        rgba(210, 100, 100, 0.6);
}


/* =========================================================
   Public Pages
   ========================================================= */

.link {
    display: flex;

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

    min-height: 50px;

    padding:
        0 17px;

    border:
        1px solid
        rgba(180, 205, 235, 0.08);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.018);

    color: #bdcee0;

    text-decoration: none;

    font-size: 13px;

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


.link::after {
    content: "→";

    color: #829bb5;

    font-size: 16px;

    transition:
        transform 0.2s ease;
}


.link:hover {
    background:
        rgba(150, 190, 225, 0.05);

    border-color:
        rgba(180, 210, 240, 0.18);

    transform:
        translateX(2px);
}


.link:hover::after {
    transform:
        translateX(4px);
}


/* =========================================================
   Footer
   ========================================================= */

footer {
    margin-top: 35px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(180, 200, 225, 0.08);

    color: #657487;

    font-size: 11px;

    letter-spacing: 1px;

    text-align: center;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 750px) {

    .container {
        width: min(
            100% - 25px,
            600px
        );

        padding-top: 30px;
    }


    header {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }


    .clock {
        align-self: flex-end;
    }


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

        gap: 18px;
    }


    .service-list {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 480px) {

    .container {
        width: calc(100% - 20px);

        padding-top: 20px;
    }


    .card {
        padding:
            22px 18px;
    }


    .card::before {
        left: 18px;
    }


    .logo {
        gap: 12px;
    }


    .logo-icon {
        width: 50px;
        height: 50px;
    }


    .logo-text h1 {
        font-size: 19px;
    }


    .status-item {
        grid-template-columns:
            65px
            minmax(80px, 1fr)
            60px;

        gap: 10px;
    }

}