/* Layout only; colors come from forum_dark_theme.css */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.topic-content-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.topic-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d87d1c 0%, #ff9f4a 50%, #d87d1c 100%);
}

.topic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.meta-right {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.count {
    font-weight: 600;
}

.username {
    color: #d87d1c;
    font-weight: 600;
}

.date {
    color: #9ca3af;
}

.topic-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2rem;
}

.replies-section {
    margin-top: 2rem;
}

.reply-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d87d1c 0%, #ff9f4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info h6 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
}

.author-info small {
    color: #6b7280;
}

.reply-date {
    font-size: 0.85rem;
    color: #9ca3af;
}

.reply-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.reply-actions {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.reply-actions .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.reply-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.reply-form .form-label {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.reply-form .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    font-size: 1rem;
    padding: 1rem 1.25rem;
}

.reply-form .form-control:focus {
    border-color: #d87d1c;
    box-shadow: 0 0 0 4px rgba(216, 125, 28, 0.15);
    transform: translateY(-1px);
    background: #ffffff;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #d87d1c;
}

.breadcrumb-item.active {
    color: #374151;
}

.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert .btn-close {
    filter: invert(1);
}

@media (max-width: 768px) {
    .forum-header {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }

    .forum-header h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .topic-content-card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .topic-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .meta-right {
        width: 100%;
        justify-content: space-between;
    }

    .reply-form {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .reply-card {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
}

/* Grey Forum Navigation Strip in Header */
.forum-nav-strip {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.forum-nav-group {
    position: relative;
    display: inline-block;
}

.forum-nav-title {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    display: inline-block;
    cursor: pointer;
}

.forum-nav-title::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.forum-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
}

.forum-nav-group:hover .forum-nav-dropdown {
    display: block;
}

.forum-nav-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.forum-nav-dropdown a:hover {
    background: #f8f9fa;
    color: #d87d1c;
}

/* Mobile responsive for grey nav */
@media (max-width: 768px) {
    .forum-nav-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
