@import 'animations.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid #1a1a1a;
    background-color: #000000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: auto;
    width: 240px;
    display: block;
    mix-blend-mode: screen;
    /* Siyah arka planı şeffaf yapar */
    background: transparent !important;
    object-fit: contain;
    filter: brightness(1.1);
    /* Logoyu biraz daha parlak yapar */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ffffff;
}

/* Language Selector */
.language-selector {
    display: inline-block;
    margin-right: 12px;
}

.language-selector select {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.language-selector select:hover {
    border-color: #3b82f6;
    background-color: #2a2a2a;
}

.language-selector select:focus {
    border-color: #3b82f6;
}

/* Main Content */
.main-content {
    padding: 60px 20px;
}

.hero-section {
    text-align: center;
    margin-bottom: 48px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: #999;
}

/* Upload Container */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-box {
    background-color: #0a0a0a;
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 48px;
    transition: all 0.3s;
}

.upload-box.drag-over {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.upload-content {
    text-align: center;
}

.upload-icon {
    color: #666;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
}

.upload-text {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 12px;
}

.upload-or {
    color: #666;
    margin-bottom: 20px;
}

.upload-info {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* Buttons */
.btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #333;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #444;
}

/* File Info */
.file-info {
    text-align: center;
}

.file-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.file-icon {
    color: #10b981;
    flex-shrink: 0;
}

.file-text {
    text-align: left;
}

.file-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.file-size {
    font-size: 14px;
    color: #999;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-fill {
    height: 100%;
    background-color: #3b82f6;
    transition: width 0.3s;
    width: 0%;
}

/* File Actions */
.file-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Video Page */
.video-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.video-wrapper {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.video-player {
    width: 100%;
    border-radius: 8px;
    max-height: 80vh;
}

.video-info {
    margin-top: 24px;
}

.video-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.video-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 24px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.share-box {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.share-label {
    color: #999;
    font-size: 14px;
    margin-bottom: 12px;
}

.share-input {
    width: 100%;
    padding: 12px;
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #0a0a0a;
    margin: 10% auto;
    padding: 32px;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close:hover {
    color: #fff;
}

.modal-content h2 {
    margin-bottom: 24px;
    color: #fff;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
}

.modal-content input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #333;
}

.modal-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.modal-tab:hover {
    color: #fff;
    background-color: #1a1a1a;
}

.modal-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

/* Admin Panel */
.admin-content {
    padding: 40px 20px;
}

.admin-title {
    font-size: 32px;
    margin-bottom: 32px;
    color: #fff;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 1px solid #333;
}

.admin-tab {
    padding: 12px 24px;
    color: #999;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.admin-tab:hover {
    color: #fff;
}

.admin-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.admin-section {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
}

.search-box {
    margin-bottom: 24px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
}

.admin-table {
    overflow-x: auto;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.admin-table th {
    background-color: #1a1a1a;
    color: #fff;
    font-weight: 600;
}

.admin-table td {
    color: #ccc;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-right: 8px;
}

.btn-small.btn-danger {
    background-color: #dc2626;
    color: #fff;
}

.btn-small.btn-danger:hover {
    background-color: #b91c1c;
}

/* Profile */
.profile-content {
    padding: 40px 20px;
}

.profile-title {
    font-size: 32px;
    margin-bottom: 32px;
    color: #fff;
}

.profile-section {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-help {
    color: #999;
    font-size: 14px;
    margin-top: 4px;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.alert-success {
    background-color: #10b981;
    color: #fff;
}

.videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #1a1a1a;
    border-radius: 6px;
}

.video-item a {
    color: #3b82f6;
    text-decoration: none;
}

.video-item a:hover {
    text-decoration: underline;
}

.video-date {
    color: #999;
    font-size: 14px;
}

.upload-warning {
    color: #f59e0b;
    margin-top: 16px;
    font-size: 14px;
}

.nav-link.active {
    color: #3b82f6;
}

/* Privacy Option */
.privacy-option {
    margin: 20px 0;
    padding: 16px;
    background-color: #1a1a1a;
    border-radius: 8px;
}

.privacy-label {
    display: block;
    color: #fff;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.privacy-label:hover {
    background-color: #2a2a2a;
}

.privacy-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.privacy-label span {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .upload-box {
        padding: 32px 20px;
    }

    .file-details {
        flex-direction: column;
        text-align: center;
    }

    .file-text {
        text-align: center;
    }

    .file-actions {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .admin-table {
        font-size: 14px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
}

/* Custom Video Player styles removed in favor of Plyr.io */
.video-loader {
    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: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

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

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