:root {
    --primary: #00eb4e;
    --primary-dim: #00eb4e99;
    --primary-faint: #00eb4e44;
    --bg: #0a120a;
    --bg-dark: rgba(0, 15, 0, 0.7);
    --bg-darker: rgba(0, 15, 0, 0.9);
    --bg-highlight: rgba(0, 235, 78, 0.2);
    --bg-highlight-dim: rgba(0, 235, 78, 0.15);
    --bg-highlight-faint: rgba(0, 235, 78, 0.05);
    --transition: all 0.2s ease;
}

html,
body {
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    color: var(--primary);
    background: var(--bg);
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 6px rgb(59 161 11 / 80%);
}

.crt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.crt::before,
.crt::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.crt::before {
    background:
        linear-gradient(hsla(0, 6%, 7%, 0) 50%, hsla(0, 0%, 0%, 0.25) 50%),
        linear-gradient(
            90deg,
            hsla(0, 100%, 50%, 0.06),
            hsla(120, 100%, 50%, 0.02),
            hsla(240, 100%, 50%, 0.06)
        );
    background-size:
        100% 8px,
        6px 100%;
}

.crt::after {
    background: hsla(0, 6%, 7%, 0.1);
    box-shadow: 0 0 100px 5px hsla(0, 0%, 0%, 0.5) inset;
    opacity: 0.3;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: normal;
    text-shadow: 0 0 10px var(--primary-dim);
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

p {
    color: var(--primary);
    line-height: 1.6;
}

a {
    color: var(--primary) !important;
    text-decoration: underline !important;
    border: 1px solid transparent;
    padding: 2px 4px;
    transition: var(--transition);
}

a:hover {
    color: #fff !important;
    text-decoration: none !important;
    border-color: var(--primary);
    background: var(--bg-highlight);
}

i {
    padding-right: 5px;
}

.navbar {
    background: var(--bg-darker) !important;
    border-bottom: 1px solid var(--primary) !important;
    backdrop-filter: blur(2px);
    box-shadow: 0 0 15px var(--primary-faint);
}

.navbar-toggler {
    border: none;
    color: var(--primary);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: var(--primary) !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border: 1px solid transparent;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff !important;
    text-decoration: none !important;
    border-color: var(--primary);
    background: var(--bg-highlight);
}

.container-fluid {
    position: relative;
    z-index: 1;
}

.content-bezel {
    border: 3px solid var(--primary) !important;
    box-shadow:
        inset 0 0 0 1px #333,
        inset 0 0 0 3px #1a1a1a,
        inset 0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 0 5px 2px var(--primary-faint),
        0 0 15px var(--primary-faint);
}

#server_info {
    padding: 0 1rem;
}

.background-black {
    background: var(--bg-darker) !important;
}

#server_info .card {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 100%;
}

.card {
    background: var(--bg-darker) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 0 !important;
    box-shadow: 0 0 15px var(--primary-faint);
}

.card-header {
    background: var(--bg-highlight-faint) !important;
    border-bottom: 1px solid var(--primary) !important;
    border-radius: 0 !important;
}

.card-header h5 {
    margin: 0;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-body .small {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card .text-white,
.card .fw-bold {
    color: var(--primary) !important;
}

footer {
    background: var(--bg-darker) !important;
    border-top: 1px solid var(--primary);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 15px var(--primary-faint);
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 2rem;
}

footer a {
    text-decoration: none !important;
}

.navbar-brand {
    padding: 0 !important;
    border: none !important;
}

.navbar-brand:hover {
    background: transparent !important;
    border: none !important;
}

img[alt="Logo"] {
    filter: brightness(1.1) drop-shadow(0 0 10px var(--primary));
}

::-webkit-scrollbar {
    width: 8px;
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border: 1px solid var(--primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

::selection {
    background: var(--primary);
    color: var(--bg);
}

.steam-widget {
    position: relative;
    z-index: 1001;
    width: 100%;
    max-width: 646px;
}

#announcements {
    padding: 0 1rem;
}

#announcements > a {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 300px;
    text-decoration: none !important;
    border: none !important;
    padding: 0 !important;
}

#announcements > a:hover {
    background: transparent !important;
}

.announcement-card {
    transition: var(--transition);
}

.announcement-card:hover {
    background: var(--bg-highlight) !important;
}

.announcement-card .card-title {
    font-size: 0.9rem;
    line-height: 1.3;
}

.announcement-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.8;
}

/* Changelog */
.changelog-container {
    max-width: 800px;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--primary);
}

.changelog-day {
    margin-bottom: 1.5rem;
}

.changelog-date {
    border-bottom: 1px solid var(--primary-dim);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.changelog-author {
    margin-bottom: 1rem;
}

.changelog-author strong {
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.changelog-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.changelog-badge {
    flex-shrink: 0;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    width: 90px;
    text-align: center;
}

.changelog-badge i {
    padding-right: 3px;
}

.changelog-green { background: rgba(0, 200, 80, 0.2); color: #00eb4e; }
.changelog-red { background: rgba(200, 50, 50, 0.2); color: #ff6b6b; }
.changelog-yellow { background: rgba(200, 180, 50, 0.2); color: #ffd93d; }
.changelog-blue { background: rgba(50, 150, 255, 0.2); color: #6bb3ff; }
.changelog-purple { background: rgba(150, 100, 200, 0.2); color: #b794f6; }
.changelog-orange { background: rgba(255, 150, 50, 0.2); color: #ffb347; }
.changelog-gray { background: rgba(150, 150, 150, 0.2); color: #aaa; }

.changelog-text {
    flex: 1;
}

.steam-widget iframe {
    width: 100%;
    height: 190px;
}

@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--primary-faint);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

}

@media (max-width: 768px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }

    h1, h2, h3, h4, h5, h6 {
        letter-spacing: 1px;
    }

    .content-bezel {
        border-width: 4px;
        margin: 0 0.5rem;
    }

    #server_info {
        width: 100%;
        padding: 0;
    }

    #server_info .card {
        min-width: auto;
        width: 100%;
        margin: 0;
    }

    #announcements {
        width: 100%;
        padding: 0;
    }

    #announcements > a {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .changelog-container {
        max-height: 400px;
    }

    .changelog-badge {
        width: 80px;
        font-size: 0.7rem;
    }

    .row > .col-12 {
        margin-bottom: 1.5rem;
    }

}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .content-bezel {
        border-width: 3px;
        padding: 1rem !important;
    }
}
