* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #a855f7;
    --primary-light: #c084fc;
    --primary-dark: #7c3aed;
    --secondary: #e879f9;
    --accent: #f0abfc;
    --bg-dark: #09090b;
    --bg-darker: #030305;
    --bg-card: #0f0f14;
    --bg-card-hover: #161620;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --glow: 0 0 30px rgba(168, 85, 247, 0.5);
    --glow-intense: 0 0 60px rgba(168, 85, 247, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

.logo span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #22c55e;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Logged-in User Button */
.btn-glow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    white-space: nowrap;
}

.btn-glow img {
    border: 2px solid rgba(168, 85, 247, 0.5);
}

.btn-glow {
    padding: 10px 20px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
}

/* Forum Header */
.forum-header {
    padding: 140px 0 60px;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.forum-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.forum-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    pointer-events: none;
}

.forum-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 10;
}

.forum-header-content {
    text-align: center;
    margin-bottom: 50px;
}

.forum-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    letter-spacing: 5px;
    margin-bottom: 15px;
}

.forum-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.forum-search {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 50px;
    padding: 15px 25px;
    transition: all 0.3s;
}

.forum-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.forum-search i {
    color: var(--text-muted);
    margin-right: 15px;
}

.forum-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

.forum-search input::placeholder {
    color: var(--text-muted);
}

.forum-stats-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.forum-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 20px 30px;
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 15px;
    transition: all 0.3s;
}

.forum-stat:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
}

.forum-stat i {
    font-size: 1.5rem;
    color: var(--primary);
}

.forum-stat .stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
}

.forum-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Forum Main */
.forum-main {
    padding: 60px 0 120px;
}

.forum-main .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.forum-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Forum Categories */
.forum-category {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s;
}

.forum-category:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    background: rgba(168, 85, 247, 0.05);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-right: 20px;
}

.category-icon.announcement { background: linear-gradient(135deg, #ef4444, #f87171); }
.category-icon.general { background: var(--gradient); }
.category-icon.suggestions { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.category-icon.support { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.category-icon.factions { background: linear-gradient(135deg, #10b981, #34d399); }
.category-icon.offtopic { background: linear-gradient(135deg, #6366f1, #818cf8); }

.category-info {
    flex: 1;
}

.category-info h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.category-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.category-stats {
    display: flex;
    gap: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Topics */
.category-topics {
    padding: 10px 0;
}

.topic {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.05);
    transition: all 0.3s;
}

.topic:last-child {
    border-bottom: none;
}

.topic:hover {
    background: rgba(168, 85, 247, 0.05);
}

.topic.pinned {
    background: rgba(168, 85, 247, 0.08);
}

.topic.pinned .topic-icon {
    color: var(--primary);
}

.topic.hot .topic-icon {
    color: #ef4444;
}

.topic-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-right: 15px;
}

.topic-info {
    flex: 1;
}

.topic-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.topic-info h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.topic-info h3 a:hover {
    color: var(--primary-light);
}

.topic-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.topic-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-meta .author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.topic-meta .tag {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hot-tag { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.accepted-tag { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.review-tag { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.solved-tag { background: rgba(34, 197, 94, 0.2); color: #4ade80; }

.topic-stats {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.topic-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all {
    display: block;
    text-align: center;
    padding: 15px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s;
}

.view-all:hover {
    background: rgba(168, 85, 247, 0.05);
    color: var(--secondary);
}

.view-all i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.view-all:hover i {
    transform: translateX(5px);
}

/* Subcategories */
.subcategories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 30px;
}

.subcategory {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

.subcategory:hover {
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
}

.subcategory i {
    color: var(--primary);
    font-size: 1.1rem;
}

.subcategory .count {
    margin-left: auto;
    padding: 3px 10px;
    background: var(--bg-darker);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sidebar */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.btn-new-thread {
    width: 100%;
    padding: 18px 30px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: var(--glow);
}

.btn-new-thread:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-intense);
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    padding: 25px;
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget h3 i {
    color: var(--primary);
}

.text-green {
    color: #22c55e !important;
}

/* Online Users */
.online-users {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.online-user img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.online-user .role {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.online-user .role.owner {
    background: var(--gradient);
    color: white;
}

.more-users {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Recent Activity */
.recent-activity {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 12px;
}

.activity-icon {
    width: 35px;
    height: 35px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.activity-info {
    font-size: 0.85rem;
    line-height: 1.5;
}

.activity-user {
    font-weight: 600;
    color: var(--text);
}

.activity-text {
    color: var(--text-muted);
}

.activity-info a {
    color: var(--primary-light);
    text-decoration: none;
}

.activity-info a:hover {
    text-decoration: underline;
}

.activity-time {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 3px;
}

/* Top Contributors */
.top-contributors {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contributor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contributor .rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.rank.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; }
.rank.silver { background: linear-gradient(135deg, #9ca3af, #6b7280); color: #000; }
.rank.bronze { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }

.contributor img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.contributor-info {
    display: flex;
    flex-direction: column;
}

.contributor-info .name {
    font-weight: 500;
}

.contributor-info .posts {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Discord Widget */
.discord-widget {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(168, 85, 247, 0.1));
    border-color: rgba(88, 101, 242, 0.3);
    text-align: center;
}

.discord-widget p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 25px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

.modal-large {
    max-width: 700px;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-darker);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
}

/* Editor Toolbar - Verbessert */
.editor-toolbar {
    display: flex;
    gap: 5px;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    flex-wrap: wrap;
}

.editor-toolbar button {
    width: 36px;
    height: 36px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-toolbar button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.editor-toolbar button:active {
    transform: translateY(0);
}

.editor-toolbar + textarea {
    border-radius: 0 0 12px 12px;
    border-top: none;
}

/* Markdown Hint */
.markdown-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.markdown-hint i {
    color: var(--primary);
}

.markdown-hint code {
    background: var(--bg-darker);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Textarea Styling */
.form-group textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-submit {
    padding: 15px 30px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-cancel {
    padding: 15px 30px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    border-color: var(--primary);
    color: var(--text);
}

.modal-footer {
    margin-top: 30px;
    text-align: center;
}

.modal-footer p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(168, 85, 247, 0.2);
}

.divider span {
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-discord-login {
    width: 100%;
    padding: 15px;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-discord-login:hover {
    background: #4752c4;
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--primary-light);
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.footer-column a:hover {
    color: var(--text);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.8rem !important;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1200px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .btn-new-thread {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(9, 9, 11, 0.98);
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    }
    
    .subcategories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .forum-header h1 {
        font-size: 2.5rem;
    }
    
    .forum-stats-bar {
        gap: 15px;
    }
    
    .forum-stat {
        padding: 15px 20px;
    }
    
    .forum-sidebar {
        grid-template-columns: 1fr;
    }
    
    .btn-new-thread {
        grid-column: span 1;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .category-icon {
        margin-right: 0;
    }
    
    .category-stats {
        justify-content: center;
    }
    
    .topic {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .topic-stats {
        width: 100%;
        justify-content: flex-start;
    }
    
    .subcategories {
        grid-template-columns: 1fr;
    }
    
    .player-count {
        display: none;
    }
}

@media (max-width: 480px) {
    .forum-header h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 25px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* Empty States */
.no-topics,
.no-users,
.no-activity,
.no-contributors {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-topics i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.no-topics p {
    margin: 0;
    font-size: 0.9rem;
}

/* User Profile in Modal */
.profile-header {
    text-align: center;
    padding: 20px;
}

.profile-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--primary);
}

.profile-header h3 {
    margin: 0 0 10px 0;
}

.profile-header .role {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.profile-header .role.admin {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.profile-header .role.member {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

/* Thread Page Styles */
.thread-main {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.thread-main .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb i.fa-chevron-right {
    font-size: 0.7rem;
    opacity: 0.5;
}

.thread-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.thread-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Thread Header */
.thread-header {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    padding: 30px;
}

.thread-title-section h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.thread-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-right: 10px;
}

.thread-badge.pinned {
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary-light);
}

.thread-badge.locked {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.thread-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.category-tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-tag.announcements { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.category-tag.general { background: rgba(168, 85, 247, 0.2); color: var(--primary-light); }
.category-tag.suggestions { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.category-tag.support { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.category-tag.factions { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.category-tag.offtopic { background: rgba(99, 102, 241, 0.2); color: #818cf8; }

/* Posts */
.post, .reply {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.original-post {
    border-color: rgba(168, 85, 247, 0.3);
}

.post-author, .reply-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(168, 85, 247, 0.05);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.post-author img, .reply-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
}

.author-role {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
}

.author-role.admin {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.author-role.member {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.post-date, .reply-date {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-content, .reply-content {
    padding: 25px;
    line-height: 1.8;
}

/* Markdown Content Styling */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin: 20px 0 10px;
    color: var(--text);
}

.markdown-content h1 { font-size: 1.5rem; }
.markdown-content h2 { font-size: 1.3rem; }
.markdown-content h3 { font-size: 1.1rem; }

.markdown-content p {
    margin-bottom: 15px;
}

.markdown-content a {
    color: var(--primary-light);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content code {
    background: var(--bg-darker);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background: var(--bg-darker);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 15px 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 15px 0;
    color: var(--text-muted);
    font-style: italic;
}

.markdown-content ul,
.markdown-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.markdown-content li {
    margin-bottom: 5px;
}

.markdown-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 15px 0;
}

/* Replies Section */
.replies-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.replies-section h3 i {
    color: var(--primary);
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reply-header {
    flex-wrap: wrap;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reply-author img {
    width: 40px;
    height: 40px;
}

.reply-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.reply-number {
    color: var(--primary-light);
    font-weight: 600;
}

.no-replies {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.no-replies i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

/* Reply Form */
.reply-form-container {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    padding: 30px;
}

.reply-form-container h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-form-container h3 i {
    color: var(--primary);
}

.markdown-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.markdown-hint i {
    color: var(--primary);
}

/* Login Prompt */
.login-prompt {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.login-prompt i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.login-prompt p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Back Button */
.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 15px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-back:hover {
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.1);
}

/* Thread Info */
.thread-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-item .value {
    font-weight: 500;
}

/* Author Card */
.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.author-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.author-card .name {
    font-weight: 600;
    font-size: 1.1rem;
}

.author-card .role {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Admin Actions */
.admin-actions {
    border-color: rgba(255, 107, 53, 0.3);
}

.admin-actions h3 {
    color: #ff6b35;
}

.admin-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-admin:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary);
}

.btn-admin.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-admin.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Thread Error */
.thread-error {
    text-align: center;
    padding: 60px 30px;
}

.thread-error i {
    font-size: 4rem;
    color: #f87171;
    margin-bottom: 20px;
}

.thread-error h2 {
    margin-bottom: 10px;
}

.thread-error p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.thread-loading {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-muted);
}

.thread-loading i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .thread-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .thread-title-section h1 {
        font-size: 1.4rem;
    }

    .post-author, .reply-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post-date, .reply-meta {
        margin-left: 0;
    }
}
