/* Deadlock section - matches the neon theme of the main site */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2d1b69 0%, #1a0b3d 50%, #4a148c 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #e8e6f2;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a { color: #00ffff; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 20px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Section tabs (the global nav comes from /nav.js) */
.dl-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 18px 0 6px; }
.dl-tabs a { color: #fff; text-decoration: none; padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(255, 0, 255, 0.4); background: rgba(0, 0, 0, 0.5); font-size: 0.95rem; transition: all 0.2s ease; }
.dl-tabs a:hover, .dl-tabs a.active { background: linear-gradient(135deg, #ff00ff, #00ffff); color: #000; border-color: transparent; }

/* Hero */
.hero { text-align: center; padding: 20px 0 40px; }
.hero.small { padding-bottom: 24px; }
.title {
    font-size: 3rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff0080); background-size: 300% 300%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.subtitle { font-size: 1.2rem; color: #00ffff; font-weight: 300; text-shadow: 0 0 10px #00ffff; letter-spacing: 1px; }
.hero-copy { max-width: 640px; margin: 16px auto 0; color: #d6d2ea; }
.cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 12px 28px; border-radius: 25px; background: linear-gradient(135deg, #ff00ff, #00ffff); color: #000; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4); transition: transform 0.2s ease; }
.cta:hover { transform: translateY(-2px); }

/* Section cards */
.section-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.section-card { display: block; text-align: center; text-decoration: none; color: #fff; background: rgba(0, 0, 0, 0.8); border: 2px solid rgba(255, 0, 255, 0.5); border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 255, 0.3); transition: all 0.3s ease; }
.section-card:hover { transform: translateY(-8px); border-color: rgba(0, 255, 255, 0.8); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 255, 0.4); }
.tile-icon { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; }
.section-card.lore .tile-icon { background: linear-gradient(135deg, #ff00ff, #8000ff); box-shadow: 0 0 20px rgba(255, 0, 255, 0.6); }
.section-card.guides .tile-icon { background: linear-gradient(135deg, #00ffff, #0080ff); box-shadow: 0 0 20px rgba(0, 255, 255, 0.6); }
.section-card.fundamentals .tile-icon { background: linear-gradient(135deg, #ffff00, #ff8000); box-shadow: 0 0 20px rgba(255, 255, 0, 0.5); }
.section-card h2 { font-size: 1.6rem; color: #00ffff; text-shadow: 0 0 10px rgba(0, 255, 255, 0.8); margin-bottom: 8px; }
.section-card p { color: #fff; margin-bottom: 14px; }
.counts { font-size: 0.85rem; color: #ff9cf0; letter-spacing: 1px; text-transform: uppercase; }

/* Blocks */
.block { margin-bottom: 50px; }
.section-title { font-size: 1.8rem; color: #00ffff; text-shadow: 0 0 10px rgba(0, 255, 255, 0.6); margin-bottom: 20px; }
.empty { background: rgba(0, 0, 0, 0.6); border: 1px dashed rgba(255, 0, 255, 0.5); border-radius: 16px; padding: 24px; color: #d6d2ea; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: rgba(0, 0, 0, 0.8); border: 1px solid rgba(255, 0, 255, 0.4); border-radius: 16px; overflow: hidden; transition: all 0.3s ease; }
.post-card:hover { transform: translateY(-6px); border-color: rgba(0, 255, 255, 0.7); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.3); }
.post-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h3 { font-size: 1.15rem; line-height: 1.35; }
.post-body h3 a { color: #fff; text-decoration: none; }
.post-body h3 a:hover { color: #00ffff; }
.post-body p { color: #c9c5df; font-size: 0.95rem; flex: 1; }
.pill { align-self: flex-start; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 12px; background: rgba(255, 0, 255, 0.2); border: 1px solid rgba(255, 0, 255, 0.5); color: #ff9cf0; }
.read-more { color: #00ffff; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.read-more:hover { text-shadow: 0 0 10px #00ffff; }

/* Video cards */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.video-card { display: block; text-decoration: none; color: #fff; background: rgba(0, 0, 0, 0.8); border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 14px; overflow: hidden; transition: all 0.3s ease; }
.video-card:hover { transform: translateY(-5px); border-color: rgba(255, 0, 255, 0.8); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 0, 255, 0.35); }
.video-thumb { position: relative; }
.video-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.85); padding: 1px 7px; border-radius: 4px; font-size: 0.78rem; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; background: rgba(0, 0, 0, 0.35); opacity: 0; transition: opacity 0.2s ease; }
.video-card:hover .video-play { opacity: 1; }
.video-info { padding: 12px 14px 16px; }
.video-info h3 { font-size: 0.98rem; line-height: 1.35; margin-bottom: 6px; }
.video-date { font-size: 0.8rem; color: #9fa0c8; }

/* Post page */
.post { max-width: 760px; margin: 0 auto 50px; background: rgba(0, 0, 0, 0.78); border: 1px solid rgba(255, 0, 255, 0.4); border-radius: 20px; padding: 32px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.crumb { display: inline-block; margin-bottom: 14px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.post-title { font-size: 2.1rem; line-height: 1.25; color: #fff; text-shadow: 0 0 12px rgba(255, 0, 255, 0.6); margin-bottom: 8px; }
.post-meta { color: #9fa0c8; font-size: 0.9rem; margin-bottom: 22px; }
.embed { position: relative; aspect-ratio: 16 / 9; margin-bottom: 28px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0, 255, 255, 0.4); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-content h2 { font-size: 1.4rem; color: #00ffff; margin: 28px 0 10px; }
.post-content p { margin-bottom: 16px; font-size: 1.05rem; color: #e8e6f2; }
.post-content ul, .post-content ol { margin: 0 0 16px 22px; }
.post-content li { margin-bottom: 6px; }
.post-content strong { color: #fff; }
.post-cta { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.15); color: #c9c5df; }

.footer { text-align: center; padding: 20px 0; color: #00ffff; font-size: 0.9rem; text-shadow: 0 0 10px rgba(0, 255, 255, 0.6); }

/* Responsive */
@media (max-width: 900px) { .section-cards { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .container { padding: 15px; }
    .title { font-size: 2.2rem; }
    .post { padding: 20px 16px; }
    .post-title { font-size: 1.6rem; }
    .dl-tabs a { padding: 6px 12px; font-size: 0.85rem; }
}
