/*
Theme Name: Akıllı Ev Sistemleri
Description: Akıllı ev sistemleri için özel olarak tasarlanmış modern WordPress teması. SEO dostu, AdSense uyumlu, responsive tasarım.
Author: AkilliEviniz.com
Version: 1.0
Text Domain: akilli-ev
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, technology, responsive, custom-menu, featured-images, threaded-comments, translation-ready, custom-header, custom-background
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    padding-top: 120px; /* Header için padding - auto-hide için */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Auto-Hide Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed; /* sticky yerine fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(0);
    opacity: 1;
}

/* Header gizli durumu */
.site-header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Header görünür durumu */
.site-header.header-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Header hover efekti */
.site-header:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Smooth transitions için */
.site-header * {
    transition: inherit;
}

.header-top {
    padding: 15px 0;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.logo a {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Navigation - Hamburger Menü Kaldırıldı */
.main-navigation {
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover::before {
    left: 0;
}

.nav-menu a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
}

.sub-menu a:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    text-align: center;
    padding: 80px 0;
    margin: 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="3" fill="white" opacity="0.1"/><circle cx="40" cy="70" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="30" r="2" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    background: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Categories Section */
.categories-section {
    background: white;
    margin: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 60px 0;
}

.categories-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 0 40px;
}

.category-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    padding: 25px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.category-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.category-icon {
    font-size: 2rem;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.category-header h3 {
    flex: 1;
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.category-item.active .toggle-icon {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(102, 126, 234, 0.02);
}

.category-content.open {
    max-height: 300px;
}

.category-link {
    display: block;
    padding: 15px 25px 15px 105px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.category-link:last-child {
    border-bottom: none;
}

.category-link::before {
    content: '→';
    position: absolute;
    left: 80px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.category-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--text-color);
    padding-left: 110px;
}

.category-link:hover::before {
    left: 85px;
    color: var(--secondary-color);
}

/* Main Content */
.main-content {
    background: white;
    margin: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.content-section {
    padding: 60px 40px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image.placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* AdSense Areas */
.ad-banner {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    text-align: center;
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 10px;
    color: #888;
    font-style: italic;
}

.ad-sidebar {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    text-align: center;
    padding: 30px 15px;
    border-radius: 10px;
    color: #888;
    font-style: italic;
    margin: 20px 0;
}

/* Single Post Genel Stiller */
.single-post {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2d3748;
    line-height: 1.7;
}

.single-article {
    max-width: 800px;
    margin: 0 auto;
}

/* Başlık ve Meta Bilgiler */
.article-header {
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.article-meta {
    margin: 20px 0;
    color: #718096;
    font-size: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f7fafc;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.article-meta svg {
    opacity: 0.7;
}

/* Yazı İçeriği */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.article-content p {
    margin-bottom: 24px;
    text-align: justify;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #2d3748;
    font-weight: 600;
    margin: 32px 0 16px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.article-content h2 {
    font-size: 28px;
    border-bottom: 2px solid #4299e1;
    padding-bottom: 8px;
}

.article-content h3 {
    font-size: 24px;
}

.article-content h4 {
    font-size: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #4299e1;
    padding: 20px 24px;
    margin: 24px 0;
    background: #f7fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #2d3748;
}

.article-content code {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: #e53e3e;
}

.article-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

/* Paylaşım Butonları - Icon Halinde */
.share-buttons {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-buttons h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.share-icons {
    display: flex;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn.facebook {
    background-color: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background-color: #166fe5;
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background-color: #0d8bd9;
}

.share-btn.linkedin {
    background-color: #0a66c2;
    color: white;
}

.share-btn.linkedin:hover {
    background-color: #004182;
}

.share-btn.whatsapp {
    background-color: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background-color: #128c7e;
}

/* İlgili Yazılar - Yan Yana Grid */
.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.related-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.related-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #007cba;
}

.related-date {
    color: #666;
    font-size: 13px;
}

/* Navigasyon - Görsel Halinde */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nav-previous,
.nav-next {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.nav-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.nav-direction {
    font-size: 12px;
    color: #007cba;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    float: left;
    margin-right: 15px;
}

.nav-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-content h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 1.3;
    color: #333;
}

.nav-date {
    font-size: 12px;
    color: #666;
}

/* Yorum Bölümü - Modern Tasarım */
.comments-section {
    margin: 50px 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.comments-section .comments-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

#respond {
    padding: 30px;
}

#respond h3 {
    color: #2d3748;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.comment-respond .comment-form {
    display: grid;
    gap: 20px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #4299e1;
    background: white;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

.form-submit input[type="submit"] {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

/* Mevcut Yorumlar */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.commentlist li {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    border-left: 4px solid #4299e1;
}

.comment-author {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 14px;
    color: #718096;
    margin-bottom: 15px;
}

.comment-content p {
    margin: 0;
    line-height: 1.6;
    color: #4a5568;
}

/* Yorum Yok Mesajı */
.no-comments {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-style: italic;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile Navigation - Hamburger Kaldırıldı */
@media (max-width: 768px) {
    body {
        padding-top: 100px; /* Mobilde daha az padding */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .nav-menu li {
        width: auto;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 20px;
        border-radius: 25px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 40px 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .category-link {
        padding-left: 60px;
    }
    
    .category-link::before {
        left: 35px;
    }
    
    .category-link:hover {
        padding-left: 65px;
    }
    
    .category-link:hover::before {
        left: 40px;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 10px;
        border-radius: 10px;
    }

    /* Single Post Responsive */
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .article-meta span {
        padding: 6px 12px;
        font-size: 14px;
    }

    .share-icons {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-previous,
    .nav-next {
        margin-bottom: 15px;
    }

    /* Comments Responsive */
    .comments-section {
        margin: 30px -20px;
        border-radius: 0;
    }
    
    #respond {
        padding: 20px;
    }
    
    .comments-section .comments-title {
        padding: 20px;
        font-size: 20px;
    }
    
    .commentlist li {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .share-icons {
        gap: 10px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
    }
    
    .nav-image {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .nav-content h5 {
        font-size: 14px;
    }
}

/* Mobil İçin Yorum ve Navigasyon İyileştirmeleri */
@media (max-width: 768px) {
    /* Yorum Bölümü Genel Düzenlemeler */
    .comments-section {
        margin: 40px 0;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        background: #ffffff;
        overflow: hidden;
    }
    
    .comments-section .comments-title {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 20px;
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        text-align: center;
    }
    
    /* Yorum Formu Mobil Optimizasyonu */
    #respond {
        padding: 25px 20px;
    }
    
    #respond h3 {
        color: #2d3748;
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .comment-respond .comment-form {
        display: grid;
        gap: 18px;
    }
    
    .comment-form label {
        display: block;
        margin-bottom: 6px;
        color: #4a5568;
        font-weight: 500;
        font-size: 14px;
    }
    
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 16px; /* 16px prevents zoom on iOS */
        font-family: inherit;
        transition: all 0.3s ease;
        background: #f7fafc;
        -webkit-appearance: none; /* Remove iOS styling */
        -moz-appearance: none;
        appearance: none;
    }
    
    .comment-form input:focus,
    .comment-form textarea:focus {
        outline: none;
        border-color: #4299e1;
        background: white;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
        transform: scale(1.02);
    }
    
    .comment-form textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .form-submit {
        text-align: center;
        margin-top: 15px;
    }
    
    .form-submit input[type="submit"] {
        background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
        color: white;
        border: none;
        padding: 14px 35px;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
        min-height: 44px; /* Touch target */
        min-width: 120px;
    }
    
    .form-submit input[type="submit"]:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(66, 153, 225, 0.4);
    }
    
    /* Mevcut Yorumlar Mobil */
    .commentlist {
        list-style: none;
        padding: 0;
        margin: 25px 0 0 0;
    }
    
    .commentlist li {
        background: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 18px;
        border-left: 4px solid #4299e1;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .comment-author {
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 8px;
        font-size: 15px;
    }
    
    .comment-meta {
        font-size: 13px;
        color: #718096;
        margin-bottom: 12px;
    }
    
    .comment-content p {
        margin: 0;
        line-height: 1.6;
        color: #4a5568;
        font-size: 15px;
    }
    
    /* Yorum Yok Mesajı */
    .no-comments {
        text-align: center;
        padding: 30px;
        color: #718096;
        font-style: italic;
        font-size: 15px;
    }

    /* Navigasyon Genel Düzenlemeler */
    .post-navigation {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0;
    }
    
    .nav-previous,
    .nav-next {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        border: 1px solid #e2e8f0;
    }
    
    .nav-previous:active,
    .nav-next:active {
        transform: translateY(2px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: inherit;
        padding: 16px;
        min-height: 80px; /* Daha büyük touch area */
    }
    
    .nav-direction {
        font-size: 12px;
        color: #4299e1;
        font-weight: 600;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .nav-image {
        width: 55px;
        height: 55px;
        border-radius: 8px;
        overflow: hidden;
        margin-right: 12px;
        flex-shrink: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
    }
    
    .nav-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .nav-content {
        flex: 1;
        min-width: 0; /* Text overflow için */
    }
    
    .nav-content h5 {
        margin: 0 0 4px 0;
        font-size: 15px;
        line-height: 1.3;
        color: #2d3748;
        font-weight: 600;
        /* Text overflow handling */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .nav-date {
        font-size: 12px;
        color: #718096;
        margin-top: 2px;
    }
    
    /* Previous/Next için farklı stillendirme */
    .nav-previous .nav-direction::before {
        content: "← ";
        font-size: 14px;
    }
    
    .nav-next .nav-direction::after {
        content: " →";
        font-size: 14px;
    }
}

/* Extra Small Screens (320px-480px) */
@media (max-width: 480px) {
    body {
        padding-top: 90px; /* Daha az padding küçük ekranlarda */
    }
    
    /* Yorum Bölümü Ekstra Küçük Ekranlar */
    .comments-section {
        margin: 30px -10px;
        border-radius: 8px;
    }
    
    #respond {
        padding: 20px 15px;
    }
    
    .comment-form input,
    .comment-form textarea {
        padding: 12px 14px;
        font-size: 16px; /* iOS zoom prevention */
    }
    
    .form-submit input[type="submit"] {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .commentlist li {
        padding: 15px;
    }
    
    /* Navigasyon Ekstra Küçük Ekranlar */
    .nav-link {
        padding: 14px;
        min-height: 70px;
    }
    
    .nav-image {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .nav-content h5 {
        font-size: 14px;
    }
    
    .nav-direction {
        font-size: 11px;
    }
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Touch cihazlar için iyileştirmeler */
    .share-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hover efektlerini touch için disable et */
    .article-card:hover,
    .related-item:hover,
    .nav-previous:hover,
    .nav-next:hover {
        transform: none;
    }
    
    /* Touch feedback için active states */
    .share-btn:active {
        transform: scale(0.95);
    }
    
    .nav-menu a:active {
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        color: white;
    }
    
    .nav-previous:active,
    .nav-next:active {
        background: #f7fafc;
    }
    
    .form-submit input[type="submit"]:active {
        background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    }
}

/* Accessibility Improvements */
.nav-link:focus,
.form-submit input[type="submit"]:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Animation for better feedback */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:active::before {
    left: 100%;
}
/* Mobile Navigation - Düzeltilmiş Versiyon */
@media (max-width: 768px) {
    /* Mobil Navigasyon Düzeltmeleri */
    .main-navigation {
        padding: 10px 0;
        max-height: none;
        overflow: visible;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        max-height: none;
        overflow-y: auto;
        max-height: calc(100vh - 200px);
        padding: 10px 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu > li > a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        text-align: left;
        position: relative;
    }
    
    /* Alt menü olan kategoriler için ok işareti */
    .nav-menu li.menu-item-has-children > a::after {
        content: '▼';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .nav-menu li.menu-item-has-children.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Alt menü stilleri */
    .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f8f9fa !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .sub-menu.open {
        max-height: 300px;
    }
    
    .sub-menu li {
        border-bottom: 1px solid #e9ecef;
    }
    
    .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .sub-menu a {
        display: block !important;
        padding: 12px 40px !important;
        color: #666 !important;
        border-radius: 0 !important;
        background: none !important;
        text-align: left;
    }
    
    .sub-menu a:hover {
        background: #e9ecef !important;
        color: var(--primary-color) !important;
    }
}