/* ================================================================
   DASHBOARD — Home Page Styles
   External CSS for browser caching
   ================================================================ */

/* Line clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Keyframes ── */

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes particle-orbit {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(30px, -40px) scale(1.5); opacity: 0.8; }
    50% { transform: translate(60px, 0) scale(1); opacity: 0.5; }
    75% { transform: translate(30px, 40px) scale(1.3); opacity: 0.7; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
}
@keyframes particle-rise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}
@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(2); opacity: 1; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}
@keyframes pulse-glow-gold {
    0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 35px rgba(245, 158, 11, 0.6); }
}
@keyframes weather-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.15) rotate(0deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}
@keyframes clock-pulse {
    0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.3); }
    50% { text-shadow: 0 0 25px rgba(59, 130, 246, 0.8), 0 0 50px rgba(59, 130, 246, 0.4); }
}
@keyframes colon-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rowSlideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes podiumRise {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes barFill {
    from { width: 0; }
}

/* ── Animation Classes ── */

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-pulse-glow-gold { animation: pulse-glow-gold 2s ease-in-out infinite; }
.animate-weather { animation: weather-bounce 3s ease-in-out infinite; }
.animate-clock { animation: clock-pulse 2s ease-in-out infinite; }
.animate-colon { animation: colon-blink 1s step-end infinite; }
.count-up { animation: countUp 0.4s ease-out; }
.lb-row-enter { animation: rowSlideIn 0.3s ease-out forwards; }
.live-badge { animation: livePulse 2s ease-in-out infinite; }
.podium-enter { animation: podiumRise 0.6s ease-out forwards; }
.podium-enter:nth-child(1) { animation-delay: 0.2s; }
.podium-enter:nth-child(2) { animation-delay: 0s; }
.podium-enter:nth-child(3) { animation-delay: 0.4s; }
.score-bar-fill { animation: barFill 0.8s ease-out; }

/* ── Particles ── */

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.particle-orbit {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    animation: particle-orbit 12s ease-in-out infinite;
}
.particle-rise {
    width: 3px;
    height: 3px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    animation: particle-rise 15s linear infinite;
}
.particle-sparkle {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #fff 0%, #3b82f6 50%, transparent 70%);
    animation: sparkle 3s ease-in-out infinite;
}

/* ── UI Components ── */

.search-modal-bg { backdrop-filter: blur(8px); }

.quick-action-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.quick-action-btn:hover {
    transform: scale(1.1) translateY(-2px);
}

.profile-card { transition: all 0.3s ease; }
.profile-card:hover { transform: scale(1.02); }

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 20;
}

.stat-tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.stat-card:hover .stat-tooltip,
.group:hover > .stat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.app-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    z-index: 10;
}
.app-card .tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.app-card:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Pin/Favorite button ── */
.pin-btn {
    transition: all 0.2s ease;
}
.pin-btn:hover {
    transform: scale(1.15);
}

/* ── Notification dropdown scroll ── */
.max-h-80::-webkit-scrollbar,
.max-h-64::-webkit-scrollbar {
    width: 4px;
}
.max-h-80::-webkit-scrollbar-track,
.max-h-64::-webkit-scrollbar-track {
    background: transparent;
}
.max-h-80::-webkit-scrollbar-thumb,
.max-h-64::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 4px;
}
.max-h-80::-webkit-scrollbar-thumb:hover,
.max-h-64::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.3);
}
