/* ==========================================================================
   MINIMALBLOG - GLOBAL & VARIABLES
   ========================================================================== */
:root {
    --bg-color: #ffffff; 
    --text-main: #111111; 
    --text-muted: #666666;
    --border-color: #eaeaea; 
    --hover-border: #222222; 
    --accent-bg: #f8f9fa;
    --max-width: 1140px; 
    --page-width: 760px;
    --article-width: 720px; 
    --radius: 12px; 
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Sabit header için kaydırma payı */
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; object-fit: cover; border-radius: 8px; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Sayfalara Özel Main Padding Değerleri */
.home-main { padding-bottom: 48px; }
.category-main { padding: 40px 0 80px; }
.static-main { padding: 64px 0 100px; }

/* ==========================================================================
   HEADER & SEARCH DIALOG
   ========================================================================== */
.site-header { border-bottom: 1px solid var(--border-color); padding: 16px 0; position: sticky; top: 0; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.04em; }
.logo img { max-width: 160px; height: auto; border-radius: 0; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.main-nav ul { list-style: none; display: flex; gap: 24px; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.main-nav a:hover { color: var(--text-main); }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-main); display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 50%; transition: var(--transition); }
.icon-btn:hover { background: #f4f4f4; }
.btn-hamburger { display: none; }

dialog { margin: auto; border: none; border-radius: var(--radius); padding: 40px; width: 100%; max-width: 600px; box-shadow: 0 24px 48px rgba(0,0,0,0.1); background: #fff; }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.search-form { display: flex; flex-direction: column; gap: 16px; position: relative; }
.search-form h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.search-input { width: 100%; padding: 16px 0; font-size: 1.2rem; border: none; border-bottom: 2px solid var(--border-color); outline: none; transition: var(--transition); }
.search-input:focus { border-bottom-color: var(--text-main); }
.btn-close-dialog { position: absolute; top: -20px; right: -20px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

/* ==========================================================================
   SHARED COMPONENTS (Ortak Bileşenler)
   ========================================================================== */
/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li::after { content: '/'; color: var(--border-color); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a:hover { color: var(--text-main); text-decoration: underline; }

/* Article Grid (3x3) */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding-bottom: 16px; }
.section-title { font-size: 1.5rem; margin-bottom: 32px; font-weight: 700; letter-spacing: -0.01em; }
.section-desc { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 32px; margin-top: 0; max-width: 600px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; margin-bottom: 48px; }
.article-card { display: flex; flex-direction: column; }
.card-img { border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 16px; }
.card-img img { width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1); }
.article-card:hover .card-img img { transform: scale(1.05); }
.article-card h3 { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.35; font-weight: 700; }
.article-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 16px; flex-grow: 1; }
.article-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 12px; margin-top: auto; }
.meta-category { font-size: 0.85rem; font-weight: 600; color: var(--text-main); background: #f4f4f4; padding: 4px 10px; border-radius: 4px; transition: var(--transition); }
.article-card:hover .meta-category { background: var(--border-color); }
.read-time { font-size: 0.8rem; color: var(--text-muted); }

/* HTML5 Native FAQ */
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-item details { padding: 20px 0; }
.faq-item summary { font-size: 1.15rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; outline: none; color: var(--text-main); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--text-muted); transition: transform 0.3s ease; }
.faq-item details[open] summary::after { content: '−'; transform: rotate(180deg); color: var(--text-main); }
.faq-item .answer { padding-top: 16px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   INDEX (Ana Sayfa) ÖZEL
   ========================================================================== */
.site-hero { padding: 80px 0 60px; text-align: center; max-width: 760px; margin: 0 auto; }
.site-hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; text-wrap: balance; }
.site-hero p { font-size: 1.15rem; color: var(--text-muted); }

.featured-article { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; margin-bottom: 80px; align-items: center; }
.featured-image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.featured-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.featured-meta .badge { font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--text-main); padding: 4px 10px; border-radius: 4px; letter-spacing: 0.05em; text-transform: uppercase; }
.featured-meta .category { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.featured-content h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 16px; line-height: 1.15; letter-spacing: -0.02em; }
.featured-content p { color: var(--text-muted); margin-bottom: 24px; font-size: 1.05rem; }

.btn-read { display: inline-flex; align-items: center; gap: 8px; background: var(--text-main); color: #ffffff; padding: 12px 24px; border-radius: 30px; font-weight: 600; font-size: 0.95rem; }
.btn-read svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.btn-read:hover { background: #333333; color: #ffffff; }
.btn-read:hover svg { transform: translateX(4px); }

.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
.category-card { display: flex; justify-content: space-between; align-items: center; background: #ffffff; border: 1px solid var(--border-color); padding: 24px; border-radius: var(--radius); transition: var(--transition); position: relative; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.category-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--text-main); transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.category-card:hover { border-color: var(--hover-border); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.category-card:hover::after { transform: scaleX(1); }
.category-card h3, .category-card h4 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.category-count { font-size: 0.8rem; color: var(--text-muted); background: #f4f4f4; padding: 4px 12px; border-radius: 20px; font-weight: 600; transition: var(--transition); }
.category-card:hover .category-count { background: var(--text-main); color: #ffffff; }

/* ==========================================================================
   KATEGORİ LİSTESİ ÖZEL
   ========================================================================== */
.category-header { margin-bottom: 32px; max-width: 800px; }
.category-title { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.category-desc { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; }

.subcategory-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 56px; }
.subcategory-card { display: flex; align-items: center; justify-content: center; padding: 16px 12px; background: #fafafa; border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); text-align: center; transition: var(--transition); }
.subcategory-card:hover { background: #ffffff; color: var(--text-main); border-color: var(--hover-border); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-bottom: 80px; }
.page-link { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.9rem; font-weight: 600; }
.page-link.active { background: var(--text-main); color: #fff; border-color: var(--text-main); }
.page-link:hover:not(.active) { border-color: var(--text-muted); color: var(--text-main); }

.seo-faq-section { display: flex; gap: 64px; padding-top: 64px; border-top: 1px solid var(--border-color); }
.seo-column { width: 500px; flex-shrink: 0; }
.seo-scroll-area { max-height: 400px; overflow-y: auto; padding-right: 20px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.seo-scroll-area::-webkit-scrollbar { width: 4px; }
.seo-scroll-area::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
.seo-scroll-area::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 10px; }
.seo-scroll-area::-webkit-scrollbar-thumb:hover { background: #999999; }
.seo-scroll-area h2 { font-size: 1.3rem; color: var(--text-main); margin-bottom: 16px; letter-spacing: -0.01em; }
.seo-scroll-area h3 { font-size: 1.1rem; color: var(--text-main); margin: 24px 0 12px; }
.seo-scroll-area p { margin-bottom: 16px; }
.faq-column { flex-grow: 1; }
.faq-column h2 { font-size: 1.5rem; margin-bottom: 24px; letter-spacing: -0.01em; }

/* ==========================================================================
   BLOG DETAY ÖZEL
   ========================================================================== */
.article-wrapper { max-width: var(--article-width); margin: 0 auto; padding: 40px 24px 80px; }
.article-header { margin-bottom: 40px; }
.article-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 24px; }
.article-meta-info { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-muted); }
.meta-category-tag { background: #f4f4f4; color: var(--text-main); padding: 4px 12px; border-radius: 4px; font-weight: 600; font-size: 0.85rem; }
.article-featured-image { margin-bottom: 48px; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }

.article-content { font-size: 1.125rem; line-height: 1.8; color: #222; }
.article-content p { margin-bottom: 24px; }
.article-content h2 { font-size: 1.8rem; margin: 48px 0 20px; letter-spacing: -0.02em; line-height: 1.3; }
.article-content h3 { font-size: 1.4rem; margin: 32px 0 16px; }

.toc-box { background: var(--accent-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; margin: 32px 0 48px; }
.toc-box summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; outline: none; margin-bottom: 0; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary h3 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.toc-box summary .icon { display: inline-flex; transition: transform 0.3s ease; color: var(--text-muted); }
.toc-box[open] summary .icon { transform: rotate(180deg); }
.toc-box[open] summary { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 10px; }
.toc-list li:last-child { margin-bottom: 0; }
.toc-list a { color: var(--text-main); font-size: 0.95rem; font-weight: 500; display: inline-block; transition: color 0.2s; }
.toc-list a:hover { color: var(--text-muted); text-decoration: underline; text-underline-offset: 4px; }
.toc-list ul { list-style: none; margin-top: 8px; padding-left: 16px; margin-left: 8px; border-left: 2px solid var(--border-color); }
.toc-list ul li { margin-bottom: 8px; }
.toc-list ul a { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.toc-list ul a:hover { color: var(--text-main); }

.widget-read-also { display: flex; gap: 20px; align-items: center; padding: 24px; margin: 48px 0; background: #fafafa; border: 1px solid var(--border-color); border-left: 4px solid var(--text-main); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); transition: var(--transition); }
.widget-read-also:hover { border-color: #d4d4d4; box-shadow: 0 8px 24px rgba(0,0,0,0.06); transform: translateY(-2px); }
.widget-read-also-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #ffffff; border-radius: 50%; border: 1px solid var(--border-color); color: var(--text-main); flex-shrink: 0; }
.widget-read-also-content { flex-grow: 1; }
.widget-read-also .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; display: block; letter-spacing: 0.05em; }
.widget-read-also .title { font-size: 1.15rem; font-weight: 600; color: var(--text-main); margin: 0; line-height: 1.4; }

.widget-newsletter { background: #111; color: #fff; padding: 40px; margin: 48px 0; border-radius: var(--radius); text-align: center; }
.widget-newsletter h4 { font-size: 1.5rem; margin-bottom: 12px; }
.widget-newsletter p { font-size: 0.95rem; color: #ccc; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 8px; justify-content: center; }
.newsletter-form input { padding: 12px 16px; border-radius: 6px; border: none; font-size: 1rem; width: 100%; max-width: 300px; }
.newsletter-form button { padding: 12px 24px; border-radius: 6px; border: none; background: #fff; color: #111; font-weight: 600; cursor: pointer; transition: var(--transition); }
.newsletter-form button:hover { background: #eee; }

.faq-section { margin-top: 64px; border-top: 1px solid var(--border-color); padding-top: 40px; }
.rating-box { display: flex; align-items: center; justify-content: space-between; background: var(--accent-bg); padding: 20px 24px; border-radius: 8px; margin: 48px 0; }
.stars { color: #f5b301; font-size: 1.2rem; display: flex; gap: 4px; }
.rating-text { font-size: 0.9rem; font-weight: 600; }
.author-box { display: flex; gap: 20px; align-items: center; padding: 32px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin: 48px 0; }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-box h4 { font-size: 1.2rem; margin-bottom: 4px; }
.author-box p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; }
.nav-link { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border-color); border-radius: var(--radius); transition: var(--transition); }
.nav-link:hover { border-color: var(--text-main); }
.nav-link.next { text-align: right; }
.nav-label { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.nav-title { font-size: 1.1rem; font-weight: 600; margin: 0; }
.related-posts-section { background: #ffffff; padding: 80px 0; border-top: 1px solid var(--border-color); }

/* ==========================================================================
   STATİK SAYFA ÖZEL
   ========================================================================== */
.page-wrapper { max-width: var(--page-width); margin: 0 auto; }
.page-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border-color); text-align: center; }
.page-title { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px; }
.page-meta { font-size: 0.95rem; color: var(--text-muted); }
.page-content { font-size: 1.1rem; line-height: 1.8; color: #333333; }
.page-content p { margin-bottom: 24px; }
.page-content h2 { font-size: 1.6rem; color: var(--text-main); margin: 48px 0 20px; letter-spacing: -0.01em; line-height: 1.3; }
.page-content h3 { font-size: 1.25rem; color: var(--text-main); margin: 32px 0 16px; }
.page-content ul, .page-content ol { margin-bottom: 24px; padding-left: 24px; }
.page-content li { margin-bottom: 12px; }
.page-content a { color: var(--text-main); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.page-content a:hover { color: var(--text-muted); }
.page-content strong { font-weight: 700; color: var(--text-main); }

.contact-box { background: var(--accent-bg); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border-color); margin-top: 48px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.form-input, .form-textarea { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; font-size: 1rem; transition: var(--transition); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--text-main); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.form-textarea { resize: vertical; min-height: 120px; }
.btn-submit { display: inline-block; background: var(--text-main); color: #ffffff; padding: 14px 28px; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-submit:hover { background: #333333; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border-color); padding: 64px 0 24px 0; background-color: #fafafa; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-about .logo { display: block; font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.footer-about .logo img { max-width: 180px; }
.footer-about p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.footer-links h4 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; letter-spacing: -0.01em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text-main); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .subcategory-grid { grid-template-columns: repeat(3, 1fr); }
    .seo-faq-section { flex-direction: column; gap: 48px; }
    .seo-column { width: 100%; }
    .seo-scroll-area { max-height: none; padding-right: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Globals & Header */
    .btn-hamburger { display: flex; }
    .main-nav { display: none; }
    .main-nav.active { display: block; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); padding: 20px 24px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    .main-nav.active ul { flex-direction: column; gap: 16px; }
    .main-nav.active a { font-size: 1.1rem; display: block; padding: 8px 0; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    /* Index */
    .site-hero { padding: 40px 0 20px; }
    .site-hero h1 { font-size: 2rem; }
    .featured-article { grid-template-columns: 1fr; margin-bottom: 48px; gap: 24px; }
    .categories-grid { grid-template-columns: 1fr; }
    
    /* Shared Article Grid */
    .article-grid { grid-template-columns: 1fr; gap: 40px; }
    
    /* Category */
    .category-title { font-size: 2.2rem; }
    .subcategory-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 40px; }
    
    /* Statik */
    .page-title { font-size: 2.2rem; }
    .static-main { padding: 40px 0 60px; }
    .contact-box { padding: 24px; }
    
    /* Detay */
    .newsletter-form { flex-direction: column; } 
    .newsletter-form input { max-width: 100%; }
    .post-navigation { grid-template-columns: 1fr; gap: 16px; }

    /* Author Box (Hakkımda - Mobil) */
    .author-box { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .subcategory-grid { grid-template-columns: 1fr; }
}