/* ================================
   TempsWG - Dark Neon Design
   ================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f5f7ff;
    background:
        radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.18), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.14), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.10), transparent 35%),
        #07080d;
    overflow-x: hidden;
}

/* Background glow */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

/* Main container */

.container {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0 60px;
    text-align: center;
}

/* Logo */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.logo::before {
    content: "✦";
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.5),
        inset 0 1px rgba(255,255,255,0.25);
}

/* Headline */

h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2.5px;
    background: linear-gradient(
        135deg,
        #ffffff 15%,
        #c7d2fe 45%,
        #a855f7 85%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    max-width: 600px;
    margin: 20px auto 38px;
    color: #8f96aa;
    font-size: 17px;
    line-height: 1.7;
}

/* Main button */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 14px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        0 10px 35px rgba(99,102,241,0.25),
        inset 0 1px rgba(255,255,255,0.2);
    transition: all 0.2s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 45px rgba(99,102,241,0.38),
        inset 0 1px rgba(255,255,255,0.25);
}

.button:active {
    transform: translateY(-1px);
}

/* Email box */

.email-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 30px auto 15px;
    padding: 8px;
    background: rgba(17, 19, 29, 0.82);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.35),
        inset 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(18px);
}

.email-box span {
    flex: 1;
    min-width: 0;
    padding: 15px;
    text-align: left;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 15px;
    color: #c7d2fe;
    word-break: break-all;
}

.email-box button,
.inbox-header button {
    border: 0;
    cursor: pointer;
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 13px 18px;
    background: #1b1e2a;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s ease;
}

.email-box button:hover,
.inbox-header button:hover {
    background: #25293a;
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 0 20px rgba(139,92,246,0.12);
}

/* Timer */

.info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 35px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #9ca3af;
    font-size: 14px;
    background: rgba(17,19,29,0.75);
    border: 1px solid rgba(255,255,255,0.07);
}

.info strong {
    color: #a78bfa;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 15px;
}

/* Inbox header */

.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 14px;
}

.inbox-header h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.3px;
}

/* Empty inbox */

.empty {
    padding: 55px 25px;
    border-radius: 20px;
    background: rgba(15,17,25,0.72);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
    backdrop-filter: blur(16px);
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: #171925;
    font-size: 28px;
    box-shadow: inset 0 1px rgba(255,255,255,0.06);
}

.empty strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.empty p {
    margin: 0;
    color: #777f94;
}

/* Messages */

.message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    margin-bottom: 10px;
    text-align: left;
    color: white;
    text-decoration: none;
    border-radius: 16px;
    background: rgba(17,19,29,0.82);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    backdrop-filter: blur(15px);
    transition: all 0.2s ease;
}

.message:hover {
    transform: translateY(-2px);
    background: rgba(25,28,42,0.95);
    border-color: rgba(139,92,246,0.35);
    box-shadow:
        0 12px 35px rgba(0,0,0,0.28),
        0 0 25px rgba(99,102,241,0.08);
}

.message strong {
    display: block;
    margin-bottom: 6px;
    color: #f3f4f6;
    font-size: 15px;
}

.message small {
    display: block;
    color: #7f879b;
    word-break: break-all;
}

.message time {
    flex-shrink: 0;
    color: #6f778b;
    font-size: 12px;
}

/* New address */

.new-address {
    display: inline-block;
    margin-top: 24px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.new-address:hover {
    color: #a78bfa;
}

/* Message page */

.back {
    display: inline-block;
    margin-bottom: 20px;
    color: #8f96aa;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.back:hover {
    color: #a78bfa;
}

.mail-card {
    padding: 30px;
    text-align: left;
    border-radius: 22px;
    background: rgba(15,17,25,0.88);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 25px 70px rgba(0,0,0,0.35),
        inset 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(18px);
}

.mail-card h1 {
    margin-bottom: 25px;
    font-size: clamp(25px, 5vw, 38px);
    letter-spacing: -1px;
}

.mail-meta {
    margin: 9px 0;
    color: #8d95a9;
    word-break: break-word;
}

.mail-meta strong {
    color: #d1d5db;
}

.mail-card hr {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mail-body {
    color: #d8dce8;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* Mobile */

@media (max-width: 650px) {

    .container {
        width: min(100% - 20px, 900px);
        padding-top: 40px;
    }

    h1 {
        font-size: 40px;
        letter-spacing: -1.8px;
    }

    .subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .email-box {
        flex-direction: column;
        align-items: stretch;
    }

    .email-box span {
        text-align: center;
    }

    .email-box button {
        width: 100%;
    }

    .inbox-header {
        gap: 12px;
    }

    .inbox-header h2 {
        font-size: 18px;
    }

    .inbox-header button {
        padding: 10px 13px;
    }

    .message {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .message time {
        font-size: 11px;
    }

    .mail-card {
        padding: 22px;
    }
}

/* TEMPSWG SIDEBAR */

.menu-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
    background: rgba(20,20,35,.80);
    border: 1px solid rgba(168,85,247,.40);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0,0,0,.45),0 0 25px rgba(124,58,237,.18);
    transition: .25s ease;
}

.menu-button:hover {
    transform: translateY(-3px);
    border-color: rgba(168,85,247,.85);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 245px;
    height: 100vh;
    z-index: 10001;
    padding: 22px 14px;
    background: linear-gradient(180deg,rgba(20,18,35,.97),rgba(8,9,17,.98));
    border-right: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(30px);
    box-shadow: 20px 0 70px rgba(0,0,0,.45);
    transform: translateX(-105%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(90deg,#c084fc,#818cf8,#60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sidebar-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    color: #94a3b8;
    background: rgba(255,255,255,.05);
    font-size: 22px;
    cursor: pointer;
}

.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 18px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: .2s ease;
}

.sidebar-item > span {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    font-size: 17px;
}

.sidebar-item strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
}

.sidebar-item small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.sidebar-item:hover {
    background: rgba(139,92,246,.12);
    border-color: rgba(139,92,246,.18);
    transform: translateX(3px);
}

.sidebar-item.active {
    background: linear-gradient(90deg,rgba(139,92,246,.20),rgba(59,130,246,.08));
    border-color: rgba(139,92,246,.25);
}

.sidebar-footer {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 22px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: .25s;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media(max-width:600px) {
    .sidebar {
        width: 225px;
    }

    .menu-button {
        right: 15px;
        bottom: 15px;
    }
}
