/**
 * Streaming Platform ana stil dosyası
 */

/* Animasyonlar */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Yükleme Göstergeleri */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1ce783;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

/* Form Elemanları Geliştirmeleri */
.form-group {
    transition: all 0.3s ease;
}

.form-group-focus {
   
}

.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Butonlar */
.btn-hover-effect {
    transition: all 0.3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(28, 231, 131, 0.3), 0 4px 6px -4px rgba(28, 231, 131, 0.3);
}

/* Tooltip */
.tooltip {
    position: fixed;
    background-color: #272c34;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #272c34;
}

.tooltip.show {
    opacity: 0.9;
    transform: translateY(0);
}

/* Modern kart stilleri */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sayfa geçişleri */
.page-transition {
    transition: opacity 0.5s ease;
}

/* Duyarlı tasarım için diğer eklemeler */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

/* Renk paleti ve renkli öğelerin geliştirilmiş stilleri */
.gradient-text {
    background: linear-gradient(to right, #1ce783, #0fa3b1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
} 

/* ─────────────────────────────────────────────────────────────────────
 * Drakkar Modal (dk-modal) — projeye uygun custom confirmation/info modal
 * Hulu-green accent, dark glass surface, a11y-uyumlu (role=dialog),
 * keyboard nav + focus ring, 44px touch targets, prefers-reduced-motion.
 * ──────────────────────────────────────────────────────────────────── */
.dk-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 12, 15, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.dk-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.dk-modal {
    width: 100%;
    max-width: 32rem;
    max-height: min(85dvh, 640px);
    background: linear-gradient(180deg, #15171b 0%, #0f1014 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(28, 231, 131, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(8px) scale(0.97);
    opacity: 0;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease-out;
}
.dk-modal-overlay.show .dk-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.dk-modal-header {
    padding: 1.25rem 1.5rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(28, 231, 131, 0.03);
}

.dk-modal-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dk-modal-icon-info {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}
.dk-modal-icon-warning {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.dk-modal-icon-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.dk-modal-icon-success {
    background: rgba(28, 231, 131, 0.12);
    color: #1ce783;
    border: 1px solid rgba(28, 231, 131, 0.25);
}

.dk-modal-title-block {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.dk-modal-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.35;
}
.dk-modal-subtitle {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

.dk-modal-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms, color 150ms, border-color 150ms;
}
.dk-modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}
.dk-modal-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(28, 231, 131, 0.5);
}

.dk-modal-body {
    padding: 1.25rem 1.5rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
}
.dk-modal-body p {
    margin: 0 0 0.75rem;
}
.dk-modal-body p:last-child {
    margin-bottom: 0;
}

/* Bilgi kutusu varyantı — body içinde "Bilgi:" listesi vb. için */
.dk-modal-callout {
    margin-top: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.18);
    font-size: 0.8125rem;
}
.dk-modal-callout-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7dd3fc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.dk-modal-callout ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
    color: #cbd5e1;
}
.dk-modal-callout li + li {
    margin-top: 0.25rem;
}

.dk-modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.625rem;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 16, 20, 0.6);
    flex-shrink: 0;
}

.dk-modal-btn {
    min-height: 44px;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 150ms, color 150ms, border-color 150ms, transform 100ms;
    border: 1px solid transparent;
    white-space: nowrap;
}
.dk-modal-btn:active:not(:disabled) {
    transform: scale(0.98);
}
.dk-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.dk-modal-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(28, 231, 131, 0.55), 0 0 0 4px #0f1014;
}

.dk-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.12);
}
.dk-modal-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dk-modal-btn-primary {
    background: linear-gradient(180deg, #1ce783 0%, #15b865 100%);
    color: #0b0c0f;
    border-color: rgba(28, 231, 131, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 18px rgba(28, 231, 131, 0.18);
}
.dk-modal-btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #29eb8d 0%, #18c870 100%);
}

.dk-modal-btn-danger {
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 8px 18px rgba(239, 68, 68, 0.2);
}
.dk-modal-btn-danger:hover:not(:disabled) {
    background: linear-gradient(180deg, #f55a5a 0%, #c92020 100%);
}

/* Yükleme butonu spinner */
.dk-modal-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: dk-modal-spin 0.8s linear infinite;
}
@keyframes dk-modal-spin {
    to { transform: rotate(360deg); }
}

/* Mobil dikey buton yığını */
@media (max-width: 480px) {
    .dk-modal-footer {
        flex-direction: column-reverse;
    }
    .dk-modal-btn {
        width: 100%;
    }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .dk-modal-overlay,
    .dk-modal,
    .dk-modal-btn,
    .dk-modal-close,
    .dk-modal-btn-spinner {
        transition: none !important;
        animation: none !important;
    }
}


/* ─────────────────────────────────────────────────────────────────────
 * Drakkar Copy Button (.dk-copy-btn)
 * URL/embed link kolonları için inline kopya butonu.
 * 28x28 görsel + 44x44 invisible touch target (skill §2),
 * focus-visible ring (skill §1), hover/active feedback (skill §7).
 * ──────────────────────────────────────────────────────────────────── */
.dk-copy-btn {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(28, 231, 131, 0.06);
    border: 1px solid rgba(28, 231, 131, 0.18);
    color: #94a3b8;
    cursor: pointer;
    transition: background-color 150ms, color 150ms, border-color 150ms, transform 100ms;
}

/* 44px hit area (gerçek görsel 28px) — skill §2 no-precision-required */
.dk-copy-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
}

.dk-copy-btn:hover {
    background: rgba(28, 231, 131, 0.14);
    border-color: rgba(28, 231, 131, 0.4);
    color: #1ce783;
}
.dk-copy-btn:active {
    transform: scale(0.92);
}
.dk-copy-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(28, 231, 131, 0.55);
}

/* Başarılı kopya — 1.5sn yeşil + check ikonu */
.dk-copy-btn.is-copied {
    background: rgba(28, 231, 131, 0.18);
    border-color: rgba(28, 231, 131, 0.5);
    color: #1ce783;
}
.dk-copy-btn.is-copied .dk-copy-glyph { display: none; }
.dk-copy-btn.is-copied .dk-check-glyph { display: block; }
.dk-copy-btn .dk-check-glyph.hidden { display: none; }
.dk-copy-btn .dk-copy-glyph.hidden { display: none; }

/* Inline floating toast — clipboard feedback */
.dk-copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 24px);
    z-index: 9999;
    background: #1ce783;
    color: #0b0c0f;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 32px -8px rgba(28, 231, 131, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dk-copy-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
.dk-copy-toast.error {
    background: #ef4444;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .dk-copy-btn,
    .dk-copy-toast {
        transition: none !important;
    }
}


/* dk-copy-square — büyük 40×40 thumbnail-style kopya butonu (URL kolonu için)
   Önceki "link icon" yer tutucusunu direkt kopya butonu yapan variant.
   Hover ve success state, dk-copy-btn ile aynı feedback dilini paylaşır. */
.dk-copy-square {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(55, 65, 81, 1); /* bg-gray-700 ile eşit */
    border: 1px solid transparent;
    color: #9ca3af; /* text-gray-400 ile eşit */
    cursor: pointer;
    transition: background-color 150ms, color 150ms, border-color 150ms, transform 100ms, box-shadow 150ms;
}
.dk-copy-square:hover {
    background: rgba(28, 231, 131, 0.12);
    border-color: rgba(28, 231, 131, 0.35);
    color: #1ce783;
    box-shadow: 0 2px 8px rgba(28, 231, 131, 0.15);
}
.dk-copy-square:active {
    transform: scale(0.94);
}
.dk-copy-square:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(28, 231, 131, 0.55), 0 0 0 4px rgba(11, 12, 15, 1);
}

/* Glyph state — `.is-copied` toggle ile ikon değişir.
   `.hidden` utility class'ından bağımsız, !important ile spesifik. */
.dk-copy-square .dk-copy-glyph { display: block !important; }
.dk-copy-square .dk-check-glyph { display: none !important; }
.dk-copy-square.is-copied .dk-copy-glyph { display: none !important; }
.dk-copy-square.is-copied .dk-check-glyph { display: block !important; }

/* Başarı state — 1.5sn yeşil background */
.dk-copy-square.is-copied {
    background: rgba(28, 231, 131, 0.2);
    border-color: rgba(28, 231, 131, 0.55);
    color: #1ce783;
}

@media (prefers-reduced-motion: reduce) {
    .dk-copy-square { transition: none !important; }
}
