/* Forum Styles */
.forum-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.forum-header h1 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.forum-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1.1em;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.category-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    background: rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(0, 86, 179, 0.3));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: #4fc3f7;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
}

.category-info h2 a {
    color: #4fc3f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-info h2 a:hover {
    color: #80d4fa;
}

.category-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95em;
}

.category-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    min-width: 200px;
}

.category-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.category-stats .stat i {
    color: #4fc3f7;
}

.last-post {
    text-align: right;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.last-post small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

.last-post strong {
    color: #4fc3f7;
}

.forum-actions {
    text-align: center;
    margin: 30px 0;
}

.forum-notice {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.forum-notice a {
    color: #4fc3f7;
    text-decoration: underline;
}

/* Thread List */
.threads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thread-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.thread-card:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.thread-card.pinned {
    border-left: 3px solid #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

.thread-card.locked {
    opacity: 0.7;
}

.thread-icon {
    width: 40px;
    height: 40px;
    background: rgba(79, 195, 247, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4fc3f7;
    font-size: 1.2em;
    flex-shrink: 0;
}

.thread-content {
    flex: 1;
}

.thread-title {
    font-size: 1.2em;
    margin: 0 0 5px 0;
}

.thread-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.thread-title a:hover {
    color: #4fc3f7;
}

.thread-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

.thread-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.thread-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 80px;
}

.thread-stats .stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #4fc3f7;
}

.thread-stats .stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

/* Post Styles */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author strong {
    color: #4fc3f7;
    font-size: 1.1em;
}

.post-author .role-badge {
    background: rgba(0, 123, 255, 0.3);
    color: #4fc3f7;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.post-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

.post-content {
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.post-actions {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

/* Breadcrumbs */
.breadcrumbs {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
    color: #4fc3f7;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs i {
    font-size: 0.8em;
}

/* Reply Form */
.reply-form {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.reply-form h3 {
    color: #fff;
    margin: 0 0 20px 0;
}

.reply-form textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-family: inherit;
    resize: vertical;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #4fc3f7;
}

/* Thread page specific styles */
.thread-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.thread-header h1 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 2em;
}

.thread-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.thread-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.thread-info i {
    color: #4fc3f7;
}

.thread-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.role-badge {
    font-size: 0.75em !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.role-admin {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), rgba(183, 28, 28, 0.3));
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ef5350;
}

.role-badge.role-moderator {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.3));
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #66bb6a;
}

.role-badge.role-uploader {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(245, 127, 23, 0.3));
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffca28;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.98), rgba(30, 30, 30, 0.98));
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5em;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #ef5350;
}

.modal-body {
    padding: 25px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-group {
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .category-card {
        flex-direction: column;
        text-align: center;
    }
    
    .category-stats {
        align-items: center;
        width: 100%;
    }
    
    .thread-card {
        flex-direction: column;
    }
    
    .thread-stats {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }
    
    .thread-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .thread-actions {
        flex-direction: column;
    }
    
    .thread-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}
