/* Referans görsel ile uyumlu açık tema tasarımı */
:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --dropzone-bg: #f4f5f7;
    --dropzone-border: #e2e4ea;
    --accent: #0b63ce;          /* progress bar mavisi */
    --accent-hover: #084f9d;
    --text-main: #111827;
    --text-muted: #9ca3af;
    --border-subtle: #e5e7eb;
    --danger: #ef4444;
    --success: #10b981;         /* Completed badge yeşili */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
}

a {
    color: var(--accent);
    text-decoration: none;
}



.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.card {
    width: 100%;
    max-width: 960px;
    background: var(--card-bg);
    border-radius: 26px;
    padding: 28px 26px 30px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

.card-narrow {
    max-width: 460px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.topbar-user {
    color: var(--text-muted);
}

.topbar-actions a {
    margin-left: 12px;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    cursor: pointer;
}

.topbar-actions a:hover {
    background: #f3f4f6;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
    background: var(--accent);
    color: #fff;
}

.btn:hover,
button:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: var(--accent);
}

.actions-row {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

form label {
    display: block;
    margin: 10px 0 6px;
    font-size: 13px;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-main);
    font-size: 14px;
}

input::file-selector-button {
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-main);
    padding: 6px 12px;
    margin-right: 10px;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.7);
}

.error {
    margin-top: 10px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
}

.success {
    margin-top: 10px;
    color: #15803d;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
}

/* Özel Video Player */
.custom-video-player {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 15px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.custom-video-player video {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #111827;
    margin: 0;
    pointer-events: none; /* Sağ tık menüsünü engellemek için */
    object-fit: contain; /* Video oranını koru, tüm videoyu göster */
}

/* Tam ekran modunda video stilleri - Class bazlı (daha güvenilir) */
.custom-video-player.is-fullscreen,
.custom-video-player:fullscreen,
.custom-video-player:-webkit-full-screen,
.custom-video-player:-moz-full-screen,
.custom-video-player:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
    background: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
}

.custom-video-player.is-fullscreen video,
.custom-video-player:fullscreen video,
.custom-video-player:-webkit-full-screen video,
.custom-video-player:-moz-full-screen video,
.custom-video-player:-ms-fullscreen video {
    width: auto !important;
    height: auto !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important; /* Tam ekranda tüm videoyu göster, kenarlarda boşluk olsa bile */
    background: #000000 !important;
}

/* Tam ekranda kontrollerin daha iyi görünmesi için */
.custom-video-player.is-fullscreen .video-controls,
.custom-video-player:fullscreen .video-controls,
.custom-video-player:-webkit-full-screen .video-controls,
.custom-video-player:-moz-full-screen .video-controls,
.custom-video-player:-ms-fullscreen .video-controls {
    padding: 20px 24px;
}

.custom-video-player video::-webkit-media-controls {
    display: none !important;
}

.custom-video-player video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Video kontrolleri */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.custom-video-player:hover .video-controls,
.custom-video-player.playing .video-controls,
.custom-video-player.controls-visible .video-controls {
    opacity: 1;
    pointer-events: all;
}

/* Video duraklatıldığında kontrolleri göster */
.custom-video-player.paused .video-controls {
    opacity: 1;
    pointer-events: all;
}

.video-controls-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.video-controls-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.video-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(243, 244, 246, 0.95);
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.video-play-btn svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}

.video-time {
    color: #ffffff;
    font-size: 13px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    min-width: 100px;
    font-weight: 400;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.video-progress-container {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease, background 0.2s ease;
}

.video-progress-container:hover {
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
}

.video-progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.video-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.video-progress-container:hover .video-progress-handle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
}

.video-volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
}

.video-volume-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(55, 65, 81, 0.6);
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-volume-btn:hover {
    background: rgba(75, 85, 99, 0.8);
    transform: scale(1.05);
}

.video-volume-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.video-volume-slider {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    display: none;
    transition: all 0.2s ease;
}

.video-volume-container:hover .video-volume-slider {
    display: block;
}

.video-volume-slider:hover {
    background: rgba(255, 255, 255, 0.4);
}

.video-volume-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    width: 100%;
}

.video-fullscreen-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(55, 65, 81, 0.6);
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.video-fullscreen-btn:hover {
    background: rgba(75, 85, 99, 0.8);
    transform: scale(1.05);
}

.video-fullscreen-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* Video yükleniyor göstergesi */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: video-spin 0.8s linear infinite;
    display: none;
}

.custom-video-player.loading .video-loading {
    display: block;
}

@keyframes video-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Video başlangıç oynatma butonu */
.video-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.video-poster-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-poster-play-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(243, 244, 246, 0.95);
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-poster-play-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.video-poster-play-btn svg {
    width: 44px;
    height: 44px;
    fill: #000000;
}

.meta {
    color: var(--text-muted);
    font-size: 13px;
}

.rating-item {
    border-top: 1px solid #e5e7eb;
    padding: 10px 0;
}

.rating-item small {
    color: var(--text-muted);
}

/* Yıldız rating sistemi */
.star-rating {
    margin: 10px 0;
}

.stars {
    display: flex;
    gap: 4px;
    align-items: center;
}

.star {
    font-size: 28px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
}

.star:hover,
.star.hover {
    color: #fbbf24;
    transform: scale(1.1);
}

.star.active {
    color: #fbbf24;
}

.star-rating-display {
    display: flex;
    gap: 2px;
    align-items: center;
}

.star-display {
    font-size: 16px;
    color: #d1d5db;
    line-height: 1;
}

.star-display.filled {
    color: #fbbf24;
}

/* Referans görsele benzer upload alanı */
.upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr);
    gap: 18px;
}

.dropzone {
    border-radius: 18px;
    border: 1.5px dashed var(--dropzone-border);
    background: var(--dropzone-bg);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dropzone.dragover {
    border-color: var(--accent);
    background: #e5f0ff;
}

.dropzone-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 20px;
}

.dropzone-title {
    font-size: 15px;
    margin-bottom: 4px;
}

.dropzone-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.dropzone-actions {
    margin-top: 14px;
}

.upload-section-title {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.uploads-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
}

.upload-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.upload-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-file-name {
    font-size: 14px;
}

.upload-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.pill-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e6f9f0;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.8);
}

.progress {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
}

/* Upload esnasında gösterilecek modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: modal-fade-in 0.2s ease-out;
}

.modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 26px;
    width: 340px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    animation: modal-slide-up 0.3s ease-out;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.modal-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.modal-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    position: relative;
}

.modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #3b82f6 50%, var(--accent) 100%);
    background-size: 200% 100%;
    border-radius: 999px;
    position: relative;
    animation: modal-progress-animation 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(11, 99, 206, 0.4);
}

.modal-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: modal-shimmer 1.5s infinite;
}

@keyframes modal-progress-animation {
    0% {
        width: 0%;
        transform: translateX(0);
    }
    50% {
        width: 70%;
        transform: translateX(0);
    }
    100% {
        width: 100%;
        transform: translateX(0);
    }
}

@keyframes modal-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


