/* ===========================================
   DESTERIA-INSPIRED DARK FANTASY THEME
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f59e0b;
    --secondary-color: #d97706;
    --bg-dark: #1a1311;
    --bg-darker: #0f0c0a;
    --bg-card: rgba(30, 24, 20, 0.95);
    --text-primary: #fef3e2;
    --text-secondary: rgba(254, 243, 226, 0.7);
    --text-muted: rgba(254, 243, 226, 0.5);
    --border-color: rgba(254, 243, 226, 0.1);
    --border-glow: rgba(245, 158, 11, 0.3);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(ellipse at top, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(30, 20, 15, 0.8) 0%, transparent 50%);
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.announcement-bar a {
    color: #fff;
    text-decoration: none;
}

.announcement-bar a:hover {
    text-decoration: underline;
}

/* ===========================================
   SITE HERO - Logo Banner at Top
   =========================================== */
.site-hero {
    text-align: center;
    padding: 60px 24px 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1600px;
    margin: 0 auto;
}

/* ===========================================
   SITE NAVBAR - Below Hero
   =========================================== */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 12, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 56px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(245, 158, 11, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.nav-store {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary-color) !important;
}

.nav-store .material-icons {
    font-size: 18px;
}

.nav-store:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.25));
    border-color: rgba(245, 158, 11, 0.5);
}

/* ===========================================
   CONTENT WRAPPER - Solid Background for Content + Footer
   =========================================== */
.site-content-wrapper {
    background: var(--bg-dark);
    position: relative;
    z-index: 2;
}

/* ===========================================
   MAIN CONTENT AREA
   =========================================== */
.site-main {
    min-height: calc(100vh - 300px);
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Legacy support */
.site-header {
    display: none;
}

.hero-section {
    display: none;
}

.hero-logo {
    max-width: 400px;
    max-height: 200px;
    margin-bottom: 32px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Server IP Button */
.server-ip {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.server-ip:hover {
    transform: translateY(-2px);
}

.copy-label,
.join-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ip-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.server-ip:hover .ip-display {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.server-ip.copied .ip-display {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--primary-color);
}

.ip-display .material-icons {
    color: var(--primary-color);
    font-size: 20px;
}

.ip-text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.player-count {
    background: rgba(245, 158, 11, 0.2);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Discord Button */
.discord-btn {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    transform: translateY(-2px);
}

.discord-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.discord-btn:hover .discord-display {
    border-color: #5865F2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
}

.discord-icon {
    width: 22px;
    height: 22px;
    color: #5865F2;
}

.discord-count {
    background: rgba(88, 101, 242, 0.2);
    color: #5865F2;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Content Container */
.content-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Page Title */
.page-title-section {
    text-align: center;
    padding: 40px 24px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Cards */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title .material-icons {
    color: var(--primary-color);
}

/* Articles Grid */
.articles-section {
    padding: 0 24px 60px;
}

.articles-container {
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.section-link:hover {
    gap: 8px;
}

/* Featured Article */
.featured-article {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 32px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: block;
    text-decoration: none;
}

.featured-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.featured-article-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.featured-article-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 12, 10, 0.95) 0%, rgba(15, 12, 10, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 16px;
}

.featured-article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    max-width: 700px;
}

.featured-article-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.featured-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    image-rendering: pixelated;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-card-content {
    padding: 24px;
}

.article-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    image-rendering: pixelated;
}

/* Staff Page */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.staff-category {
    margin-bottom: 48px;
}

.staff-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-category-title .role-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.staff-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.staff-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.staff-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid var(--border-color);
    object-fit: cover;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
}

.staff-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid var(--border-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.staff-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.staff-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Rules Page */
.rules-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.rules-content h1,
.rules-content h2,
.rules-content h3 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.rules-content h1:first-child,
.rules-content h2:first-child {
    margin-top: 0;
}

.rules-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.rules-content ul,
.rules-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.rules-content li {
    margin-bottom: 8px;
}

.rules-content strong {
    color: var(--text-primary);
}

/* Vote Page */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vote-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.vote-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vote-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(245, 158, 11, 0.1);
}

.vote-info {
    flex: 1;
}

.vote-site-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.vote-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vote-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.vote-card:hover .vote-btn {
    transform: scale(1.05);
}

/* Support Page */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.support-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.support-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.support-icon .material-icons {
    font-size: 32px;
    color: var(--primary-color);
}

.support-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.support-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-social {
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.footer-social:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* Article Detail Page */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.article-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 32px;
}

.article-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-detail-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-detail-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-detail-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-links {
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 0;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .hero-section {
        padding: 40px 16px 30px;
    }
    
    .hero-logo {
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-article-image {
        height: 300px;
    }
    
    .featured-article-overlay {
        padding: 24px;
    }
    
    .featured-article-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 24px;
    }
    
    .rules-content {
        padding: 24px;
    }
    
    .article-detail-title {
        font-size: 1.75rem;
    }
    
    .article-detail-content {
        padding: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===========================================
   DESTERIA-STYLE NAVBAR OVERRIDE
   =========================================== */

.site-header {
    background: rgba(15, 12, 10, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    height: 52px;
}

.nav-links {
    gap: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 14px 24px;
    border-radius: 0;
    background: transparent;
}

.nav-link:hover {
    color: #fff;
    background: transparent;
}

.nav-link.active {
    color: var(--primary-color);
    background: transparent;
}

.nav-link.active::after {
    display: none;
}

.nav-store {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-store:hover {
    background: transparent;
    border: none;
    color: #fff !important;
}

.nav-store.active {
    color: var(--primary-color) !important;
}

/* ===========================================
   ADDITIONAL SOLID BACKGROUNDS FOR PAGES
   =========================================== */

.bg-card-solid {
    background: var(--bg-card);
}

/* Ensure content containers have proper backgrounds */
.content-container,
.rules-page-container,
.staff-container,
.vote-container,
.support-container {
    position: relative;
    z-index: 1;
}

