/* Timeline Studio Özel Stilleri */

/* Video / Canvas Önizleme Çerçevesi */
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-9-16 { aspect-ratio: 9 / 16; max-height: 520px; }
.aspect-1-1 { aspect-ratio: 1 / 1; max-height: 520px; }
.aspect-4-5 { aspect-ratio: 4 / 5; max-height: 520px; }
.aspect-21-9 { aspect-ratio: 21 / 9; }

.viewport-container {
    background: #020617;
    background-image: 
        radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Timeline Cetveli & Zaman Çizgisi */
.timeline-ruler {
    height: 24px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(51, 65, 85, 0.7);
    position: relative;
    user-select: none;
}

.timeline-tick {
    position: absolute;
    bottom: 0;
    width: 1px;
    background: rgba(100, 116, 139, 0.5);
    height: 6px;
}

.timeline-tick.major {
    height: 12px;
    background: rgba(148, 163, 184, 0.9);
}

.timeline-tick-label {
    position: absolute;
    bottom: 12px;
    font-size: 9px;
    color: #94a3b8;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
}

/* Zaman Çizelgesi Şeridi */
.timeline-track-container {
    position: relative;
    min-height: 140px;
    background: rgba(10, 15, 26, 0.95);
    overflow-x: auto;
    overflow-y: hidden;
}

.timeline-clips-track {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    min-width: 100%;
    position: relative;
}

/* Klip Kartı */
.timeline-clip-card {
    height: 96px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.9);
    border: 2px solid rgba(71, 85, 105, 0.8);
    position: relative;
    flex-shrink: 0;
    cursor: grab;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    user-select: none;
}

.timeline-clip-card:active {
    cursor: grabbing;
}

.timeline-clip-card:hover {
    border-color: #818cf8;
    box-shadow: 0 6px 16px -4px rgba(99, 102, 241, 0.4);
}

.timeline-clip-card.active-playing {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.8), 0 0 20px rgba(6, 182, 212, 0.5);
}

/* Klip Geçiş İkonu (Transition Pill) */
.transition-connector {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px dashed rgba(148, 163, 184, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
    font-size: 11px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.transition-connector:hover {
    background: #a855f7;
    color: #ffffff;
    border-color: #c084fc;
    transform: scale(1.15);
}

/* Playhead (Oynatma İğnesi / İbre) */
.timeline-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ec4899;
    box-shadow: 0 0 10px #ec4899, 0 0 20px rgba(236, 72, 153, 0.8);
    z-index: 40;
    pointer-events: none;
    transform: translateX(-50%);
    transition: left 0.05s linear;
}

.playhead-handle {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #ec4899;
    clip-path: polygon(0% 0%, 100% 0%, 100% 60%, 50% 100%, 0% 60%);
    cursor: ew-resize;
    pointer-events: auto;
    box-shadow: 0 0 8px #ec4899;
}

/* Ses / Müzik Şeridi */
.timeline-audio-track {
    height: 48px;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(51, 65, 85, 0.6);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
}

.audio-waveform-bar {
    flex: 1;
    height: 28px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 8px;
}
