
/* Community page background */
.post-type-archive-gg_topic,
.tax-topic_category,
.single-gg_topic {
    background: linear-gradient(rgba(8, 8, 9, 0.51) 0%, rgba(2, 15, 13, 0.59) 100%),
                url('https://guidancegate.com/wp-content/uploads/2026/04/2149049207.jpg')
                center / cover no-repeat fixed;
}
/* Community header */
.gg-community-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.gg-community-header h1 {
    font-size: 1.8rem;
    color: var(--gg-primary);
    margin-bottom: 4px;
}
.gg-community-header p {
    color: var(--gg-text-muted);
}

/* Category tabs */
.gg-community-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gg-border);
    padding-bottom: 0;
    overflow-x: auto;
}
.gg-community-tabs a {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--gg-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.gg-community-tabs a:hover {
    color: var(--gg-text);
}
.gg-community-tabs a.active {
    color: var(--gg-accent);
    border-bottom-color: var(--gg-accent);
    font-weight: 600;
}

/* Topic list */
.gg-topic-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--gg-border);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    overflow: hidden;
}
.gg-topic-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gg-surface);
    transition: background 0.15s;
}
.gg-topic-row:hover {
    background: var(--gg-bg);
}
.gg-topic-pinned {
    background: #fefce8;
}
.gg-topic-avatar img {
    border-radius: 50%;
}
.gg-topic-info {
    flex: 1;
    min-width: 0;
}
.gg-topic-info h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.gg-topic-info h3 a {
    color: var(--gg-primary);
    text-decoration: none;
}
.gg-topic-info h3 a:hover {
    color: var(--gg-accent);
}
.gg-topic-meta {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--gg-text-muted);
}
.gg-topic-cat {
    color: var(--gg-accent);
    text-decoration: none;
    font-weight: 500;
}
.gg-topic-stats {
    text-align: right;
    font-size: 0.82rem;
    color: var(--gg-text-muted);
    white-space: nowrap;
}
.gg-topic-replies {
    display: block;
    font-weight: 600;
    color: var(--gg-text);
}

/* New topic form */
.gg-new-topic-form {
    margin-bottom: 24px;
}
.gg-new-topic-form .gg-card {
    padding: 24px;
}
.gg-new-topic-form h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--gg-primary);
}

/* Form groups */
.gg-form-group {
    margin-bottom: 16px;
}
.gg-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.gg-form-group input,
.gg-form-group select,
.gg-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    font-family: var(--gg-font);
    font-size: 0.9rem;
    line-height: 1.5;
}
.gg-form-group textarea {
    resize: vertical;
}
.gg-form-actions {
    display: flex;
    gap: 8px;
}

/* Single topic */
.gg-topic-single {
    margin-top: 16px;
}
.gg-topic-header h1 {
    font-size: 1.5rem;
    color: var(--gg-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.gg-topic-header .gg-topic-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.gg-topic-header .gg-topic-meta img {
    border-radius: 50%;
}
.gg-topic-content {
    padding: 20px;
    line-height: 1.7;
}

/* Replies */
.gg-replies {
    margin-top: 32px;
}
.gg-replies h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--gg-primary);
}
.gg-reply {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gg-border);
}
.gg-reply:last-child {
    border-bottom: none;
}
.gg-reply-flagged {
    background: #fef2f2;
    padding: 16px;
    border-radius: var(--gg-radius);
    border: 1px solid #fecaca;
}
.gg-reply-sidebar {
    text-align: center;
    flex-shrink: 0;
}
.gg-reply-sidebar img {
    border-radius: 50%;
    display: block;
    margin-bottom: 4px;
}
.gg-reply-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gg-text);
}
.gg-reply-body {
    flex: 1;
    min-width: 0;
}
.gg-reply-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--gg-text-muted);
    margin-bottom: 8px;
}
.gg-flag-btn {
    background: none;
    border: none;
    color: var(--gg-text-muted);
    cursor: pointer;
    font-size: 0.82rem;
    padding: 0;
}
.gg-flag-btn:hover {
    color: #dc2626;
}
.gg-reply-content {
    line-height: 1.6;
}

/* Reply form */
.gg-reply-form {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--gg-border);
}
.gg-reply-form h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--gg-primary);
}

/* Empty state */
.gg-community-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--gg-surface);
}
.gg-community-empty h3 {
    margin-bottom: 8px;
}
.gg-community-empty p {
    color: var(--gg-text-muted);
}

/* Mobile */
@media (max-width: 768px) {
    .gg-community-header {
        flex-direction: column;
        gap: 12px;
    }
    .gg-topic-row {
        flex-wrap: wrap;
    }
    .gg-topic-stats {
        width: 100%;
        text-align: left;
        display: flex;
        gap: 12px;
    }
    .gg-reply {
        flex-direction: column;
        gap: 8px;
    }
    .gg-reply-sidebar {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

/* White text for image background */
.post-type-archive-gg_topic .gg-community-header h1,
.post-type-archive-gg_topic .gg-community-header p,
.post-type-archive-gg_topic .gg-breadcrumbs,
.post-type-archive-gg_topic .gg-breadcrumbs a,
.tax-topic_category .gg-community-header h1,
.tax-topic_category .gg-community-header p,
.tax-topic_category .gg-breadcrumbs,
.tax-topic_category .gg-breadcrumbs a {
    color: #fff;
}
.post-type-archive-gg_topic .gg-community-tabs a,
.tax-topic_category .gg-community-tabs a {
    color: rgba(255,255,255,0.7);
}
.post-type-archive-gg_topic .gg-community-tabs a:hover,
.tax-topic_category .gg-community-tabs a:hover {
    color: #fff;
}
.post-type-archive-gg_topic .gg-community-tabs a.active,
.tax-topic_category .gg-community-tabs a.active {
    color: #fff;
    border-bottom-color: #fff;
}
.post-type-archive-gg_topic .gg-community-tabs,
.tax-topic_category .gg-community-tabs {
    border-bottom-color: rgba(255,255,255,0.2);
}
.single-gg_topic .gg-breadcrumbs,
.single-gg_topic .gg-breadcrumbs a,
.single-gg_topic .gg-topic-header h1 {
    color: #fff;
}
.single-gg_topic .gg-topic-header .gg-topic-meta {
    color: rgba(255,255,255,0.7);
}
