/* Drug Dealer Simulator Wiki - Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5865f2;
    --primary-dark: #4752c4;
    --success: #43b581;
    --warning: #faa61a;
    --danger: #ed4245;
    --bg-primary: #1e1e2e;
    --bg-secondary: #2a2a3e;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #dcddde;
    --text-secondary: #b9bbbe;
    --text-muted: #72767d;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header/Navigation */
.wiki-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wiki-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.wiki-logo h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.wiki-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-links a.active {
    background: rgba(88, 101, 242, 0.2);
    color: var(--primary);
}

.btn-staff {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-staff:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(0, 0, 0, 0.2));
    border-radius: 12px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Grid Layouts */
.games-grid,
.news-grid,
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.badge-released {
    background: rgba(67, 181, 129, 0.2);
    color: var(--success);
}

.badge-upcoming {
    background: rgba(250, 166, 26, 0.2);
    color: var(--warning);
}

.card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

.card-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
}

.btn {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* News Feed */
.news-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.news-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.news-source {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.source-steam {
    background: rgba(88, 101, 242, 0.2);
    color: var(--primary);
}

.source-reddit {
    background: rgba(255, 69, 0, 0.2);
    color: #ff4500;
}

.news-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-content {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.news-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Footer */
.wiki-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

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

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .games-grid,
    .news-grid,
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
/* Games Carousel (Horizontal) */
.games-carousel {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.game-card-horizontal {
    flex: 0 0 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.game-card-horizontal:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
}

.game-card-horizontal img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.game-card-content {
    padding: 1rem;
}

.game-card-content h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Feed Sections */
.feed-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.feed-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Feed Items */
.feed-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feed-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.2);
}

.feed-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.feed-item-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.feed-item-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.feed-item-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.feed-item-content {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feed-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.feed-item-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.feed-item-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Carousel Scrollbar */
.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .feed-container {
        grid-template-columns: 1fr;
    }
    
    .game-card-horizontal {
        flex: 0 0 240px;
    }
}
/* Twitter/X Badge */
.source-twitter {
    background: rgba(29, 155, 240, 0.2);
    color: #1d9bf0;
}
/* Games Page Styles */
.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.games-detail-grid {
    display: grid;
    gap: 2rem;
}

.game-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 2rem;
    transition: all 0.3s ease;
}

.game-detail-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.2);
}

.game-detail-image {
    position: relative;
}

.game-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-detail-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.game-detail-content {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-detail-content h3 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

.game-detail-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.game-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-item strong {
    color: var(--text-primary);
    min-width: 140px;
}

.info-item span {
    color: var(--text-secondary);
}

.game-features {
    padding: 1rem;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 8px;
}

.game-features strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.75rem;
}

.game-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.game-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    color: #fff;
}

.btn-steam:hover {
    background: linear-gradient(135deg, #2a475e, #1b2838);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 968px) {
    .game-detail-card {
        grid-template-columns: 1fr;
    }
    
    .game-detail-content {
        padding: 2rem;
    }
    
    .game-features ul {
        grid-template-columns: 1fr;
    }
}
/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

/* Guide Filters */
.guide-filters,
.news-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Guide Card */
.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.guide-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.2);
}

.guide-card-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.guide-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.guide-game-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(88, 101, 242, 0.2);
    color: var(--primary);
}

.guide-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.guide-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.guide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.guide-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* News Articles */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.news-article:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.2);
}

.news-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-article-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.news-article-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-article-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.news-author {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* About Page */
.about-content {
    max-width: 900px;
}

.about-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.about-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.games-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.game-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.game-item h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.game-item p {
    color: var(--text-secondary);
    margin: 0;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.2);
}

.social-link span {
    font-size: 2rem;
}

.social-link strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

.social-link p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.error {
    color: var(--danger);
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
}
/* Hide broken image icons */
img {
    object-fit: cover;
}

img[src=""],
img:not([src]),
img[src*="placeholder.jpg"] {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback for broken images */
img::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.2));
}
.bot-avatar {
    width: 35px;           /* ← Changed from 45px */
    height: 35px;          /* ← Changed from 45px */
    border-radius: 50%;
    border: 2px solid #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}
/* Rectangle Guide Items */
.guides-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-item-rect {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.guide-item-rect:hover {
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
    transform: translateX(5px);
}

.guide-info {
    flex: 1;
}

.guide-info h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.guide-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.guide-arrow {
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-item-rect:hover .guide-arrow {
    opacity: 1;
}

/* Rectangle Community Items */
.community-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-item-rect {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.community-item-rect:hover {
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
    transform: translateX(5px);
}

.community-icon {
    width: 60px;
    height: 60px;
    background: rgba(88, 101, 242, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.community-info {
    flex: 1;
}

.community-info h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.community-info p {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.community-game {
    display: inline-block;
    background: rgba(67, 181, 129, 0.2);
    color: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.community-arrow {
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.community-item-rect:hover .community-arrow {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .community-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
/* Guide Page - Embedded Box Style (add to wiki.css) */

/* Main container */
.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Dark embedded box */
#guideContent {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 2.5rem;
}

/* Back link */
#guideContent > a {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

#guideContent > a:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Guide header section */
.guide-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.guide-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.guide-meta i {
    color: var(--primary);
}

/* Guide content area */
.guide-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.guide-content h1,
.guide-content h2,
.guide-content h3,
.guide-content h4,
.guide-content h5,
.guide-content h6 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.guide-content h1 { font-size: 2rem; }
.guide-content h2 { font-size: 1.75rem; }
.guide-content h3 { font-size: 1.5rem; }
.guide-content h4 { font-size: 1.25rem; }
.guide-content h5 { font-size: 1.1rem; }
.guide-content h6 { font-size: 1rem; }

.guide-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.guide-content ul,
.guide-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.guide-content li {
    margin-bottom: 0.5rem;
}

.guide-content code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 0.9em;
}

.guide-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.guide-content pre code {
    background: none;
    padding: 0;
}

.guide-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.guide-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.guide-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.guide-content table th,
.guide-content table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
}

.guide-content table th {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-weight: 600;
}

.guide-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.loading-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.loading-state h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.loading-state p {
    color: var(--text-secondary);
}

/* Footer centering */
footer {
    text-align: center;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    padding: 2rem;
}

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

.footer-container p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .guide-container {
        padding: 1rem;
    }
    
    #guideContent {
        padding: 1.5rem;
    }
    
    .guide-title {
        font-size: 1.8rem;
    }
    
    .guide-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .guide-content {
        font-size: 0.95rem;
    }
    
    .guide-content h1 { font-size: 1.75rem; }
    .guide-content h2 { font-size: 1.5rem; }
    .guide-content h3 { font-size: 1.25rem; }
}

/* --- Mobile-First Responsive Navigation Additions --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        display: block;
        text-align: center;
    }

    .wiki-logo h1 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .wiki-logo h1 {
        font-size: 1rem;
    }
}