/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --secondary-color: #141414;
    --bg-dark: #0a0a0a;
    --bg-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --hover-color: #f40612;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Navbar */
.navbar {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    height: 70px;
    box-sizing: border-box;
}

.navbar.scrolled {
    background: var(--secondary-color);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 30px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: var(--text-primary);
    font-size: 16px;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-box input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 35px 8px 15px;
    border-radius: 4px;
    color: white;
    width: 250px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-color);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
}

/* Search Autocomplete */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    max-height: 450px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.search-autocomplete.active {
    display: block;
}

.search-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    color: inherit;
}

.search-autocomplete-item:last-child {
    border-bottom: none;
}

.search-autocomplete-item:hover {
    background: rgba(255,255,255,0.1);
}

.search-autocomplete-poster {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-autocomplete-info {
    flex: 1;
    min-width: 0;
}

.search-autocomplete-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-autocomplete-badge {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.search-autocomplete-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #ffd700;
    font-weight: 600;
}

.search-autocomplete-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.search-autocomplete-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Scrollbar for autocomplete */
.search-autocomplete::-webkit-scrollbar {
    width: 8px;
}

.search-autocomplete::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.search-autocomplete::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.search-autocomplete::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--hover-color);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background: white;
    color: black;
}

/* Featured Slider */
.featured-slider {
    margin-top: 0;
    position: relative;
    padding: 30px 50px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.featured-slider h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-container {
    position: relative;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.slide {
    min-width: 280px;
    max-width: 280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    background: var(--bg-light);
    display: block;
    text-decoration: none;
    color: inherit;
}

.slide:hover {
    transform: translateY(-5px);
}

.slide-bg {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.95) 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}

.slide-content h2 {
    font-size: 18px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.slide-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.slide-content p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-buttons {
    display: flex;
    gap: 8px;
}

.slide-buttons .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffd700;
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 100px);
    left: 50px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 100;
}

.slider-btn {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
    font-size: 18px;
    z-index: 101;
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Content Section */
.content-section {
    padding: 50px;
}

/* İlk content section için üst boşluk yok (navbar zaten padding veriyor) */
body > .content-section:first-of-type,
.content-section:first-child {
    padding-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
}

.view-all {
    color: var(--primary-color);
    font-size: 14px;
}

/* Content Grid */
/* Card stilleri artık cards.css'de tanımlı */

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    padding: 40px 50px;
    margin-top: 50px;
    text-align: center;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: #28a745;
    color: white;
}

.flash-error {
    background: #dc3545;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Page Layout with Ads */
.page-layout {
    display: flex;
    gap: 20px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.ad-space {
    width: 160px;
    flex-shrink: 0;
}

.ad-placeholder {
    position: sticky;
    top: 90px;
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.ad-placeholder small {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Öne çıkan slider genişliğini ayarla */
.main-content .featured-slider {
    padding: 30px 0;
}

.main-content .content-section {
    padding: 50px 0;
}

/* 1400px altında reklamları gizle */
@media (max-width: 1400px) {
    .ad-space {
        display: none;
    }
    
    .page-layout {
        padding: 0;
    }
    
    .main-content .featured-slider {
        padding: 30px 50px;
    }
    
    .main-content .content-section {
        padding: 50px;
    }
}

/* Mobil için */
@media (max-width: 768px) {
    .ad-space {
        display: none !important; /* Mobilde kesinlikle gizle */
    }
    
    .page-layout {
        display: block; /* Flex yerine block yap */
    }
    
    .main-content {
        width: 100%;
    }
    
    .main-content .featured-slider {
        padding: 20px;
    }
    
    .main-content .content-section {
        padding: 20px;
    }
}

/* Mobile Bottom Ad */
.mobile-ad-bottom {
    display: none;
    padding: 20px;
    margin-top: 30px;
}

.mobile-ad-placeholder {
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    text-align: center;
}

.mobile-ad-placeholder small {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .mobile-ad-bottom {
        display: block;
    }
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-icon {
    font-size: 28px;
    min-width: 28px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.modal-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content {
    margin-bottom: 25px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.modal-btn-primary {
    background: var(--primary-color);
    color: white;
}

.modal-btn-primary:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Modal Types */
.modal.modal-success .modal-icon {
    color: #4caf50;
}

.modal.modal-success .modal-title {
    color: #4caf50;
}

.modal.modal-error .modal-icon {
    color: var(--primary-color);
}

.modal.modal-error .modal-title {
    color: var(--primary-color);
}

.modal.modal-warning .modal-icon {
    color: #ffc107;
}

.modal.modal-warning .modal-title {
    color: #ffc107;
}

.modal.modal-info .modal-icon {
    color: #2196f3;
}

.modal.modal-info .modal-title {
    color: #2196f3;
}
