/**
 * Social System - GG/FF, Follow, Badges
 */

/* ===== GG/FF VOTE COLUMN (Forum & Comments) ===== */
.ggff-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ggff-votes .gg-vote,
.ggff-votes .ff-vote {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted, #999);
}

.ggff-votes .gg-vote:hover:not(:disabled),
.ggff-votes .gg-vote.voted,
.ggff-votes .gg-vote.active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
}

.ggff-votes .ff-vote:hover:not(:disabled),
.ggff-votes .ff-vote.voted,
.ggff-votes .ff-vote.active {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
}

.ggff-votes .vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== VOTE BUTTONS (GG/FF) ===== */
.vote-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4px 8px;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.vote-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vote-btn.gg-btn:hover,
.vote-btn.gg-btn.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.vote-btn.ff-btn:hover,
.vote-btn.ff-btn.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.vote-btn i {
    font-size: 16px;
}

.vote-count {
    font-size: 13px;
    min-width: 16px;
    text-align: center;
}

.vote-score {
    font-weight: 700;
    font-size: 15px;
    min-width: 30px;
    text-align: center;
    padding: 0 4px;
}

.vote-score.positive {
    color: #22c55e;
}

.vote-score.negative {
    color: #ef4444;
}

.vote-score.neutral {
    color: var(--text-muted);
}

/* ===== FOLLOW BUTTON ===== */
.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--accent-pink);
    background: transparent;
    color: var(--accent-pink);
}

.follow-btn:hover {
    background: var(--accent-pink);
    color: white;
}

.follow-btn.following {
    background: var(--accent-pink);
    color: white;
}

.follow-btn.following:hover {
    background: transparent;
    color: var(--accent-pink);
}

.follow-btn.following:hover .follow-text::after {
    content: ' - Otprati';
}

.follow-btn.following:hover .follow-text {
    font-size: 0;
}

.follow-btn.following:hover .follow-text::after {
    font-size: 14px;
}

/* ===== BADGES ===== */
.user-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    cursor: help;
    transition: transform 0.2s ease;
}

.user-badge:hover {
    transform: scale(1.15);
}

.user-badge.badge-small {
    width: 22px;
    height: 22px;
    font-size: 11px;
}

.badge-more {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Badge showcase on profile */
.badges-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.badge-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: background 0.2s;
}

.badge-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.badge-card .badge-icon {
    font-size: 24px;
}

.badge-card .badge-info {
    display: flex;
    flex-direction: column;
}

.badge-card .badge-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.badge-card .badge-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== USER LEVEL ===== */
.user-level {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.user-level i {
    font-size: 10px;
}

/* ===== FOLLOW STATS ===== */
.follow-stats {
    display: flex;
    gap: 20px;
}

.follow-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.follow-stat:hover {
    background: rgba(255, 255, 255, 0.05);
}

.follow-stat .stat-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.follow-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== COMMENT/POST WITH VOTES ===== */
.content-with-votes {
    display: flex;
    gap: 12px;
}

.content-votes-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.content-votes-sidebar .vote-btn {
    padding: 8px;
    border-radius: 8px;
}

.content-votes-sidebar .vote-score {
    font-size: 18px;
    padding: 4px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .vote-buttons {
        gap: 4px;
        padding: 3px 6px;
    }
    
    .vote-btn {
        padding: 4px 8px;
        font-size: 13px;
    }
    
    .vote-btn i {
        font-size: 14px;
    }
    
    .follow-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .user-badge {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .follow-stats {
        gap: 12px;
    }
    
    .follow-stat .stat-count {
        font-size: 18px;
    }
}

/* ===== XP INFO CARD ===== */
.xp-info-card {
    padding: 16px 20px;
    border-radius: 12px;
}

.xp-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.xp-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.xp-text {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.xp-info-toggle {
    background: none;
    border: none;
    color: var(--accent-cyan);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.xp-info-toggle:hover {
    color: var(--accent-pink);
}

.xp-info-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-info-section {
    margin-bottom: 16px;
}

.xp-info-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xp-info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xp-info-section li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.xp-info-section li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--text-muted);
}

.xp-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
