/* ============================================================
   OG GAMİFİCATİON BİLDİRİM STİLLERİ
   Tema uyumlu — gamification-theme.css değişkenlerini kullanır
   ============================================================ */

/* ============================================================ */
/* VIBRANT STICKY BAR BUTTONS */
/* ============================================================ */
.btn-share-vibrant { color: #10b981 !important; } /* Emerald */
.btn-fav-vibrant { color: #3b82f6 !important; } /* Blue */
.btn-fav-vibrant.active { color: #ef4444 !important; } /* Red when active */
.btn-comment-vibrant { color: #f97316 !important; } /* Orange */
.btn-profile-vibrant { color: #8b5cf6 !important; } /* Violet */

.btn-share-vibrant:hover { background: rgba(16, 185, 129, 0.1) !important; }
.btn-fav-vibrant:hover { background: rgba(59, 130, 246, 0.1) !important; }
.btn-comment-vibrant:hover { background: rgba(249, 115, 22, 0.1) !important; }
.btn-profile-vibrant:hover { background: rgba(139, 92, 246, 0.1) !important; }

/* ============================================================ */
/* XP GAIN GLOW ANIMATION */
/* ============================================================ */
.og-xp-glow {
    position: relative;
    animation: og-glow-breath 2s ease-in-out infinite;
    z-index: 10;
}

.og-xp-glow::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--og-xp-glow-color) 0%, transparent 70%);
    animation: og-glow-pulse 1.5s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes og-glow-breath {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.15); filter: brightness(1.4); }
}

@keyframes og-glow-pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* XP Popup — sağ alt köşede uçan +XP */
.og-xp-popup {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: var(--og-xp-popup-bg);
    color: var(--og-xp-popup-text);
    font-size: 16px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.og-xp-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.og-xp-popup.fade {
    opacity: 0;
    transform: translateY(-30px);
}

/* Toast bildirimi — sağ üst köşe */
.og-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 280px;
    max-width: 380px;
    background: var(--og-toast-bg);
    border: 1px solid var(--og-toast-border);
    border-radius: 12px;
    padding: 14px 18px;
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px var(--og-toast-shadow);
}

.og-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.og-toast-content { flex: 1; }

.og-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--og-toast-title-color);
    margin-bottom: 2px;
}

.og-toast-sub {
    font-size: 12px;
    color: var(--og-toast-sub-color);
}

.og-toast-close {
    background: transparent;
    border: none;
    color: var(--og-toast-close-color);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.og-toast-close:hover { color: var(--og-toast-close-hover); }

/* Toast türlerine göre sol kenar rengi */
.og-toast-badge { border-left: 3px solid var(--og-token-primary); }
.og-toast-level { border-left: 3px solid var(--og-xp-primary); }
.og-toast-streak { border-left: 3px solid var(--og-streak-primary); }

/* Birden fazla toast üst üste geldiğinde */
.og-toast + .og-toast { top: 90px; }
.og-toast + .og-toast + .og-toast { top: 160px; }

/* ============================================================
   HEADER XP BAR (Navbar'da küçük gösterge)
   ============================================================ */
.og-hdr-xp {
    display: flex;
    align-items: center;
    gap: 8px;
}

.og-hdr-level {
    font-size: 11px;
    font-weight: 700;
    color: var(--og-xp-primary);
    white-space: nowrap;
}

.og-hdr-xp-track {
    width: 60px;
    height: 4px;
    background: var(--og-progress-track);
    border-radius: 2px;
    overflow: hidden;
}

.og-hdr-xp-fill {
    height: 100%;
    background: var(--og-xp-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}
