/* Babiato / XenForo Style Forum Index */
:root {
    --gn-bg: #f5f5f5;
    --gn-border: #e0e0e0;
    --gn-header-bg: #2c3e50;
    --gn-header-text: #ffffff;
    --gn-link: #2196F3;
    --gn-text-muted: #757575;
    --gn-row-bg: #ffffff;
    --gn-row-hover: #f9f9f9;
    --gn-stat-val: #424242;
    --gn-sidebar-bg: #ffffff;
    --gn-accent: #2196F3;
}

body {
    background-color: var(--gn-bg) !important;
}

.gn-forum-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #212121;
    max-width: 1400px;
    font-size: 14px;
    line-height: 1.6;
}

/* Breadcrumbs & Header */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    font-size: 13px;
    margin-bottom: 5px !important;
}

.breadcrumb-item a {
    color: var(--gn-link);
    text-decoration: none;
}

/* Page Titles */
h1.h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
}

/* Hero / Notice Boxes */
.gn-notice-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.gn-hero-box {
    background: #fff;
    border: 1px solid var(--gn-border);
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.gn-hero-box h2 {
    font-size: 20px;
    font-weight: 400;
}

/* Popular Forums Grid */
.gn-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gn-popular-item {
    background: #fff;
    border: 1px solid var(--gn-border);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gn-popular-item a {
    font-weight: 600;
    color: var(--gn-link);
    text-decoration: none;
    font-size: 14px;
}

.gn-popular-item .gn-pop-count {
    color: var(--gn-text-muted);
    font-size: 11px;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Activity Tabs */
.gn-activity-section {
    background: #fff;
    border: 1px solid var(--gn-border);
    margin-bottom: 30px;
}

.gn-tabs-header {
    display: flex;
    background: #fcfcfc;
    border-bottom: 1px solid var(--gn-border);
}

.gn-tab-item {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: var(--gn-text-muted);
}

.gn-tab-item.active {
    color: var(--gn-link);
    border-bottom: 2px solid var(--gn-link);
}

/* Forum Category Headers */
.gn-forum-category {
    background: var(--gn-header-bg);
    color: var(--gn-header-text);
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 25px;
    margin-bottom: 0;
    border-radius: 3px 3px 0 0;
}

/* Forum Row */
.gn-forum-row {
    background: var(--gn-row-bg);
    border: 1px solid var(--gn-border);
    border-top: none;
    padding: 15px;
    display: grid;
    grid-template-columns: 48px 1fr auto auto;
    gap: 15px;
    align-items: center;
    transition: background-color 0.2s ease;
}

.gn-forum-row:hover {
    background: var(--gn-row-hover);
}

.gn-forum-row:last-child {
    border-radius: 0 0 3px 3px;
}

/* Forum Icon */
.gn-forum-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gn-link);
    flex-shrink: 0;
}

/* Forum Info */
.gn-forum-info {
    min-width: 0;
}

.gn-forum-title a {
    font-size: 14px;
    font-weight: 600;
    color: var(--gn-link);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 4px;
}

.gn-forum-title a:hover {
    color: #1976D2;
    text-decoration: underline;
}

.gn-forum-desc {
    font-size: 13px;
    color: var(--gn-text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

/* Stats Column */
.gn-forum-stats {
    flex: 0 0 150px;
    display: flex;
    font-size: 12px;
    text-align: center;
}

.gn-forum-stat-item {
    flex: 1;
}

.gn-forum-stat-label {
    display: block;
    color: var(--gn-text-muted);
}

.gn-forum-stat-value {
    font-weight: 600;
    color: var(--gn-stat-val);
}

/* Last Post Column */
.gn-forum-lastpost {
    flex: 0 0 240px;
    font-size: 12px;
    padding-left: 15px;
    border-left: 1px solid var(--gn-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.gn-last-avatar {
    width: 36px;
    height: 36px;
    border-radius: 3px;
}

.gn-last-details {
    flex: 1;
    overflow: hidden;
}

.gn-last-title {
    font-weight: 600;
    display: block;
    color: var(--gn-link);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.gn-last-meta {
    color: var(--gn-text-muted);
    font-size: 11px;
}

.gn-last-user {
    color: #a04040;
    /* XenForo staff/user color? */
    font-weight: 700;
}

/* Sidebar */
.gn-sidebar-block {
    background: #fff;
    border: 1px solid var(--gn-border);
    margin-bottom: 20px;
    border-radius: 4px;
}

.gn-sidebar-header {
    background: #fcfcfc;
    border-bottom: 1px solid var(--gn-border);
    padding: 10px 15px;
    font-weight: 700;
    font-size: 13px;
}

.gn-sidebar-content {
    padding: 15px;
}

/* Donation Widget */
.gn-donation-widget {
    font-size: 13px;
}

.gn-donation-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.gn-donation-bar {
    height: 15px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.gn-donation-fill {
    height: 100%;
    background: var(--gn-link);
    width: 49.9%;
}

/* Recent Activity List */
.gn-activity-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gn-border);
}

.gn-activity-item:last-child {
    border-bottom: none;
}

.gn-activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 2px;
}

.gn-activity-info {
    flex: 1;
    overflow: hidden;
}