/**
 * Neizlesem.com Minimal Header Styles
 * Basit, temiz ve modern header tasarımı
 * Version: 2.1.0
 */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --header-bg: #ffffff;
    --header-border: rgba(0, 0, 0, 0.08);
    --header-text: #333333;
    --header-text-hover: #e50914;
    --header-accent: #e50914;
    --header-accent-hover: #f40612;
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --header-transition: all 0.2s ease;
    
    --header-height: 70px;
    --container-max-width: 1200px;
    --border-radius: 8px;
}

/* ===================================
   HEADER BASE
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    height: var(--header-height);
    transition: var(--header-transition);
}

/* Admin bar uyumluluğu */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ===================================
   HEADER CONTAINER
   =================================== */
.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
}

/* ===================================
   HEADER CONTENT
   =================================== */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}

/* ===================================
   LOGO SECTION
   =================================== */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--header-text);
    transition: var(--header-transition);
}

.logo-link:hover {
    color: var(--header-accent);
    transform: scale(1.02);
}

.header-logo-img {
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.custom-logo-wrapper {
    display: flex;
    align-items: center;
}

.custom-logo-wrapper img {
    max-height: 40px;
    width: auto;
    height: auto;
}

.default-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--header-text);
}

/* ===================================
   NAVIGATION
   =================================== */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a,
.nav-menu .nav-link {
    color: var(--header-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--header-transition);
    display: block;
    position: relative;
}

.nav-menu a:hover,
.nav-menu .nav-link:hover {
    color: var(--header-accent);
    background: rgba(229, 9, 20, 0.05);
    transform: translateY(-1px);
}

.nav-menu a::after,
.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--header-accent);
    transition: var(--header-transition);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu .nav-link:hover::after {
    width: 60%;
}

/* Aktif menü item'ı */
.nav-menu .nav-item.active > a,
.nav-menu .nav-item.active > .nav-link {
    color: var(--header-accent);
    background: rgba(229, 9, 20, 0.1);
}

.nav-menu .nav-item.active > a::after,
.nav-menu .nav-item.active > .nav-link::after {
    width: 60%;
}

/* Alt menü stilleri */
.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-menu .has-dropdown:hover > .dropdown-menu {
    display: block;
}

.nav-menu .dropdown-menu a,
.nav-menu .dropdown-menu .nav-link {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-menu .dropdown-menu a:last-child,
.nav-menu .dropdown-menu .nav-link:last-child {
    border-bottom: none;
}

.nav-menu .dropdown-menu a:hover,
.nav-menu .dropdown-menu .nav-link:hover {
    background: rgba(229, 9, 20, 0.05);
    color: var(--header-accent);
}

/* ===================================
   HEADER ACTIONS
   =================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ===================================
   SEARCH BUTTON
   =================================== */
.search-btn {
    background: var(--header-accent);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--header-transition);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.2);
}

.search-btn:hover {
    background: var(--header-accent-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

/* ===================================
   THEME TOGGLE BUTTON
   =================================== */
.theme-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #666666;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--header-transition);
    font-size: 1rem;
}

.theme-btn:hover {
    background: var(--header-accent);
    border-color: var(--header-accent);
    color: white;
    transform: scale(1.05);
}

/* ===================================
   MOBILE MENU BUTTON
   =================================== */
.mobile-menu-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #666666;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--header-transition);
    font-size: 1rem;
}

.mobile-menu-btn:hover {
    background: var(--header-accent);
    border-color: var(--header-accent);
    color: white;
    transform: scale(1.05);
}

/* ===================================
   MOBILE NAVIGATION
   =================================== */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    transition: var(--header-transition);
    overflow-y: auto;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-navigation.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.mobile-nav-title {
    color: #333333;
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-nav-close {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #666666;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--header-transition);
}

.mobile-nav-close:hover {
    background: var(--header-accent);
    border-color: var(--header-accent);
    color: white;
}

.mobile-nav-menu {
    padding: 1rem 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: block;
    padding: 1rem 2rem;
    color: #333333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--header-transition);
    border-left: 3px solid transparent;
}

.mobile-nav-list a:hover {
    background: rgba(229, 9, 20, 0.05);
    color: var(--header-accent);
    border-left-color: var(--header-accent);
    padding-left: 2.5rem;
}

/* ===================================
   MOBILE OVERLAY
   =================================== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: var(--header-transition);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ===================================
   SEARCH OVERLAY
   =================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--header-transition);
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-container {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: var(--header-transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.search-title {
    color: #333333;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.search-close {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #666666;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--header-transition);
}

.search-close:hover {
    background: var(--header-accent);
    border-color: var(--header-accent);
    color: white;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--header-transition);
}

.search-input-group:focus-within {
    border-color: var(--header-accent);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #333333;
    outline: none;
}

.search-input::placeholder {
    color: #999999;
}

.search-submit {
    background: var(--header-accent);
    border: none;
    color: white;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: var(--header-transition);
    font-size: 1rem;
}

.search-submit:hover {
    background: var(--header-accent-hover);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .header-content {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        padding: 0.625rem 1rem;
        font-size: 0.95rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .header-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .header-logo-img,
    .custom-logo-wrapper img {
        max-height: 35px;
    }
    
    .search-btn,
    .theme-btn,
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .search-overlay {
        padding: 1rem;
    }
    
    .search-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .search-title {
        font-size: 1.125rem;
    }
    
    .search-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .search-submit {
        padding: 0.875rem 1rem;
    }
    
    .mobile-navigation {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }
    
    .search-container {
        padding: 1.25rem;
        margin: 0.75rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.site-header {
    animation: slideInFromTop 0.4s ease-out;
}

.search-container.animate-in {
    animation: fadeInUp 0.3s ease-out;
}

/* Mobile navigation animation */
.mobile-navigation.animate-in {
    animation: slideInRight 0.3s ease-out;
}

/* Theme change animation */
body.theme-changing {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Body scroll prevention */
body.search-open,
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--header-accent);
    color: white;
    border-radius: var(--border-radius);
    z-index: 100000;
}

/* ===================================
   REKLAM ALANLARI STİLLERİ
   =================================== */

/* Sidebar Reklam Alanları (Sol ve Sağ) */
.sidebar-ad {
    position: fixed;
    top: 120px; /* Mod seçme kısmına yaklaştır */
    width: 160px;
    height: 600px;
    z-index: 100;
    transition: all var(--transition-normal);
}

.left-sidebar-ad {
    left: 20px;
}

.right-sidebar-ad {
    right: 20px;
}

.sidebar-ad .ad-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd23f 100%);
    border: 3px dashed #ff4500;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.sidebar-ad:hover .ad-container {
    border-color: #ff4500;
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.6);
    transform: translateY(-5px);
}

/* Gradient overlay on hover */
.sidebar-ad .ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 50%, rgba(255, 210, 63, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.sidebar-ad:hover .ad-container::before {
    opacity: 1;
}

.sidebar-ad .ad-placeholder {
    text-align: center;
    color: #000000;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.sidebar-ad .ad-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.sidebar-ad .ad-text {
    font-size: 14px;
    color: #000000;
    margin: 0 0 1rem 0;
    font-weight: 500;
    text-shadow: none;
}

.sidebar-ad .ad-icon {
    font-size: 3rem;
    color: #000000;
    transition: all var(--transition-normal);
    animation: adPulse 2s ease-in-out infinite;
}

.sidebar-ad:hover .ad-icon {
    animation: none;
    transform: scale(1.2);
}

/* Loading animation */
@keyframes adPulse {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1); 
    }
}

/* Admin Panel Reklam Ayarları Stilleri */
.ad-field-wrapper {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
}

.ad-field-wrapper label {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.ad-field-wrapper input[type="radio"] {
    margin-right: 8px;
}

.ad-adsense-field,
.ad-banner-field {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.ad-adsense-field textarea {
    width: 100%;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
}

.ad-banner-field input[type="url"] {
    margin-bottom: 10px;
}

/* AdSense ve Banner Stilleri */
.sidebar-ad .ad-adsense {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 20px;
}

.sidebar-ad .ad-adsense iframe,
.sidebar-ad .ad-adsense ins {
    border-radius: 20px;
    overflow: hidden;
}

.sidebar-ad .ad-banner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

.sidebar-ad .ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform var(--transition-normal);
}

.sidebar-ad .ad-banner:hover img {
    transform: scale(1.05);
}

.sidebar-ad .ad-banner a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Banner Reklam Alanları (Üst, Orta, Alt) */
.banner-ad {
    width: 100%;
    max-width: 728px;
    margin: 2rem auto;
    text-align: center;
}

.banner-ad .ad-container {
    width: 100%;
    min-height: 90px;
    max-height: 250px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.banner-ad:hover .ad-container {
    border-color: var(--header-accent);
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.2);
    transform: translateY(-2px);
}

.banner-ad .ad-placeholder {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
}

.banner-ad .ad-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.5rem;
}

.banner-ad .ad-text {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 1rem 0;
    opacity: 0.8;
}

.banner-ad .ad-icon {
    font-size: 2.5rem;
    opacity: 0.6;
    transition: all var(--transition-normal);
}

.banner-ad:hover .ad-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Content with Ads Layout */
.content-with-ads {
    flex: 1;
    margin: 0 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Reklam Alanları */
@media (max-width: 1400px) {
    .sidebar-ad {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 1rem auto;
        width: 100%;
        max-width: 160px;
    }
    
    .content-with-ads {
        margin: 0 1rem;
    }
}

@media (max-width: 1200px) {
    .sidebar-ad {
        display: none;
    }
    
    .content-with-ads {
        margin: 0;
    }
    
    .banner-ad {
        max-width: 100%;
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .banner-ad .ad-container {
        min-height: 60px;
    }
    
    .banner-ad .ad-placeholder {
        padding: 1rem;
    }
    
    .banner-ad .ad-icon {
        font-size: 2rem;
    }
}

/* ===================================
   FOOTER WIDGET STYLES
   =================================== */

/* Footer widget alanları */
.footer-widget {
    margin-bottom: 1rem;
}

.footer-widget .footer-title {
    color: var(--header-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(229, 9, 20, 0.2);
}

.footer-widget .footer-nav {
    margin-top: 0.5rem;
}

.footer-widget .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget .footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-widget .footer-menu a {
    color: var(--header-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--header-transition);
    display: block;
    padding: 0.25rem 0;
}

.footer-widget .footer-menu a:hover {
    color: var(--header-accent);
    padding-left: 0.5rem;
}

/* Widget başlık özelleştirme */
.footer-widget .widgettitle,
.footer-widget .widget-title {
    color: var(--header-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(229, 9, 20, 0.2);
}