:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --accent-yellow: #f1c40f;
    --accent-green: #2ecc71;
    --accent-blue: #0984e3;
    --accent-discord: #5865F2;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius: 25px;
    --sidebar-width: 250px;
    --secondary: #2c3e50;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating Navbar */
.nav-container {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.navbar {
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.logo-img {
    width: 40px;
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.btn-play {
    background: #a4ff00;
    color: #333;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 0 #86cf00;
    cursor: pointer;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #86cf00;
}

.btn-play:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #86cf00;
}

/* Hero Section (Bento Grid) */
.hero-grid-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px; /* Space for navbar */
    padding-bottom: 80px;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    animation: bounce-icon 2s infinite;
    z-index: 10;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes bounce-icon {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 300px 250px;
    gap: 20px;
}

.bento-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tilt-card {
    transition: transform 0.1s ease-out; /* Smooth tilt */
}

/* Hero Card */
.hero-card {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-bg-img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 60%;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent, black 50%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 50%);
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

.card-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

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

.btn-white {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 5px 0 rgba(0,0,0,0.1);
}

.btn-discord {
    background: var(--accent-discord);
    color: white;
    box-shadow: 0 5px 0 rgba(0,0,0,0.2);
}

/* Hero Right Column */
.hero-right-column {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Store Card */
.store-card {
    background: var(--accent-yellow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #d35400;
    flex: 1;
}

.discord-card {
    background: #5865F2;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    height: 160px;
}

.discord-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.store-img {
    width: 80%;
    margin-top: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transition: transform 0.3s;
}

.store-card:hover .store-img {
    transform: scale(1.1) rotate(5deg);
}

/* Vote Card */
.vote-card {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background: #74b9ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content-center {
    text-align: center;
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Stats Card */
.stats-card {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.player-heads {
    margin-top: 15px;
    display: flex;
}

.player-heads img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -10px;
}
.player-heads img:first-child {
    margin-left: 0;
}

.more-heads {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #dfe6e9;
    border: 3px solid white;
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Pixel Divider */
.pixel-divider {
    height: 40px;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 L0,20 L20,20 L20,0 L40,0 L40,40 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    background-repeat: repeat-x;
    background-position: bottom left;
    margin-top: -39px; /* Slight overlap to prevent gaps */
    position: relative;
    z-index: 10;
    image-rendering: pixelated;
    filter: drop-shadow(0 -2px 0 rgba(0,0,0,0.05)); /* Subtle depth */
}

.pixel-divider-flip {
    transform: scaleX(-1);
}

.white-section {
    background: white;
    padding: 80px 0;
}

.badge {
    background: #e3f2fd;
    color: var(--accent-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
}

.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }

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

.features-row {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-box {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    border-radius: var(--radius);
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-10px);
    background: #f8f9fa;
}

.feature-box img {
    width: 80px;
    margin-bottom: 20px;
}

/* Join Section */
.join-section {
    padding: 100px 0;
    text-align: center;
}

.join-card {
    background: white;
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow-soft);
    display: inline-block;
    width: 100%;
    max-width: 800px;
}

.ip-box {
    background: #f1f2f6;
    padding: 20px;
    border-radius: 15px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    max-width: 500px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.ip-box:hover {
    border-color: var(--accent-green);
}

.ip-address {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.copy-icon {
    color: var(--text-secondary);
}

.badge-bedrock {
    background: #e17055;
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Tutorial Steps */
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tutorial-step {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 15px;
}

.step-number {
    background: var(--accent-blue);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa; /* Slightly off-white for contrast */
}

.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-item.active .faq-answer {
    margin-top: 15px;
    max-height: 200px; /* Adjust as needed */
}

/* Footer - Floating Style */
.footer {
    background: white;
    color: var(--text-primary);
    border-radius: 40px;
    margin: 40px 20px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.8rem;
}

.socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.socials a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s;
    background: #f1f2f6;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials a:hover {
    color: white;
    background: var(--accent-blue);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    margin-top: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-blue);
    text-decoration: none;
}

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

/* Store Page Grid */
.store-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 50px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    object-fit: contain;
}

.product-price {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .hero-card {
        grid-column: 1 / 2;
        grid-row: auto;
        flex-direction: column;
        text-align: center;
        padding-bottom: 250px; /* Space for image */
    }

    .hero-bg-img {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        mask-image: linear-gradient(to top, transparent, black 20%);
    }

    .store-card, .vote-card, .stats-card {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .store-img {
        width: 40%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .socials {
        justify-content: center;
    }
}

/* Nations Page */
.nations-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nation-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 2px solid #eee;
}

.nation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.nation-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.nation-tag {
    background: var(--accent-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.nation-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.nation-towns-list h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.towns-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.towns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.town-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border: 1px solid #e0e0e0;
}

.town-card.sub-card {
    background: white;
    border: 1px solid #eee;
}

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

.town-header h4 {
    font-size: 1.2rem;
    margin: 0;
}

.mayor-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    background: #eee;
    padding: 4px 8px;
    border-radius: 20px;
}

.mayor-head {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.town-residents {
    margin-top: 15px;
}

.residents-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.residents-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.residents-avatars img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.more-residents {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: #dfe6e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text-secondary);
}

.loading-screen, .error-screen {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-secondary);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f2f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #ff7675;
    color: white;
}

.modal-header {
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 2.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tag-badge {
    background: var(--accent-blue);
    color: white;
    font-size: 1rem;
    padding: 5px 12px;
    border-radius: 8px;
    vertical-align: middle;
}

.mayor-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.mayor-badge img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.board-message {
    background: #fff8e1;
    border-left: 5px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-style: italic;
    color: #5d4037;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.detail-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
}

.residents-full-list h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.residents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.resident-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 10px;
}

.resident-card img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.res-info {
    display: flex;
    flex-direction: column;
}

.res-name {
    font-weight: bold;
}

.res-title {
    font-size: 0.8rem;
    color: var(--accent-blue);
}

.res-last-seen {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Activity Toasts */
.activity-toasts-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Let clicks pass through */
}

.activity-toast {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    pointer-events: auto; /* Enable clicks on toasts */
    border-left: 4px solid #6c5ce7;
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: #f1f2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.toast-content p {
    margin: 0;
    font-weight: 600;
    color: #2d3436;
    font-size: 0.95rem;
}

.toast-time {
    font-size: 0.75rem;
    color: #b2bec3;
    display: block;
    margin-top: 2px;
}

/* Animation Utilities */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Wiki Page Styles */
.wiki-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.wiki-sidebar {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.wiki-searchbox {
    position: relative;
    margin-bottom: 25px;
}

.wiki-searchbox i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.wiki-searchbox input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.wiki-searchbox input:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.wiki-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wiki-category h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    padding-left: 10px;
}

.wiki-category ul {
    list-style: none;
}

.wiki-category li {
    margin-bottom: 5px;
}

.wiki-category a {
    display: block;
    padding: 8px 15px;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s;
}

.wiki-category a:hover {
    background: #f8f9fa;
    color: var(--accent-blue);
    transform: translateX(5px);
}

.wiki-category a.active {
    background: var(--accent-blue);
    color: white;
}

.wiki-content {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    min-height: 500px;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.article-body {
    line-height: 1.8;
    color: #4a4a4a;
}

.article-body h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.article-body h3 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-blue);
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}

.article-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-body pre {
    background: #2d3436;
    color: #dfe6e9;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .wiki-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 30px;
    }
}
