/* Muzibu Custom Styles - External CSS */

/* Alpine.js cloak */
[x-cloak] { 
    display: none !important; 
}

/* Custom scrollbar with glow */
::-webkit-scrollbar { 
    width: 12px; 
    height: 12px; 
}

::-webkit-scrollbar-track { 
    background: transparent; 
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 127, 80, 0.6), rgba(255, 127, 80, 0.3));
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 127, 80, 0.8), rgba(255, 127, 80, 0.5));
}

/* Smooth transitions - NO TRANSFORM/SCALE */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Glow effect on hover */
.glow-on-hover {
    position: relative;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ff7f50, #ff9770, #ff7f50);
    border-radius: inherit;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-on-hover:hover::before {
    opacity: 0.7;
}

/* Card effects - Sadece hover'da parlama */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Sadece hover'da animasyon başlat */
.card-shine:hover::before {
    opacity: 1;
    animation: shine 1.0s ease-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #282828;
    border-radius: 4px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #3e3e3e;
}

/* Gradient animation */
.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* ========================================
   KEYBOARD SHORTCUTS FEEDBACK
   ======================================== */

/* Modern Keyboard Feedback - Minimal & Professional */
.keyboard-feedback {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.02em;
}

.keyboard-feedback.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Keyboard Help Modal */
.keyboard-help-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.keyboard-help-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid rgba(255, 127, 80, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.keyboard-help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 127, 80, 0.3);
}

.keyboard-help-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff7f50;
}

.keyboard-help-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.keyboard-help-close:hover {
    background: rgba(255, 127, 80, 0.2);
}

.keyboard-shortcuts-list {
    display: grid;
    gap: 15px;
}

.keyboard-shortcut-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: background 0.2s;
}

.keyboard-shortcut-item:hover {
    background: rgba(255, 127, 80, 0.1);
}

.keyboard-shortcut-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.keyboard-shortcut-key {
    background: rgba(255, 127, 80, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #ff7f50;
    min-width: 80px;
    text-align: center;
    border: 1px solid rgba(255, 127, 80, 0.4);
}

.keyboard-shortcut-action {
    flex: 1;
    color: #e0e0e0;
    font-size: 1rem;
}

/* ==================== STAGGER ANIMATIONS ==================== */
/* Skeleton cards */
.skeleton-stagger-1 { animation-delay: 0ms; }
.skeleton-stagger-2 { animation-delay: 50ms; }
.skeleton-stagger-3 { animation-delay: 100ms; }
.skeleton-stagger-4 { animation-delay: 150ms; }
.skeleton-stagger-5 { animation-delay: 200ms; }

/* Section delays */
.section-delay-1 { animation-delay: 100ms; }
.section-delay-2 { animation-delay: 200ms; }
.section-delay-3 { animation-delay: 300ms; }

/* Card stagger (up to 30 items) */
.card-stagger-0 { animation-delay: 0ms; }
.card-stagger-1 { animation-delay: 30ms; }
.card-stagger-2 { animation-delay: 60ms; }
.card-stagger-3 { animation-delay: 90ms; }
.card-stagger-4 { animation-delay: 120ms; }
.card-stagger-5 { animation-delay: 150ms; }
.card-stagger-6 { animation-delay: 180ms; }
.card-stagger-7 { animation-delay: 210ms; }
.card-stagger-8 { animation-delay: 240ms; }
.card-stagger-9 { animation-delay: 270ms; }

/* Playlist/Album stagger (up to 20 items) */
.item-stagger-0 { animation-delay: 0ms; }
.item-stagger-1 { animation-delay: 80ms; }
.item-stagger-2 { animation-delay: 160ms; }
.item-stagger-3 { animation-delay: 240ms; }
.item-stagger-4 { animation-delay: 320ms; }
.item-stagger-5 { animation-delay: 400ms; }
.item-stagger-6 { animation-delay: 480ms; }
.item-stagger-7 { animation-delay: 560ms; }
.item-stagger-8 { animation-delay: 640ms; }
.item-stagger-9 { animation-delay: 720ms; }

/* ==================== CUSTOM SCROLLBAR (SADECE HOVER'DA GÖRÜNÜR) ==================== */
/* Webkit browsers (Chrome, Safari, Edge) */
.muzibu-left-sidebar::-webkit-scrollbar,
.muzibu-right-sidebar::-webkit-scrollbar,
.muzibu-main::-webkit-scrollbar {
    width: 8px;
}

.muzibu-left-sidebar::-webkit-scrollbar-track,
.muzibu-right-sidebar::-webkit-scrollbar-track,
.muzibu-main::-webkit-scrollbar-track {
    background: transparent;
}

/* Normal durum - NEREDEYSE GİZLİ (minimum renk yoksa tarayıcı render etmiyor) */
.muzibu-left-sidebar::-webkit-scrollbar-thumb,
.muzibu-right-sidebar::-webkit-scrollbar-thumb,
.muzibu-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    transition: background 0.2s ease;
}

/* Sidebar'a hover - GÖRÜNÜR */
.muzibu-left-sidebar:hover::-webkit-scrollbar-thumb,
.muzibu-right-sidebar:hover::-webkit-scrollbar-thumb,
.muzibu-main:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

/* Scrollbar thumb'a direkt hover - DAHA BELİRGİN */
.muzibu-left-sidebar::-webkit-scrollbar-thumb:hover,
.muzibu-right-sidebar::-webkit-scrollbar-thumb:hover,
.muzibu-main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox */
.muzibu-left-sidebar,
.muzibu-right-sidebar,
.muzibu-main {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.02) transparent;
    transition: scrollbar-color 0.2s ease;
}

.muzibu-left-sidebar:hover,
.muzibu-right-sidebar:hover,
.muzibu-main:hover {
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
