
/*
Theme Name: news-spor
Description: Modern ve responsive haber teması
Version: 1.6
Author: viajans
Author URI: https://viajans.com
*/

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Container Genişlikleri */
    --container-max-width: 1200px;
    
    /* Renkler - Primary color removed, comes from dynamic CSS */
    --secondary-color: #2c3e50;
    --text-color: #333;
    --bg-color: #f8f9fa;
}

/* ========================================
   RESET VE GENEL STİLLER
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
}

.container.full-width-slider {
    padding: 0;
}

/* ========================================
   HEADER TOP BAR
   ======================================== */
.header-top {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    padding: 10px 0;
    border-bottom: 1px solid #1a252f;
    width: 100%;
    position: relative;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.top-bar-left {
    color: #ecf0f1;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left::before {
    content: '📰';
    font-size: 14px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Topbar Menu Styles */
.topbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.topbar-menu li {
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-menu li:not(:last-child)::after {
    content: '|';
    color: #34495e;
    margin: 0 8px;
    font-weight: 300;
}

.topbar-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 3px;
    display: inline-block;
}

.topbar-menu a:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Legacy support */
.top-bar-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 3px;
}

.top-bar-link:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.separator {
    color: #34495e;
    margin: 0 2px;
}

/* ========================================
   MAIN HEADER
   ======================================== */
.site-header {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    color: #333;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 2px solid #e74c3c;
    position: relative;
    z-index: 999; /* Header üstte kalır */
    width: 100%;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: 60px;
}

.logo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 60px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 900;
    color: #e74c3c;
    text-decoration: none;
    letter-spacing: -1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-logo:hover {
    color: #c0392b;
    transform: translateY(-2px);
}

.site-logo-image {
    max-height: 65px;
    width: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.site-logo:hover .site-logo-image {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.logo-text {
    display: block;
}

/* ========================================
   HEADER NAVIGATION
   ======================================== */
.header-navigation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    position: relative;
    z-index: 100; /* Navigation için yeterli z-index */
}

.header-navigation .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

/* Ana menü - YATAY */
.header-navigation > .nav-wrapper > ul,
.header-navigation > ul {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    height: 60px;
}

/* ALT MENÜLER - DİKEY (FLEX OVERRIDE) - SADECE DESKTOP */
@media (min-width: 769px) {
    .header-navigation ul ul,
    .header-navigation .sub-menu {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        gap: 0 !important;
    }
}

.header-navigation li {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 60px;
}

/* Position relative sadece desktop için - Alt menüler için gerekli */
@media (min-width: 769px) {
    .header-navigation li {
        position: relative;
    }
}

.header-navigation a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: relative;
    border-bottom: 3px solid transparent;
}

.header-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e74c3c;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-navigation a:hover {
    background: rgba(231, 76, 60, 0.05);
    color: #e74c3c;
}

.header-navigation a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========================================
   HEADER ACTIONS
   ======================================== */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    height: 60px;
    flex-shrink: 0;
    position: relative;
    z-index: 101; /* Navigation'dan biraz yüksek */
}

.search-toggle,
.user-menu {
    display: flex;
    align-items: center;
}

.search-btn,
.user-btn {
    background: none;
    border: none;
    color: #2c3e50;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover,
.user-btn:hover {
    background: #f0f0f0;
    color: #e74c3c;
    transform: scale(1.1);
}

.search-btn svg,
.user-btn svg {
    stroke-width: 2;
}

/* ========================================
   SEARCH FORM
   ======================================== */
.search-form-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ecf0f1;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 50; /* Search form için uygun z-index */
}

.search-form-container.active {
    max-height: 100px;
    opacity: 1;
    padding-top: 12px;
}

.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0;
}

.search-field {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.search-field:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background: #fafbfc;
}

.search-field::placeholder {
    color: #999;
}

.search-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
}

.search-submit:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ========================================
   STICKY HEADER
   ======================================== */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Fixed header için yüksek z-index */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 12px 0;
}

.site-header.sticky .header-wrapper {
    gap: 30px;
}

.site-header.sticky .site-logo {
    font-size: 28px;
}

.site-header.sticky .site-logo-image {
    max-height: 50px;
}

body.sticky-header-active {
    padding-top: 200px;
}

/* ========================================
   MAIN SLIDER SECTION
   ======================================== */
.main-slider-section {
    width: 100%;
    margin-bottom: 0;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    background-color: #f5f5f5;
    border-radius: 0;
    margin-top: 0;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slider-item.active {
    opacity: 1;
    z-index: 10;
}

.slider-time {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}

.slider-content {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.98) 100%);
    color: white;
    padding: 100px 50px 50px;
    width: 100%;
    position: relative;
    z-index: 5;
}

.slider-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.8px;
    max-width: 800px;
}

.slider-title a {
    color: white;
    text-decoration: none;
}

.slider-title a:hover {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.slider-excerpt {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 700px;
    font-weight: 300;
}

/* ========================================
   SLIDER NAVIGATION
   ======================================== */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    backdrop-filter: blur(10px);
    outline: none;
}

.slider-nav:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.15);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.slider-prev {
    left: 24px;
}

.slider-next {
    right: 24px;
}

/* ========================================
   SLIDER PAGINATION
   ======================================== */
.slider-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
}

.slider-pagination::-webkit-scrollbar {
    display: none;
}

.slider-pagination-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    color: #666;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    position: relative;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.slider-pagination-dot:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-color: #e74c3c;
    color: #e74c3c;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.15);
}

.slider-pagination-dot.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
    transform: scale(1.15);
    font-weight: 900;
    letter-spacing: 1px;
}

.slider-pagination-dot.active::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 1.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(231, 76, 60, 0);
    }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3.footer-title {
    font-size: 15px;
    margin-bottom: 12px;
    color: white;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-description {
    line-height: 1.5;
    color: #bdc3c7;
    margin-bottom: 15px;
    font-size: 13px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 280px; /* 5 ikon sığacak: 5×40px + 4×15px gap = 260px */
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e74c3c;
    transform: translateY(-2px);
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2px 0;
    font-size: 13px;
    line-height: 1.4;
}

.footer-menu a:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
}

.contact-item svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright,
.footer-credits {
    color: #95a5a6;
    font-size: 14px;
}

.footer-credits a {
    color: #95a5a6 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: #bdc3c7 !important;
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 500; /* Scroll button için uygun z-index */
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* WordPress Specific */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .header-wrapper {
        gap: 15px;
    }
    
    .header-navigation a {
        padding: 0 10px;
        font-size: 11px;
    }
    
    .header-actions {
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .header-wrapper {
        gap: 12px;
    }
    
    .header-navigation a {
        padding: 0 9px;
        font-size: 11px;
    }
    
    .header-actions {
        gap: 10px;
    }
}

/* Mobil responsive kodlar mobile-responsive.css dosyasında */