/* rg-community-features.css v2 */

/* === SHARED SIDEBAR SECTION === */
.rg-cf-section { padding: 4px 0 8px; }
.rg-cf-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.4);
    padding: 14px 16px 8px;
}

/* === NEWS TICKER === */
.rg-ticker {
    display: flex;
    align-items: center;
    background: rgba(15,15,35,0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 0;
    margin-bottom: 16px;
    overflow: hidden;
}
.rg-ticker-label {
    flex-shrink: 0;
    padding: 4px 12px;
    margin-left: 10px;
    background: rgba(165,180,252,0.1);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}
.rg-ticker-track {
    flex: 1;
    overflow: hidden;
    margin: 0 12px;
}
.rg-ticker-scroll {
    display: flex;
    white-space: nowrap;
    animation: rgTickerScroll 45s linear infinite;
}
.rg-ticker-scroll:hover { animation-play-state: paused; }
.rg-ticker-item {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13px;
    flex-shrink: 0;
    padding: 0 6px;
    transition: color 0.15s;
}
.rg-ticker-item:hover { color: #a5b4fc; }
.rg-ticker-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    margin: 0 14px;
    flex-shrink: 0;
    vertical-align: middle;
}
@keyframes rgTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === TRENDING THREADS === */
.rg-trending { margin-bottom: 20px; }
.rg-trending-hdr {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}
.rg-trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.rg-trending-card {
    display: block;
    background: rgba(30,30,35,0.9);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 14px 16px;
    text-decoration: none;
    transition: border-color 0.2s;
}
.rg-trending-card:hover { border-color: rgba(165,180,252,0.25); }
.rg-tc-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rg-tc-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* === THREAD OF THE MONTH === */
.rg-fotm {
    background: rgba(30,30,35,0.9);
    border: 1px solid rgba(165,180,252,0.2);
    border-left: 3px solid #a5b4fc;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.rg-fotm-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(165,180,252,0.08);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
}
.rg-fotm-link {
    text-decoration: none;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rg-fotm-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rg-fotm-link:hover .rg-fotm-title { color: #a5b4fc; }
.rg-fotm-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* === TOP POSTERS (sidebar) === */
.rg-tp-list { display: flex; flex-direction: column; gap: 1px; }
.rg-tp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}
.rg-tp-row:hover { background: rgba(255,255,255,0.04); }
.rg-tp-rank {
    width: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
}
.rg-tp-m1 .rg-tp-rank { color: #fbbf24; }
.rg-tp-m2 .rg-tp-rank { color: #d1d5db; }
.rg-tp-m3 .rg-tp-rank { color: #cd7f32; }
.rg-tp-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.rg-tp-name {
    flex: 1;
    font-size: 13px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rg-tp-cnt {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* === NOW PLAYING (sidebar) === */
.rg-np-set {
    display: flex;
    gap: 6px;
    padding: 0 16px;
    margin-bottom: 10px;
}
.rg-np-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    outline: none;
    min-width: 0;
}
.rg-np-input:focus { border-color: rgba(165,180,252,0.35); }
.rg-np-input::placeholder { color: rgba(255,255,255,0.25); }
.rg-np-btn {
    background: rgba(165,180,252,0.12);
    border: 1px solid rgba(165,180,252,0.25);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.rg-np-btn:hover { background: rgba(165,180,252,0.2); }
.rg-np-list { display: flex; flex-direction: column; gap: 2px; }
.rg-np-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px;
}
.rg-np-av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.rg-np-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rg-np-info a {
    font-size: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}
.rg-np-info a:hover { color: #a5b4fc; }
.rg-np-game {
    font-size: 11px;
    color: #a5b4fc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === MOBILE === */
@media (max-width: 768px) {
    .rg-trending-grid { grid-template-columns: 1fr; }
    .rg-fotm {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .rg-ticker { border-radius: 0; margin-left: -12px; margin-right: -12px; }
    .rg-tc-meta { flex-wrap: wrap; gap: 6px; }
}

/* Initial letter avatar fallback */
.rg-av-letter{display:inline-flex;align-items:center;justify-content:center;background:#7c3aed;color:#fff;font-weight:700;border-radius:50%;flex-shrink:0}
.rg-tp-av.rg-av-letter{width:28px;height:28px;font-size:12px}
.rg-np-av.rg-av-letter{width:28px;height:28px;font-size:12px}
