/*
Theme Name: Starter Video Theme
Theme URI: https://starter.starter.starter
Author: starter starter
Description: SEO uyumlu, admin panelinden tamamen özelleştirilebilir profesyonel video teması.
Version: 2.0.0
Text Domain: starter-starter
*/

/* Font Inter - loaded via preconnect in header */

:root {
    --primary: #e50914;
    --primary-hover: #f40612;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #666666;
    --border: #2a2a2a;
    --gradient: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   HEADER - MODERN NETFLIX STYLE
   ============================================= */
.site-header {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

.site-logo img {
    max-height: 48px;
    width: auto;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Search */
.header-search {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229,9,20,0.1);
}

.search-field {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 14px;
    width: 200px;
    outline: none;
}

.search-field::placeholder {
    color: var(--text-muted);
}

.search-submit {
    background: var(--primary);
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-submit:hover {
    background: var(--primary-hover);
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.site-main {
    padding: 100px 0 40px;
    min-height: 100vh;
}

.content-area {
    display: block;
}

.content-area.has-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Section Title */
.section-title,
.featured-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before,
.featured-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 24px;
    padding: 12px 0;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* =============================================
   VIDEO GRID
   ============================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.content-area.has-sidebar .video-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* =============================================
   VIDEO CARD - MODERN STYLE
   ============================================= */
.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow);
    z-index: 10;
}

/* Thumbnail */
.video-thumbnail {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail .thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

/* No Thumbnail */
.no-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-thumb::after {
    content: '';
    width: 48px;
    height: 48px;
    background: var(--bg-hover);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23444' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

/* Duration Badge */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

/* Quality Badge */
.video-quality {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--gradient);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    z-index: 2;
}

/* Play Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.video-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-overlay::after {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

/* Video Info */
.video-info {
    padding: 16px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-title a {
    color: var(--text-primary);
}

.video-title a:hover {
    color: var(--primary);
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.video-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-views i {
    font-size: 11px;
}

.video-categories {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.video-categories a {
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-hover);
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.video-categories a:hover {
    background: var(--primary);
    color: white;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--gradient);
    border-radius: 2px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget a {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget a:hover {
    color: var(--primary);
}

/* =============================================
   SINGLE VIDEO PAGE
   ============================================= */
.single-video-container {
    max-width: 1000px;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-details {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.video-details h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.video-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 16px 0;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.video-stats i {
    color: var(--primary);
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.video-tags a {
    background: var(--bg-hover);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.video-tags a:hover {
    background: var(--primary);
    color: white;
}

/* Related Videos */
.related-videos {
    margin-top: 48px;
}

.related-videos h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-videos h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.pagination .current {
    background: var(--gradient);
    color: white;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--bg-card);
    padding: 48px 0 24px;
    margin-top: 64px;
    border-top: 1px solid var(--border);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-widget .widget-title {
    border-bottom: none;
    padding-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--primary);
}

/* =============================================
   AGE VERIFICATION MODAL
   ============================================= */
.age-verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.age-modal-content {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 480px;
    box-shadow: var(--shadow);
}

.age-modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.age-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.age-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.age-btn {
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.age-btn.yes {
    background: var(--gradient);
    color: white;
}

.age-btn.yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229,9,20,0.4);
}

.age-btn.no {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.age-btn.no:hover {
    background: var(--border);
}

/* =============================================
   AD AREAS
   ============================================= */
.ad-area {
    margin: 24px 0;
    text-align: center;
}

/* =============================================
   NO RESULTS
   ============================================= */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.no-results p {
    color: var(--text-secondary);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-area.has-sidebar .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .content-area.has-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-area.has-sidebar .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-main {
        padding-top: 80px;
    }
    
    .video-grid,
    .content-area.has-sidebar .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .site-title {
        font-size: 22px;
    }
    
    .search-field {
        width: 150px;
    }
    
    .section-title,
    .featured-section h2 {
        font-size: 20px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-title {
        font-size: 13px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-details h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header-inner {
        gap: 12px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .search-field {
        width: 120px;
        padding: 10px 14px;
    }
    
    .video-grid,
    .content-area.has-sidebar .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .video-info {
        padding: 10px;
    }
    
    .video-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .video-meta {
        font-size: 11px;
    }
    
    .video-duration {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}
