@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
    background-color: #1a1a1a;
    background-image: 
        linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%, #111),
        linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%, #111);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    color: #ddd;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #2a2a2a;
    border: 4px solid #555;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    border-bottom: 2px dashed #555;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

h1 {
    font-size: 4rem;
    margin: 0;
    color: #AAAAAA;
    text-shadow: 4px 4px 0 #000;
    letter-spacing: 2px;
}

h2, h3, h4 {
    color: #AAAAAA;
    text-shadow: 2px 2px 0 #000;
}

.subtitle {
    color: #FFFF55; /* Minecraft Yellow */
    margin-top: -10px;
    font-size: 1.5rem;
    text-shadow: 2px 2px 0 #000;
}

.server-status {
    background: #000;
    padding: 10px;
    border: 2px solid #333;
    display: inline-block;
    margin-top: 10px;
}

.status-label {
    color: #aaa;
}

.status-offline {
    color: #FF5555; /* Minecraft Red */
    font-weight: bold;
    animation: blink 2s infinite;
}

.last-seen {
    font-size: 0.9rem;
    color: #555;
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    background: #333;
    border: 2px solid #000;
}

nav li {
    display: inline-block;
}

nav a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

nav a:hover, nav a.active {
    background: #555;
    color: #FFFF55;
}

.news-item {
    background: #222;
    border: 1px solid #444;
    padding: 15px;
    margin-bottom: 15px;
}

.date {
    font-size: 0.9rem;
    color: #888;
    margin-top: -10px;
}

/* ARG Elements */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.1)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.6;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2a2a2a; /* Match container bg */
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(70px, 9999px, 90px, 0); }
    10% { clip: rect(10px, 9999px, 30px, 0); }
    /* ... more keyframes would be better but keeping it simple */
    100% { clip: rect(50px, 9999px, 20px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    20% { clip: rect(80px, 9999px, 10px, 0); }
    /* ... */
    100% { clip: rect(30px, 9999px, 90px, 0); }
}

/* Hidden elements */
.reveal-on-hover:hover {
    color: #aa0000;
    cursor: help;
}

/* --- NEW SECTIONS --- */

.divider {
    border: 0;
    border-top: 2px dashed #444;
    margin: 30px 0;
}

/* Rules Section */
.rules-container {
    background: #1e1e1e;
    padding: 20px;
    border: 1px solid #333;
}

.rules-container ol {
    padding-left: 20px;
}

.rules-container li {
    margin-bottom: 10px;
    color: #aaa;
}

.redacted {
    background: #000;
    color: #000;
    cursor: default;
}

.redacted:hover {
    color: #300; /* Subtle reveal */
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.staff-card {
    background: #222;
    border: 1px solid #444;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.staff-card:hover {
    transform: translateY(-5px);
    border-color: #666;
}

.avatar {
    width: 64px;
    height: 64px;
    background: #333;
    margin: 0 auto 10px;
    border: 2px solid #000;
    image-rendering: pixelated;
}

.avatar.admin { background: #55F; } /* Blue Steve */
.avatar.mod { background: #F55; }   /* Red Steve */
.avatar.builder { background: #5F5; } /* Green Steve */
.avatar.void { background: #000; border-color: #300; }

.staff-card h4 {
    margin: 5px 0;
    color: #fff;
}

.staff-card .role {
    color: #FFFF55;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.staff-card .desc {
    font-size: 0.8rem;
    color: #888;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.gallery-item {
    background: #000;
    border: 4px solid #333;
    padding: 5px;
    text-align: center;
}

.placeholder-img {
    width: 100%;
    height: 120px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.glitch-img {
    background: repeating-linear-gradient(
        45deg,
        #222,
        #222 10px,
        #333 10px,
        #333 20px
    );
    color: #a00;
    text-shadow: 1px 0 0 #f00;
    animation: flicker 0.2s infinite;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.gallery-item p {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}
