:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.95);
    --primary-color: #00ff88;
    --accent-color: #00ccff;
    --text-primary: #ffffff;
    --text-secondary: #888;
    --border-color: rgba(0, 255, 136, 0.2);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Orbitron', monospace;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 204, 255, 0.2));
    border-color: var(--primary-color);
}

.register-link {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #000;
    font-weight: 700;
}

.login-link {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #000;
    font-weight: 700;
}

/* Forum Header */
.forum-header {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 255, 0.1));
    border-bottom: 2px solid var(--border-color);
}

.forum-header h1 {
    font-size: 3rem;
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.forum-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-new-topic {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.btn-new-topic:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

/* Forum Stats */
.forum-stats {
    padding: 2rem;
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-color);
}

.forum-stats .container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-box {
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.stat-icon {
    font-size: 3rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Categories and Filters */
.forum-categories {
    padding: 2rem;
}

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

.category-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #000;
    border-color: transparent;
}

/* Topics List */
.topics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topic-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.topic-card:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.topic-icon {
    font-size: 3rem;
}

.topic-info {
    flex: 1;
}

.topic-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.topic-category {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.topic-pinned {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
}

.topic-locked {
    background: rgba(255, 0, 85, 0.2);
    color: #ff0055;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.topic-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.topic-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.topic-stats {
    display: flex;
    gap: 1.5rem;
    text-align: right;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-item-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 1200px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.modal-close {
    background: rgba(255, 0, 85, 0.2);
    color: #ff0055;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff0055;
    color: #fff;
    transform: rotate(90deg);
}

/* Forms */
.topic-form {
    padding: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

/* Topic View */
.topic-view-content {
    padding: 2rem;
}

.topic-original-post {
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

.post-content {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.topic-replies {
    margin-bottom: 2rem;
}

.reply-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.topic-reply-form {
    background: rgba(0, 204, 255, 0.05);
    border: 2px solid rgba(0, 204, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
}

.topic-reply-form h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.topic-reply-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.no-topics {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-topics-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .forum-header h1 {
        font-size: 2rem;
    }

    .topic-card {
        grid-template-columns: 1fr;
    }

    .topic-stats {
        justify-content: flex-start;
    }

    .category-filters {
        justify-content: center;
    }

    .modal-content {
        margin: 1rem;
    }
}
