/*
Theme Name: DiziTOPYA Dark
Description: Netflix tarzı premium dizi/film teması
Version: 2.0
Author: DiziTOPYA
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #0d0d0d;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #e50914;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== LOGO STİLİ ===== */
.site-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo-dizi {
    color: #ffffff;
    font-weight: 400;
}

.logo-topya {
    color: #e50914;
    font-weight: 400;
    background: linear-gradient(135deg, #e50914 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HEADER / NAVİGASYON ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 50px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, transparent 100%);
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    position: relative;
}

.main-nav a:hover {
    opacity: 1;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e50914;
    transition: width 0.3s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
}

.search-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 10px 20px;
    color: #fff;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: #e50914;
    width: 280px;
}

.search-box::placeholder {
    color: #888;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #0d0d0d 0%, transparent 60%),
                linear-gradient(to top, #0d0d0d 0%, transparent 40%);
    margin-bottom: 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.hero-content {
    max-width: 550px;
    padding: 0 50px;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #999;
}

.hero-meta .imdb {
    background: #f5c518;
    color: #000;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
}

.hero-desc {
    font-size: 15px;
    color: #bbb;
    margin-bottom: 25px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(229, 9, 20, 0.5);
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 30px 50px;
    margin-bottom: 20px;
}

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

.section-title {
    font-size: 22px;
    font-weight: 700;
}

.section-link {
    font-size: 14px;
    color: #888;
}

.section-link:hover {
    color: #e50914;
}

.content-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.content-slider::-webkit-scrollbar {
    display: none;
}

/* ===== CARDS ===== */
.card {
    flex: 0 0 auto;
    width: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.08) translateY(-5px);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-poster img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-play {
    width: 55px;
    height: 55px;
    background: rgba(229, 9, 20, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.5);
}

.card-play::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 5px;
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-meta .rating {
    background: #f5c518;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.content-grid .card {
    width: 100%;
}

/* ===== VIDEO WATCH PAGE ===== */
.watch-page {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 0;
    min-height: 100vh;
    padding-top: 70px;
}

/* Side Panels */
.side-panel {
    background: #0a0a0a;
    border-right: 1px solid #1a1a1a;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.right-panel {
    border-right: none;
    border-left: 1px solid #1a1a1a;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid #1a1a1a;
    background: #0d0d0d;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.panel-content::-webkit-scrollbar {
    width: 4px;
}

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

/* Episode List Mini */
.series-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #e50914;
}

.season-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    cursor: pointer;
}

.episode-list-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.episode-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #141414;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.episode-mini:hover {
    background: #1a1a1a;
    border-color: #333;
}

.episode-mini.active {
    background: rgba(229, 9, 20, 0.15);
    border-color: #e50914;
}

.ep-num {
    width: 28px;
    height: 28px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.episode-mini.active .ep-num {
    background: #e50914;
}

.ep-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-episodes {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Main Content */
.main-content {
    background: #0d0d0d;
    padding: 25px;
}

.video-container {
    margin-bottom: 25px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-wrapper.no-video {
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
}

.no-video-content p {
    margin-top: 15px;
}

/* Video Details */
.video-details {
    padding: 10px 0;
}

.video-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.video-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-badge {
    padding: 6px 14px;
    background: #1a1a1a;
    border-radius: 6px;
    font-size: 13px;
    color: #aaa;
}

.meta-badge.imdb-badge {
    background: #f5c518;
    color: #000;
    font-weight: 600;
}

.video-description {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

/* Recommendations */
.recommendations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rec-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #141414;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.rec-card:hover {
    background: #1a1a1a;
    border-color: #333;
}

.rec-poster {
    width: 70px;
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.rec-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 18px;
}

.rec-card:hover .rec-play {
    opacity: 1;
}

.rec-info {
    flex: 1;
    min-width: 0;
}

.rec-info h4 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-info span {
    font-size: 12px;
    color: #666;
}

/* ===== CATEGORY PAGE ===== */
.category-page {
    padding: 120px 50px 50px;
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #080808;
    padding: 60px 50px 30px;
    margin-top: 50px;
    border-top: 1px solid #1a1a1a;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #666;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
    color: #444;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .watch-page {
        grid-template-columns: 1fr;
    }
    
    .side-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-section {
        height: auto;
        padding: 100px 20px 50px;
    }
    
    .hero-bg {
        width: 100%;
        opacity: 0.2;
    }
    
    .hero-content {
        padding: 0;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .card {
        width: 130px;
    }
    
    .category-page {
        padding: 100px 20px 30px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}
