/**
 * ZAX Gamification Frontend Styles
 */

/* Removed avatar CSS - too aggressive, causing size issues */
/* Avatar styling should be handled by theme's own CSS */

/* EXP Bar */
.zax-exp-bar {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
}

.zax-exp-bar-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.zax-exp-bar-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.zax-exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff6b6b);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.zax-exp-bar-next {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Badges */
.zax-user-badges {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.zax-badge {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.zax-badge:hover {
    transform: scale(1.2);
}

.zax-badge[data-badge-type="patreon"] {
    animation: badge-glow 2s ease-in-out infinite;
}

.zax-badge[data-badge-type="patreon"][data-animation="shimmer"] {
    animation: badge-shimmer 3s ease-in-out infinite;
}

.zax-badge[data-badge-type="patreon"][data-animation="pulse"] {
    animation: badge-pulse 2s ease-in-out infinite;
}

.zax-badge[data-badge-type="patreon"][data-animation="aura"] {
    animation: badge-aura 4s ease-in-out infinite;
}

.zax-badge[data-badge-type="patreon"][data-animation="rainbow_pulse"] {
    animation: badge-rainbow 3s ease-in-out infinite;
}

/* Comment and Author Badges */
.zax-comment-badge,
.zax-author-badge {
    display: inline-block;
    font-size: 16px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.2;
    font-style: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Leaderboard */
.zax-leaderboard {
    margin: 20px 0;
}

.zax-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.zax-leaderboard-table th {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.zax-leaderboard-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zax-leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Badge Animations */
@keyframes badge-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes badge-shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes badge-aura {
    0%, 100% { 
        box-shadow: 0 0 5px currentColor;
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 15px currentColor;
        filter: brightness(1.3);
    }
}

@keyframes badge-rainbow {
    0% { filter: hue-rotate(0deg) brightness(1.2); }
    25% { filter: hue-rotate(90deg) brightness(1.2); }
    50% { filter: hue-rotate(180deg) brightness(1.2); }
    75% { filter: hue-rotate(270deg) brightness(1.2); }
    100% { filter: hue-rotate(360deg) brightness(1.2); }
}

/* Free vs Paid User Colors */
.zax-user-free {
    color: #888888;
}

.zax-user-paid {
    background: linear-gradient(90deg, #FFD700, #00BFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tooltip */
.zax-tooltip {
    position: relative;
    display: inline-block;
}

.zax-tooltip .zax-tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.zax-tooltip:hover .zax-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .zax-exp-bar-info {
        flex-direction: column;
        gap: 4px;
    }
    
    .zax-leaderboard-table {
        font-size: 14px;
    }
    
    .zax-leaderboard-table th,
    .zax-leaderboard-table td {
        padding: 8px;
    }
}

