/**
 * Forum CSS - LoveWoW v3.0
 */

.forum-page {
    padding: 80px 1rem 2rem;
}

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

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--jade-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--gold);
}

/* Forum Header */
.forum-header {
    text-align: center;
    margin-bottom: 2rem;
}

.forum-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.forum-header p {
    color: var(--text-muted);
}

/* Stats Bar */
.forum-stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26,122,92,0.1), rgba(10,15,13,0.8));
    border: 1px solid rgba(46,176,134,0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.forum-stats-bar .stat {
    text-align: center;
}

.forum-stats-bar .stat-value {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--jade-light);
}

.forum-stats-bar .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Shoutbox */
.shoutbox-container {
    background: linear-gradient(135deg, rgba(26,122,92,0.1), rgba(10,15,13,0.9));
    border: 1px solid rgba(46,176,134,0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.shoutbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(46,176,134,0.2);
}

.shoutbox-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold-light);
}

.live-indicator {
    font-size: 0.75rem;
    color: var(--jade-light);
    animation: pulse 2s infinite;
}



.shoutbox-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-online {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
}
.shoutbox-messages {
    height: 200px;
    overflow-y: auto;
    padding: 0.75rem;
}

.shoutbox-msg {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    animation: fadeIn 0.3s ease;
}

.shoutbox-msg:last-child {
    border-bottom: none;
}

.shoutbox-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.shoutbox-content {
    flex: 1;
    min-width: 0;
}

.shoutbox-user {
    font-weight: 500;
    color: var(--jade-light);
    font-size: 0.85rem;
}

.shoutbox-text {
    color: var(--text-light);
    font-size: 0.9rem;
    word-break: break-word;
}

.shoutbox-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.shoutbox-form {
    display: flex;
    border-top: 1px solid rgba(46,176,134,0.2);
}

.shoutbox-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.3);
    border: none;
    color: var(--text-light);
    font-family: 'Crimson Pro', serif;
    font-size: 0.95rem;
}

.shoutbox-form input:focus {
    outline: none;
    background: rgba(0,0,0,0.4);
}

.shoutbox-form button {
    padding: 0.75rem 1.5rem;
    background: var(--jade);
    border: none;
    color: white;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
    transition: background 0.2s;
}

.shoutbox-form button:hover {
    background: var(--jade-light);
}

.shoutbox-login {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(46,176,134,0.2);
}

.shoutbox-login a {
    color: var(--jade-light);
    text-decoration: none;
}

/* Categories */
.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(26,122,92,0.1), rgba(10,15,13,0.8));
    border: 1px solid rgba(46,176,134,0.2);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--jade-light);
    transform: translateX(5px);
    background: linear-gradient(135deg, rgba(26,122,92,0.15), rgba(10,15,13,0.85));
}

.category-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.25rem;
}

.category-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.category-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.category-last {
    text-align: right;
    min-width: 150px;
}

.last-topic-title {
    display: block;
    font-size: 0.85rem;
    color: var(--jade-light);
    margin-bottom: 0.25rem;
}

.last-topic-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

/* Recent Section */
.recent-section {
    margin-top: 2rem;
}

.recent-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.recent-topics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topic-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    transition: background 0.2s;
}

.topic-row:hover {
    background: rgba(46,176,134,0.1);
}

.topic-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.topic-info {
    flex: 1;
    min-width: 0;
}

.topic-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-title a {
    color: inherit;
    text-decoration: none;
}

.topic-title a:hover {
    color: var(--jade-light);
}

.topic-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.topic-badge.pinned {
    background: var(--gold);
    color: black;
}

.topic-badge.locked {
    background: var(--red-accent);
    color: white;
}

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

.topic-stats {
    text-align: right;
    min-width: 100px;
}

.topic-stats span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.topic-stats strong {
    color: var(--jade-light);
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .forum-stats-bar {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .category-card {
        flex-wrap: wrap;
    }
    
    .category-last {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .topic-stats {
        display: none;
    }
}


/* Topic View */
.topic-view .post-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(46,176,134,0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    color: #0b0f14;
}

.post-body { flex: 1; min-width: 0; }

.post-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold-light);
    margin: 0 0 0.5rem 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.post-user { color: var(--jade-light); font-weight: 600; }
.dot { opacity: 0.6; }

.post-content {
    line-height: 1.6;
    color: var(--text-light);
    font-size: 0.95rem;
    white-space: normal;
    word-break: break-word;
}

.post-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.9rem;
}

.like-btn {
    background: rgba(46,176,134,0.12);
    border: 1px solid rgba(46,176,134,0.35);
    color: var(--text-light);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.like-btn:hover { background: rgba(46,176,134,0.2); }
.like-btn.active { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(216, 167, 72, 0.2) inset; }

.replies-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.replies-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    margin: 0;
}

.replies-list { margin-top: 0.75rem; }

.reply-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(46,176,134,0.2);
    border-radius: 12px;
}

.reply-box h3 {
    margin: 0 0 0.75rem 0;
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
}

.reply-box textarea {
    width: 100%;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(46,176,134,0.25);
    border-radius: 10px;
    padding: 0.75rem;
    color: var(--text-light);
    resize: vertical;
    outline: none;
}

.reply-box textarea:focus {
    border-color: var(--jade-light);
    box-shadow: 0 0 0 2px rgba(46,176,134,0.12);
}

.error-box {
    padding: 1rem;
    background: rgba(255, 70, 70, 0.08);
    border: 1px solid rgba(255, 70, 70, 0.25);
    border-radius: 10px;
    color: var(--text-light);
}

/* Post editor (new topic) */
.post-editor {
    padding: 1.25rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(46,176,134,0.2);
    border-radius: 12px;
}

.post-editor h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    margin-top: 0;
}

.post-editor .form-group { margin-bottom: 1rem; }

.post-editor label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.post-editor input[type="text"], .post-editor textarea {
    width: 100%;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(46,176,134,0.25);
    border-radius: 10px;
    padding: 0.75rem;
    color: var(--text-light);
    outline: none;
}

.post-editor input[type="text"]:focus, .post-editor textarea:focus {
    border-color: var(--jade-light);
    box-shadow: 0 0 0 2px rgba(46,176,134,0.12);
}

.editor-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination .ellipsis {
    padding: 0.5rem 0.25rem;
    color: var(--text-muted);
}
