/* RESET & TEMEL */
:root {
    --primary: #1e293b;
    --accent: #2563eb;
    --bg: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --border: #e2e8f0;
    --font: 'Manrope', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--primary); line-height: 1.6; font-size: 16px; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 20px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.header-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.desktop-nav a { margin-left: 25px; font-weight: 600; font-size: 0.95rem; color: var(--gray); }
.desktop-nav a.active { color: var(--accent); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* GRID LAYOUT */
.layout-grid { display: grid; grid-template-columns: 800px 1fr; gap: 40px; margin-top: 40px; margin-bottom: 60px; }

/* POST CARDS (ANASAYFA) */
.post-loop { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.post-card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); border-color: var(--accent); }
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 0.75rem; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.card-content h2 { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.4; }
.card-content h2 a { color: var(--primary); }
.card-content p { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.read-more { font-weight: 700; font-size: 0.9rem; color: var(--accent); margin-top: auto; }

/* SINGLE POST */
.post-detail, .page-detail { background: var(--white); padding: 40px; border-radius: 16px; border: 1px solid var(--border); }
.breadcrumb { font-size: 0.9rem; color: var(--gray); margin-bottom: 20px; }
.main-title { font-size: 2.2rem; margin-bottom: 15px; color: var(--primary); line-height: 1.2; letter-spacing: -1px; }
.meta-info { color: var(--gray); font-size: 0.9rem; margin-bottom: 30px; display: flex; gap: 20px; }
.hero-image { width: 100%; border-radius: 12px; margin-bottom: 30px; }
.entry-content { font-size: 1.125rem; color: #334155; }
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 { margin-top: 1.5em; margin-bottom: 0.5em; font-size: 1.8rem; }
.entry-content ul { margin-bottom: 1.5em; padding-left: 20px; }

/* REKLAM KUTULARI (ADSENSE) */
.ad-box, .ad-widget { background: #f1f5f9; border: 2px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; color: #94a3b8; margin: 30px 0; border-radius: 8px; }
.ad-box { height: 120px; width: 100%; }
.ad-widget { height: 250px; width: 100%; }

/* SIDEBAR */
.sidebar { position: sticky; top: 100px; align-self: start; }
.widget { background: var(--white); padding: 25px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 30px; }
.widget h3 { font-size: 1.1rem; border-bottom: 2px solid var(--border); padding-bottom: 15px; margin-bottom: 20px; }
.cat-list, .recent-list { list-style: none; }
.cat-list li { margin-bottom: 10px; }
.cat-list li a { display: block; padding: 8px 12px; background: #f8fafc; border-radius: 6px; font-weight: 500; font-size: 0.95rem; }
.cat-list li a:hover { background: var(--accent); color: white; }
.recent-list li { margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; }
.recent-list li:last-child { border: none; margin: 0; padding: 0; }
.recent-list li a { font-weight: 600; display: block; margin-bottom: 5px; line-height: 1.4; }
.recent-list li small { color: var(--gray); font-size: 0.8rem; }
.search-widget input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }

/* FORMLAR */
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; font-family: inherit; font-size: 1rem; }
.contact-form button { background: var(--accent); color: white; border: none; padding: 15px 30px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem; }
.contact-form button:hover { background: #1d4ed8; }
.success-box { background: #dcfce7; color: #166534; padding: 20px; border-radius: 8px; font-weight: 600; }

/* FOOTER & SEO SECTION */
.seo-bot { background: #1e293b; color: #cbd5e1; padding: 60px 0; }
.seo-bot h3 { color: white; margin-bottom: 20px; font-size: 1.5rem; }
.site-footer { background: #0f172a; color: #94a3b8; padding: 30px 0; font-size: 0.9rem; border-top: 1px solid #334155; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-right a { margin-left: 20px; color: #cbd5e1; }
.footer-right a:hover { color: white; text-decoration: underline; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: white; padding: 15px 25px; border-radius: 50px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 1px solid var(--border); display: none; align-items: center; gap: 20px; z-index: 999; width: 90%; max-width: 600px; }
.cookie-banner p { font-size: 0.9rem; margin: 0; flex-grow: 1; }
.cookie-banner button { background: var(--primary); color: white; border: none; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-weight: 600; white-space: nowrap; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .layout-grid { grid-template-columns: 1fr; }
    .post-loop { grid-template-columns: 1fr; }
    .desktop-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 20px; border-bottom: 1px solid var(--border); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    .desktop-nav.open { display: flex; }
    .desktop-nav a { margin: 10px 0; }
    .mobile-toggle { display: block; }
    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
    .footer-right a { margin: 0 10px; }
}