/* Upgrade Visual Elements - Badges, Indicators, Themes */

/* ============================================================
   VERIFIED BADGE
   ============================================================ */

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4a90e2;
    color: white;
    font-weight: 700;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
}

.verified-badge-small {
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.verified-badge-medium {
    width: 20px;
    height: 20px;
    font-size: 12px;
}

.verified-badge-large {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

/* Verified badge in profile header */
.profile-header .verified-badge {
    width: 28px;
    height: 28px;
    font-size: 16px;
    margin-left: 8px;
}

/* ============================================================
   BOOST BADGE
   ============================================================ */

.boost-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    font-weight: 600;
    animation: boostPulse 2s ease-in-out infinite;
}

@keyframes boostPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================================
   PROFILE THEMES
   ============================================================ */

/* Theme CSS Variables (applied to body or profile container) */
:root {
    --profile-primary: #007bff;
    --profile-secondary: #6c757d;
    --profile-background: #ffffff;
    --profile-text: #333333;
}

/* Profile page with custom theme */
.profile-themed {
    background-color: var(--profile-background);
    color: var(--profile-text);
}

.profile-themed .profile-header {
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-secondary) 100%);
}

.profile-themed .profile-stat {
    color: var(--profile-text);
}

.profile-themed .profile-stat-value {
    color: var(--profile-primary);
}

.profile-themed .profile-button {
    background: var(--profile-primary);
    color: white;
}

.profile-themed .profile-button:hover {
    background: var(--profile-secondary);
}

/* ============================================================
   ANIMATED AVATARS
   ============================================================ */

.animated-avatar {
    border: 2px solid #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

/* Avatar glow effect for animated avatars */
@keyframes avatarGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
    }
}

.animated-avatar {
    animation: avatarGlow 3s ease-in-out infinite;
}

/* ============================================================
   MEME CARD INTEGRATION
   ============================================================ */

.meme-card-username {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meme-card-header {
    position: relative;
}

.meme-card-header .boost-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ============================================================
   COMMENT INTEGRATION
   ============================================================ */

.comment-username {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-avatar.animated-avatar {
    border-width: 2px;
}

/* ============================================================
   USER LIST ITEMS
   ============================================================ */

.user-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.user-list-item:hover {
    background: #f5f5f5;
}

.user-list-item .user-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.user-list-item .verified-badge {
    margin-left: 4px;
}

.user-list-item .boost-badge {
    margin-left: 6px;
}

/* ============================================================
   NOTIFICATION BADGES
   ============================================================ */

.notification-item .verified-badge {
    width: 14px;
    height: 14px;
    font-size: 9px;
    margin-left: 3px;
}

/* ============================================================
   HEADER/NAV INTEGRATION
   ============================================================ */

.header-user-info .verified-badge {
    width: 18px;
    height: 18px;
    font-size: 11px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    .verified-badge-medium {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .boost-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .profile-header .verified-badge {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* ============================================================
   UPGRADE INDICATOR TOOLTIPS
   ============================================================ */

.verified-badge:hover::after,
.boost-badge:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* ============================================================
   LOADING STATES
   ============================================================ */

.upgrade-loading {
    opacity: 0.6;
    pointer-events: none;
}

.upgrade-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================
   PROFILE PAGE SPECIFIC
   ============================================================ */

/* Custom themed profile page */
body.profile-page.custom-theme {
    background: var(--profile-background);
}

body.profile-page.custom-theme .profile-container {
    color: var(--profile-text);
}

body.profile-page.custom-theme .profile-stat-label {
    color: var(--profile-text);
    opacity: 0.8;
}

body.profile-page.custom-theme .meme-card {
    border-color: var(--profile-primary);
}

/* Theme preview badge (for users with custom theme) */
.theme-active-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-secondary));
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-left: 10px;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.verified-badge:focus,
.boost-badge:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
