/*
Theme Name: Ahotus
Theme URI: https://ahotus.com
Author: Ahotus
Author URI: https://ahotus.com
Description: Teknoloji, Gündem ve Dizi & Film içerikleri için modern, AdSense ve SEO uyumlu premium haber teması.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ahotus
*/

/* ====================================================
   DESIGN TOKENS & RESET
   ==================================================== */
:root {
    --navy: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-hover); }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ====================================================
   LAYOUT
   ==================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 36px 0 60px;
}

@media (max-width: 1024px) {
    .site-wrap { grid-template-columns: 1fr; }
}

/* ====================================================
   HEADER
   ==================================================== */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--navy-800);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: 1240px;
    margin: 0 auto;
    height: 64px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: #fff !important;
    letter-spacing: -0.04em;
}
.site-logo span { color: var(--blue); }

/* Nav */
.primary-nav ul { list-style: none; display: flex; gap: 2px; }
.primary-nav ul li a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all .2s;
}
.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item a {
    color: #fff;
    background: var(--navy-800);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-light);
}
.nav-toggle svg { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--navy);
        border-top: 1px solid var(--navy-800);
        padding: 16px 24px;
    }
    .primary-nav.open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 4px; }
}

/* ====================================================
   HERO SECTION (Ana Sayfa İlk Yazı)
   ==================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--navy-800);
}
.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.hero-main:hover img { transform: scale(1.03); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
}
.hero-content .cat-badge { margin-bottom: 10px; }
.hero-content h2 {
    font-size: clamp(20px, 2.5vw, 30px);
    color: #fff;
    margin-bottom: 10px;
    font-weight: 900;
}
.hero-content h2 a { color: #fff !important; }
.hero-content h2 a:hover { color: rgba(255,255,255,.8) !important; }
.hero-content .excerpt {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-small-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    gap: 0;
    flex-direction: column;
    flex: 1;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all .3s ease;
}
.hero-small-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}
.hero-small-card .card-img {
    aspect-ratio: 16/8;
    overflow: hidden;
    background: var(--bg);
}
.hero-small-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.hero-small-card:hover .card-img img { transform: scale(1.04); }
.hero-small-card .card-body { padding: 16px 18px; }
.hero-small-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}
.hero-small-card h3 a { color: var(--navy) !important; }
.hero-small-card h3 a:hover { color: var(--blue) !important; }
.hero-small-card .card-meta { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 860px) {
    .hero-section { grid-template-columns: 1fr; }
    .hero-side { flex-direction: row; }
    .hero-small-card { flex: 1; }
}
@media (max-width: 580px) {
    .hero-side { flex-direction: column; }
}

/* ====================================================
   SECTION DIVIDER
   ==================================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--navy);
}
.section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
}
.section-header::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--blue);
    border-radius: 4px;
}

/* ====================================================
   POST GRID
   ==================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } }

/* ====================================================
   POST CARD
   ==================================================== */
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}
.post-card .card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg);
    position: relative;
}
.post-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.post-card:hover .card-img img { transform: scale(1.04); }
.post-card .card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card h3 a { color: var(--navy) !important; }
.post-card h3 a:hover { color: var(--blue) !important; }
.post-card .excerpt {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.post-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
}
.post-card .card-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.read-more-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue) !important;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.read-more-link:hover { color: var(--blue-hover) !important; }

/* ====================================================
   CATEGORY BADGE
   ==================================================== */
.cat-badge {
    display: inline-block;
    background: rgba(37,99,235,.1);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 4px 10px;
    border-radius: 99px;
    margin-bottom: 10px;
}
.cat-badge.film { background: rgba(139,92,246,.1); color: #7c3aed; }
.cat-badge.gundem { background: rgba(239,68,68,.1); color: #dc2626; }

/* ====================================================
   NO IMAGE PLACEHOLDER
   ==================================================== */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ====================================================
   PAGINATION
   ==================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0 0;
    grid-column: 1/-1;
}
.pagination a, .pagination span {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all .2s;
}
.pagination a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination span.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ====================================================
   SIDEBAR
   ==================================================== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.widget-box h4 {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--navy);
    border-left: 3px solid var(--blue);
    padding-left: 10px;
    margin-bottom: 16px;
}
.widget-box ul { list-style: none; }
.widget-box ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
}
.widget-box ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-box ul li a { color: var(--text) !important; font-weight: 500; }
.widget-box ul li a:hover { color: var(--blue) !important; }

/* Search widget */
.search-form { display: flex; gap: 8px; }
.search-form input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color .2s;
}
.search-form input:focus { border-color: var(--blue); }
.search-form button {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    transition: background .2s;
}
.search-form button:hover { background: var(--blue-hover); }

/* ====================================================
   SINGLE POST
   ==================================================== */
.single-hero {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 21/9;
    margin-bottom: 32px;
    background: var(--navy-800);
}
.single-hero img { width: 100%; height: 100%; object-fit: cover; }

.single-header { text-align: center; margin-bottom: 32px; }
.single-header .cat-badge { margin-bottom: 14px; }
.single-header h1 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--navy);
}
.single-header .post-meta {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.single-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--navy-700);
    max-width: 720px;
    margin: 0 auto;
}
.single-content p { margin-bottom: 24px; }
.single-content h2 { font-size: 26px; margin: 40px 0 16px; }
.single-content h3 { font-size: 21px; margin: 32px 0 12px; }
.single-content ul, .single-content ol { padding-left: 24px; margin-bottom: 24px; }
.single-content li { margin-bottom: 8px; }
.single-content strong { color: var(--navy); font-weight: 700; }
.single-content blockquote {
    border-left: 4px solid var(--blue);
    background: #eff6ff;
    padding: 16px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--navy-700);
}

/* AdSense Placeholder */
.ad-placeholder {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    text-align: center;
    padding: 18px;
    margin: 30px 0;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* ====================================================
   PAGE TEMPLATE
   ==================================================== */
.page-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 48px;
    max-width: 840px;
    box-shadow: var(--shadow);
}
.page-content h1 { font-size: 32px; margin-bottom: 24px; }
.page-content p { margin-bottom: 18px; line-height: 1.8; color: var(--navy-700); }

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
    background: var(--navy);
    border-top: 1px solid var(--navy-800);
    padding: 40px 0;
}
.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: #fff !important;
    letter-spacing: -.03em;
}
.footer-logo span { color: var(--blue); }
.footer-info { color: var(--text-light); font-size: 13px; }
.footer-info a { color: var(--text-light) !important; font-weight: 600; }
.footer-info a:hover { color: var(--blue) !important; }

/* ====================================================
   404 PAGE
   ==================================================== */
.notfound {
    text-align: center;
    padding: 80px 24px;
}
.notfound h1 { font-size: 120px; color: var(--blue); opacity: .15; line-height: 1; }
.notfound h2 { font-size: 28px; margin-bottom: 16px; }
.notfound p { color: var(--text-muted); margin-bottom: 28px; }
.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-hover); transform: translateY(-2px); }
