/* ===== STATS HEADER STYLES - GTA VI STYLE ===== */

/* CSS Variables for Stats Header */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --accent: #EC4899;
    --accent-cyan:rgb(50, 54, 55);
    --dark: #0F172A;
    --darker:rgb(40, 41, 42);
    --light: #F8FAFC;
    --gray: #64748B;
    --gray-dark: #475569;
    --card-bg: #FFFFFF;
    --card-text: #1E293B;
    --card-border: #E2E8F0;
    --card-shadow: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 0.8vw 2.4vw rgba(99, 102, 241, 0.15);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success: #10B981;
    --danger: #EF4444;
    --bg-animation: #f8fafc;
}

/* Stats Header Container */
.stats-header-container {
    position: relative;
    padding: 2vw 4vw;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 0.138vw solid rgba(0, 0, 0, 0.14);
}

/* Thin branded top accent strip */
.stats-header-container::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.22vw;
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 35%, #EC4899 70%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.stats-header-container::after {
    display: none;
}

.stats-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2vw;
    max-width: 100%;
}

.stats-header-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    border-left: 0.22vw solid #6366F1;
    padding-left: 1vw;
}

.stats-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 2.5vw;
    font-weight: 800;
    color: #111318;
    margin-bottom: 0.4vw;
    margin-top: 0;
    letter-spacing: -0.04vw;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.stats-subtitle {
    font-size: 0.95vw;
    line-height: 1.5;
    color: var(--gray);
    max-width: 45vw;
    margin: 0;
    margin-top: 0.6vw;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="light"] .stats-subtitle {
    color: rgba(0, 0, 0, 0.55);
}

/* Right Side Column: Social + Stats */
.stats-header-right {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    align-items: flex-end;
}

/* Share Buttons - Compact and elegant */
.share-buttons-container {
    display: flex;
    gap: 0.4vw;
    align-items: center;
}

.share-buttons {
    display: flex;
    gap: 0.4vw;
    align-items: center;
}

.share-btn {
    width: 2vw;
    height: 2vw;
    border-radius: 0.35vw;
    background: #ffffff;
    border: 0.069vw solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 0.1vw 0.35vw rgba(0, 0, 0, 0.07), 0 0.05vw 0.1vw rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85vw;
}

.share-btn:hover {
    transform: translateY(-0.18vw);
    box-shadow: 0 0.3vw 0.8vw rgba(0, 0, 0, 0.12);
}

.share-btn .icon-x {
    display: inline-flex;
    width: 1vw;
    height: 1vw;
}
.share-btn .icon-x svg {
    width: 100%;
    height: 100%;
}

.share-btn .lucide-icon,
.share-btn [data-lucide],
.share-btn .fab {
    width: 1vw;
    height: 1vw;
    font-size: 1vw;
}

/* Each button colored by default */
.share-btn.copy-link {
    color: #6366F1;
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}
.share-btn.copy-link:hover {
    border-color: #6366F1;
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0.3vw 0.8vw rgba(99, 102, 241, 0.2);
}

.share-btn.twitter {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.03);
}
.share-btn.twitter:hover {
    border-color: rgba(0, 0, 0, 0.55);
    color: #000000;
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0.3vw 0.8vw rgba(0, 0, 0, 0.15);
}

.share-btn.reddit {
    color: #FF4500;
    border-color: rgba(255, 69, 0, 0.3);
    background: rgba(255, 69, 0, 0.05);
}
.share-btn.reddit:hover {
    border-color: #FF4500;
    background: rgba(255, 69, 0, 0.12);
    box-shadow: 0 0.3vw 0.8vw rgba(255, 69, 0, 0.2);
}

.share-btn.facebook {
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.3);
    background: rgba(24, 119, 242, 0.05);
}
.share-btn.facebook:hover {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.12);
    box-shadow: 0 0.3vw 0.8vw rgba(24, 119, 242, 0.2);
}

/* Stats Grid - Modern card style */
.stats-grid {
    display: flex;
    gap: 0.6vw;
}

.stat-item {
    background: #ffffff;
    padding: 0.7vw 1.1vw;
    border-radius: 0.4vw;
    text-align: center;
    border: 0.069vw solid rgba(0, 0, 0, 0.13);
    box-shadow: 0 0.1vw 0.35vw rgba(0, 0, 0, 0.06), 0 0.05vw 0.1vw rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    min-width: 6vw;
    position: relative;
}

.stat-item:hover {
    transform: translateY(-0.15vw);
    box-shadow: 0 0.3vw 0.9vw rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.stat-icon-wrapper {
    display: none;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1vw;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.15vw;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.6vw;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05vw;
}

/* Responsive Design */
@media (max-width: 82.873vw) {
    .stats-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5vw;
    }
    
    .stats-header-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .stats-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 62.155vw) {
    .stats-title {
        font-size: 2.5vw;
    }
    
    .stats-subtitle {
        font-size: 1vw;
    }
    
    .stats-header-right {
        flex-direction: column;
        gap: 1.5vw;
        align-items: flex-start;
    }
}

@media (max-width: 53.039vw) {
    .stats-title {
        font-size: 3.5vw;
    }
    
    .stats-subtitle {
        font-size: 1.4vw;
    }
    
    .stats-grid {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

/* Legacy .toast — hidden, notifications now use vice-coins-notification style */
.toast { display: none !important; }

/* Vice-coins notification style for all pages */
#notification-container {
    position: fixed !important;
    bottom: 2vw !important;
    right: 2vw !important;
    z-index: 7000000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8vw !important;
    align-items: flex-end !important;
    pointer-events: none !important;
}

.vice-coins-notification {
    min-width: 15vw;
    max-width: 22vw;
    padding: 1vw 1.2vw;
    border-radius: 0.6vw;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(0.691vw);
    border: 0.069vw solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.4vw 1.5vw rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.8vw;
    pointer-events: auto;
    animation: vcNotifIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}
.vice-coins-notification.hiding {
    animation: vcNotifOut 0.3s ease forwards;
}

.vice-coins-notification-icon {
    width: 1.4vw;
    height: 1.4vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1vw;
}

.vice-coins-notification-content { flex: 1; }

.vice-coins-notification-message {
    font-size: 0.85vw;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.85);
    margin: 0;
}

.vice-coins-notification-close {
    width: 1.2vw;
    height: 1.2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.3vw;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 0.7vw;
}
.vice-coins-notification-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.7);
}

.vice-coins-notification.success { border-left: 0.3vw solid #22c55e; }
.vice-coins-notification.success .vice-coins-notification-icon { color: #22c55e; }
.vice-coins-notification.error   { border-left: 0.3vw solid #ef4444; }
.vice-coins-notification.error   .vice-coins-notification-icon { color: #ef4444; }
.vice-coins-notification.warning { border-left: 0.3vw solid #f59e0b; }
.vice-coins-notification.warning .vice-coins-notification-icon { color: #f59e0b; }
.vice-coins-notification.info    { border-left: 0.3vw solid #3b82f6; }
.vice-coins-notification.info    .vice-coins-notification-icon { color: #3b82f6; }

@keyframes vcNotifIn {
    from { transform: translateX(150%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes vcNotifOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(150%); opacity: 0; }
}
