/*
Theme Name: Konya Net Haber Teması
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Konya Net haber sitesi için özel WordPress teması
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: konya-net
*/

/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background: #f5f5f5;
    line-height: 1.6;
}
/* Üst Bar */
.top-bar {
    background: #1b4382;
    padding: 5px 0;
    font-size: 15px;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
    transition: color 0.3s;
}

.top-links a:hover {
    color: #e74c3c;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 16px;
    margin-left: 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #e74c3c;
}


/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.logo-main {
   //background: #e74c3c;
    color: #fff;
   /* padding: 8px 15px;*/
    font-weight: bold;
    font-size: 18px;
    border-radius: 8px;
}

.logo-sub {
    background: #000;
    color: #fff;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 18px;
}

.header-info {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 13px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-item .icon {
    font-size: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 200px;
}

/* Navigation */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-menu li a:hover {
    background: #f5f5f5;
    color: #e74c3c;
}

/* Content Area */
.content-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

/* Featured News Carousel */
.featured-news-wrapper {
    margin-bottom: 40px;
}

.featured-news {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.featured-carousel {
    position: relative;
    width: 100%;
    height: 331px; /* varsayılan küçük ekran boyutu */
    overflow: hidden;
}

/* Orta ekranlarda yükseklik biraz artsın */
@media (min-width: 768px) {
    .featured-carousel {
        height: 350px;
    }
}

/* Daha büyük ekranlarda maksimum 501px olsun */
@media (min-width: 1200px) {
    .featured-carousel {
        height: 501px;
    }
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.featured-slide.active {
    opacity: 1;
    z-index: 1;
}

.featured-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.featured-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: #fff;
}

.featured-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.featured-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

/* Carousel Pagination */
.carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.page-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 12px;
}

.page-number:hover {
    background: #f5f5f5;
    border-color: #0066cc;
    color: #0066cc;
}

.page-number.active {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    cursor: default;
}

.page-number.active:hover {
    background: #e74c3c;
    color: #fff;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.news-card {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.3s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #3498db;
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
}

.news-content {
    padding: 15px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #e74c3c;
}

.news-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-meta {
    font-size: 12px;
    color: #999;
}

.news-meta time {
    display: inline-block;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.widget-header {
    background: #e74c3c;
    color: #fff;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 14px;
}

.widget-content {
    padding: 15px;
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-news-item:first-child {
    padding-top: 0;
}

.sidebar-news-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    object-position: top left;
    border-radius: 3px;
    flex-shrink: 0;
}

.sidebar-news-content {
    flex: 1;
    min-width: 0;
}

.sidebar-news-category {
    color: #3498db;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sidebar-news-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.sidebar-news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-news-title a:hover {
    color: #e74c3c;
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #999;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}


/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .header-info {
        display: none;
    }
    
    
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .featured-carousel {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .featured-carousel {
        height: 350px;
    }
    
    .featured-title {
        font-size: 20px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .page-number {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box input {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .nav-menu li a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .featured-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .sidebar-news-image {
        width: 100px;
        height: 70px;
    }
    
    .sidebar-news-title {
        font-size: 12px;
    }
    
    .news-card {
        margin-bottom: 15px;
    }
}




/* Post Content Stilleri */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #333;
    margin: 25px 0 15px;
    line-height: 1.4;
    font-weight: bold;
}

.post-content h2 {
    font-size: 26px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.post-content h3 {
    font-size: 22px;
}

.post-content h4 {
    font-size: 19px;
}

.post-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.post-content strong,
.post-content b {
    font-weight: bold;
    color: #222;
}

.post-content em,
.post-content i {
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin: 15px 0 15px 30px;
    padding: 0;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.post-content a {
    color: #e74c3c;
    text-decoration: underline;
    transition: all 0.3s;
}

.post-content a:hover {
    color: #c0392b;
}

.post-content blockquote {
    margin: 20px 0;
    padding: 20px 25px;
    background: #f8f8f8;
    border-left: 4px solid #e74c3c;
    font-style: italic;
    color: #666;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
    display: block;
}

.post-content figure {
    margin: 20px 0;
}

.post-content figcaption {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

.post-content table th,
.post-content table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.post-content table th {
    background: #f8f8f8;
    font-weight: bold;
    color: #333;
}

.post-content table tr:nth-child(even) {
    background: #fafafa;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e74c3c;
}

.post-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid #e74c3c;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.post-content hr {
    border: none;
    border-top: 2px solid #eee;
    margin: 30px 0;
}

/* WordPress Embedded Content */
.post-content iframe,
.post-content embed,
.post-content object,
.post-content video {
    max-width: 100%;
    margin: 20px 0;
}

.post-content .wp-caption {
    max-width: 100%;
    margin: 20px 0;
}

.post-content .wp-caption img {
    margin: 0;
}

.post-content .wp-caption-text {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

.post-content .alignleft {
    float: left;
    margin: 10px 20px 10px 0;
}

.post-content .alignright {
    float: right;
    margin: 10px 0 10px 20px;
}

.post-content .aligncenter {
    display: block;
    margin: 20px auto;
    text-align: center;
}


/* Responsive - İlgili Haberler */
@media (max-width: 968px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .single-post {
        padding: 0px !important;
    }
    
    .post-title {
        font-size: 24px !important;
    }
    
    .post-content {
        font-size: 15px !important;
    }
    
    .related-grid {
        grid-template-columns: 1fr !important;
    }
    
    .social-share > div {
        flex-direction: column;
    }
    
    .social-share a {
        text-align: center;
    }
}



/* Footer Link Hover */
.site-footer a:hover {
    color: #e74c3c !important;
    opacity: 0.8;
}

/* Footer Responsive */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col ul,
    .footer-menu {
        text-align: center !important;
    }
    
    .social-links {
        justify-content: center !important;
    }
    
    .site-footer {
        padding: 30px 0 15px !important;
    }
}


/* Mobil Responsive */
@media (max-width: 968px) {
    .header-info {
        display: none;
    }
    
    .search-box {
        width: 100%;
        margin-top: 10px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        background: #e74c3c;
        color: #fff;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 20px;
        border-radius: 3px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 640px) {
    .top-bar-content {
        flex-direction: row;
        gap: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-main, .logo-sub {
        font-size: 16px;
        padding: 6px 12px;
    }
}


/* Mevcut style.css dosyanızın sonuna bu stilleri ekleyin */

/* Header Butonlar Container */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Arama Toggle Butonu */
.search-toggle-btn {
    display: none; /* Desktop'ta gizli */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #333;
    transition: color 0.3s;
}

.search-toggle-btn:hover {
    color: #e74c3c;
}

.search-toggle-btn svg {
    display: block;
}

/* Mobil Menü Toggle Butonu */
.mobile-menu-toggle {
    display: none; /* Desktop'ta gizli */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #333;
    transition: color 0.3s;
}

.mobile-menu-toggle:hover {
    color: #e74c3c;
}

.mobile-menu-toggle svg {
    display: block;
}

/* Search Box - Desktop */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

.search-form {
    display: flex;
    width: 100%;
    position: relative;
}

.search-field {
    padding: 10px 45px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-field:focus {
    outline: none;
    border-color: #e74c3c;
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: color 0.3s;
}

.search-submit:hover {
    color: #e74c3c;
}

.search-submit svg {
    display: block;
}

/* Mobil Menü Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Daha hafif karartma */
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Body scroll lock when menu open */
body.menu-open {
    overflow: hidden;
}

/* Mobil Responsive - 768px ve altı */
@media (max-width: 768px) {
    /* Arama toggle butonunu göster */
    .search-toggle-btn {
        display: block !important;
    }
    
    /* Mobil menü toggle göster */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Header yapısı */
    .header-content {
        flex-direction: column;
        gap: 0;
    }
    
    .header-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }
    
    .site-logo {
        order: 1;
    }
    
    .header-info {
        display: none !important;
    }
    
    .header-buttons {
        order: 3;
    }
    
    /* Search Box - Mobilde gizli, toggle ile açılır */
    .search-box {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .search-box.active {
        transform: translateY(0);
    }
    
    .search-box .search-field {
        width: 100%;
    }
    
    /* Navigation - Sağdan açılır menü */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 0;
        overflow: hidden;
        z-index: 999;
        transition: width 0.3s ease;
    }
    
    .nav-content {
        position: relative;
        height: 100%;
        background: #fff;
        width: 300px;
        overflow-y: auto;
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        padding: 60px 0 20px;
        list-style: none;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .main-nav:has(.nav-menu.active) {
        width: 300px;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        color: #333;
        font-size: 15px;
        transition: all 0.3s;
    }
    
    .nav-menu li a:hover {
        background: #f5f5f5;
        color: #e74c3c;
        padding-left: 25px;
    }
    
    /* Menü kapatma butonu */
    .mobile-menu-close {
        position: fixed;
        top: 15px;
        right: 15px;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        z-index: 1000;
        border: none;
    }
}

/* Tablet ve küçük ekranlar için ayarlamalar */
@media (max-width: 640px) {
    .nav-content {
        width: 280px;
    }
    
    .main-nav:has(.nav-menu.active) {
        width: 280px;
    }
    
    .mobile-menu-close {
        right: 15px;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 480px) {
    .nav-content {
        width: 250px;
    }
    
    .main-nav:has(.nav-menu.active) {
        width: 250px;
    }
    
    .mobile-menu-close {
        right: 15px;
    }
}

/* Desktop - 769px ve üzeri */
@media (min-width: 769px) {
    .search-toggle-btn {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .header-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .search-box {
        width: auto;
        margin-top: 0;
        position: static;
        transform: none;
        box-shadow: none;
        padding: 0;
    }
    
    .search-box .search-field {
        width: 250px;
    }
    
    .main-nav {
        position: static;
        width: auto;
        height: auto;
    }
    
    .nav-content {
        width: auto;
        height: auto;
        overflow: visible;
    }
    
    .nav-menu {
        flex-direction: row !important;
        padding: 0;
    }
    
    .mobile-menu-close {
        display: none;
    }
}


@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }
}