/* ========================================
   MODERN VIDEO PLATFORM - KATEGORI TASARIMI
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Colors */
    --primary: #ff0a54;
    --primary-dark: #c90041;
    --primary-light: #ff6b7a;
    
    --dark-bg: #0f0f0f;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #272727;
    
    --accent: #00d4ff;
    --accent-secondary: #7c3aed;
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    
    --border: #2a2a2a;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a0a0f 100%);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

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

::-webkit-scrollbar-track {
    background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.navbar-brand i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ========================================
   CATEGORIES SECTION - HORIZONTAL SCROLL
   ======================================== */

.categories-section {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.8) 0%, rgba(26, 10, 15, 0.6) 100%);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 70px;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.categories-container {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark-secondary);
}

.categories-container::-webkit-scrollbar {
    height: 6px;
}

.categories-container::-webkit-scrollbar-track {
    background: var(--dark-secondary);
}

.categories-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: rgba(39, 39, 39, 0.7);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.category-btn i {
    font-size: 1rem;
    color: var(--primary);
}

.category-btn:hover {
    background: rgba(255, 10, 84, 0.15);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 10, 84, 0.3);
}

.category-btn.active i {
    color: white;
}

/* ========================================
   SEARCH SECTION
   ======================================== */

.search-section {
    background: linear-gradient(135deg, rgba(255, 10, 84, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 10, 84, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.search-section .container {
    position: relative;
    z-index: 1;
}

.form-control-lg,
.form-select-lg {
    background: rgba(39, 39, 39, 0.8);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.form-control-lg::placeholder {
    color: var(--text-tertiary);
}

.form-control-lg:focus,
.form-select-lg:focus {
    background: rgba(39, 39, 39, 0.95);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 10, 84, 0.3);
    outline: none;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title i {
    color: var(--primary);
    font-size: 1.6rem;
}

/* ========================================
   VIDEO GRID
   ======================================== */

.video-grid {
    padding: 2rem 0 4rem 0;
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    perspective: 1000px;
}

.video-card {
    background: var(--dark-tertiary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 10, 84, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;
}

.video-card-link:hover .video-card {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255, 10, 84, 0.2);
}

.video-card-link:hover .video-card::before {
    opacity: 1;
}

/* Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-secondary) 0%, #2a1a2e 100%);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card-link:hover .video-thumbnail img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    background: rgba(255, 10, 84, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
    box-shadow: 0 10px 30px rgba(255, 10, 84, 0.4);
}

.play-button i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

.video-card-link:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Duration Badge */
.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 15, 15, 0.95);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 3;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
}

/* Video Info */
.video-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-info h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 10, 84, 0.15);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    width: fit-content;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.video-stats {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.stat-item i {
    color: var(--primary);
}

/* ========================================
   WATCH PAGE - VIDEO PLAYER
   ======================================== */

.video-player {
    background: var(--dark-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
}

.video-player video {
    width: 100%;
    display: block;
    background: #000;
}

/* Video Details */
.video-details {
    background: var(--dark-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.video-details h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.badge-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 10, 84, 0.15);
    color: var(--primary);
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.badge:hover {
    background: rgba(255, 10, 84, 0.25);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.badge i {
    font-size: 1rem;
}

/* Description */
.video-description {
    margin-bottom: 2rem;
}

.video-description h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.video-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Info Card */
.info-card {
    background: rgba(39, 39, 39, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.info-item strong {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* ========================================
   SIDEBAR - RELATED VIDEOS
   ======================================== */

.sidebar {
    background: var(--dark-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: sticky;
    top: 180px;
}

.sidebar h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar h5 i {
    color: var(--primary);
}

.related-videos {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.related-video-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.related-video-item:hover {
    background: rgba(255, 10, 84, 0.1);
    border-color: var(--border);
    transform: translateX(3px);
}

.related-thumbnail {
    position: relative;
    width: 80px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--dark-secondary) 0%, #2a1a2e 100%);
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 14px;
    opacity: 0;
    transition: var(--transition);
}

.related-video-item:hover .related-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.related-info h6 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-info small {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

.related-info small i {
    color: var(--primary);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    margin-top: 3rem;
    justify-content: center;
    gap: 0.4rem;
}

.page-link {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    transition: var(--transition);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 10, 84, 0.3);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 6px 15px rgba(255, 10, 84, 0.3);
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border-radius: 10px;
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-color: #ffc107;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 3rem;
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(5px);
}

footer p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    font-weight: 700;
    transition: var(--transition);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 15px rgba(255, 10, 84, 0.3);
    padding: 0.7rem 1.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 10, 84, 0.4);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
    font-weight: 700;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: slideInUp 0.5s ease-out forwards;
}

.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.2s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.3s; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .video-details h1 {
        font-size: 1.6rem;
    }
    
    .sidebar {
        position: static;
        top: 0;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 1.5rem 0;
    }

    .categories-section {
        padding: 1rem 0;
        top: 62px;
    }
    
    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .video-details {
        padding: 1.2rem;
    }
    
    .video-details h1 {
        font-size: 1.3rem;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sidebar {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin: 1.5rem 0 1rem 0;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 0.7rem 0;
    }

    .categories-section {
        padding: 0.8rem 0;
        top: 56px;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .category-btn i {
        font-size: 0.9rem;
    }
    
    .search-section {
        padding: 1rem 0;
    }
    
    .video-details {
        padding: 1rem;
    }
    
    .video-details h1 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .info-card {
        padding: 0.8rem;
    }
    
    .badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
    }

    .video-card {
        animation: none;
    }

    .section-title {
        font-size: 1rem;
        margin: 1rem 0 0.8rem 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        color-scheme: dark;
    }
}

/* Custom scrollbar for Firefox */
* {
    scrollbar-color: var(--primary) var(--dark-secondary);
    scrollbar-width: thin;
}