:root {
    --bg: #0b0e14;
    --card: rgba(30, 41, 59, 0.7);
    --accent: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.3);
    --running: #22c55e;
    --upcoming: #eab308;
    --published: #38bdf8;
    --text: #f8fafc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: radial-gradient(circle at top right, #1e293b, #0b0e14);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.5;
}

.container { max-width: 850px; margin: 0 auto; }

header { text-align: center; margin: 30px 0 50px; }

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.clock-display { color: #94a3b8; font-size: 0.9rem; margin-top: 10px; }

.section-title {
    font-size: 1.2rem;
    margin: 30px 0 20px;
    color: #cbd5e1;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

/* Exam Card Styling */
.exam-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    backdrop-filter: blur(10px);
    padding: 22px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exam-card:hover:not(.locked) {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px -10px var(--accent-glow);
    background: rgba(30, 41, 59, 0.9);
}

.locked { opacity: 0.5; filter: grayscale(1); cursor: not-allowed; }

.paper-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    display: block;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.status-running { background: rgba(34, 197, 94, 0.15); color: var(--running); border: 1px solid var(--running); }
.status-upcoming { background: rgba(234, 179, 8, 0.15); color: var(--upcoming); border: 1px solid var(--upcoming); }
.status-published { background: rgba(56, 189, 248, 0.15); color: var(--published); border: 1px solid var(--published); }

.pulse {
    width: 8px; height: 8px; background: var(--running); border-radius: 50%;
    margin-right: 8px; animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.meta-grid { display: grid; grid-template-columns: auto auto; gap: 10px; margin-top: 10px; }

.meta-item {
    font-size: 0.8rem; color: #94a3b8; background: rgba(0,0,0,0.25);
    padding: 5px 12px; border-radius: 6px;
}

.btn-enter {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff; padding: 12px 20px; border-radius: 12px;
    font-weight: 700; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Archive Grid */
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.archive-item {
    background: var(--card); border-radius: 15px; padding: 15px;
    display: flex; align-items: center; gap: 15px; text-decoration: none;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.2s;
}

.archive-item:hover { border-color: #fbbf24; background: rgba(251, 191, 36, 0.05); }

.archive-icon {
    background: #fbbf24; color: #000; font-weight: 900;
    width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; border-radius: 8px; font-size: 0.7rem;
}

.ad-container { margin: 30px 0; border-radius: 12px; overflow: hidden; text-align: center; }

#load-more-btn {
    display: block; width: 100%; padding: 15px; margin-top: 20px;
    background: transparent; border: 1px solid #334155; color: #94a3b8;
    border-radius: 12px; cursor: pointer; font-weight: 600;
}

#load-more-btn:hover { background: #1e293b; color: #fff; }

@media (max-width: 600px) {
    .exam-card { flex-direction: column; align-items: flex-start; }
    .btn-enter { width: 100%; margin-top: 15px; text-align: center; }
    .archive-grid { grid-template-columns: 1fr; }
}