:root {
    --primary-color: #1a1a1a;
    --accent-color: #B89B72;
    --accent-light: #f5f1ea;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #ffffff;
    --section-bg: #fdfdfd;
    --border-color: #f0f0f0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.06);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

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

html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background 0.8s ease;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Category Themes Removed for consistency with target site */
body {
    background: #fff;
}

/* Atmospheric Animations */
.category-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    overflow: hidden;
}

.decoration-node {
    position: absolute;
    width: 60vw;
    height: 60vh;
    background: var(--accent-color);
    filter: blur(180px);
    border-radius: 50%;
    opacity: 0.12;
    animation: float 30s infinite alternate ease-in-out;
}

.decoration-node:nth-child(2) {
    background: var(--secondary-accent, var(--accent-color));
    width: 40vw;
    height: 40vh;
    animation-delay: -10s;
    opacity: 0.08;
}

@keyframes float {
    0% { transform: translate(-15%, -15%) rotate(0deg) scale(1); }
    50% { transform: translate(10%, -5%) rotate(10deg) scale(1.1); }
    100% { transform: translate(15%, 15%) rotate(20deg) scale(1); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.page-title {
    font-size: 56px;
    margin-bottom: 24px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 26px;
    }
}

/* ─── HEADER & NAV ─────────────────────────────────────────── */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 2px solid #C5A059;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* ─── HEADER KATEGORİ TOGGLE (sol) ───────────────────────── */
.cat-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.cat-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(194,163,93,0.06);
    transform: scale(1.05);
}

.cat-toggle i {
    font-size: 20px;
}

/* ─── LOGO (Sol) ─── */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.logo a img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #C5A059;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 40px;
}

.nav-links a, .cat-trigger-link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.nav-links a:hover, .nav-links a.active, .cat-trigger-link:hover {
    color: #C5A059;
}

.cat-trigger-link i {
    margin-right: 4px;
}

.random-post-btn {
    background: linear-gradient(135deg, #BD9E5F 0%, #a68b52 100%);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 15px rgba(189, 158, 95, 0.3);
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.random-post-btn:hover {
    background: linear-gradient(135deg, #a68b52 0%, #8e7646 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(189, 158, 95, 0.4);
}

.random-post-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.random-post-btn:hover i {
    transform: rotate(15deg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
}


/* ─── KATEGORİ DRAWER (sol panel) ───────────────────────── */
.cat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.cat-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cat-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.cat-drawer.open {
    transform: translateX(0);
}

.cat-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 2px solid var(--accent-color);
    background: var(--section-bg);
    flex-shrink: 0;
}

.cat-drawer-header span {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.cat-drawer-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    line-height: 1;
}

.cat-drawer-close:hover {
    color: var(--primary-color);
    background: var(--border-color);
}

.cat-drawer-nav {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    padding: 12px 0;
    scrollbar-width: thin;
}

.cat-drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.cat-drawer-link:hover {
    background: var(--section-bg);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.cat-drawer-link.active {
    background: rgba(194,163,93,0.08);
    color: var(--accent-color);
    font-weight: 700;
    border-left-color: var(--accent-color);
}

.cat-drawer-link i {
    font-size: 16px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.drawer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 24px;
}

.drawer-section-title {
    padding: 8px 24px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero-section {
    padding: 60px 0;
    text-align: center;
    background: var(--section-bg);
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: 16px;
    line-height: 1.25;
}

.hero-content p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── CATEGORY BAR ──────────────────────────────────────────── */
.global-category-bar-wrapper {
    padding: 8px 0;
}

.sidebar-category-list.horizontal {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0 16px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.sidebar-category-list.horizontal::-webkit-scrollbar {
    display: none;
}

.sidebar-category-list.horizontal .sidebar-category-link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 20px;
    background: #fff;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sidebar-category-list.horizontal .sidebar-category-link:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.sidebar-category-list.horizontal .sidebar-category-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.sidebar-category-list.horizontal .sidebar-category-link i {
    color: var(--accent-color);
    font-size: 13px;
}

.sidebar-category-list.horizontal .sidebar-category-link.active i {
    color: #fff;
}

/* ─── MAIN LAYOUT ───────────────────────────────────────────── */
.main-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    padding-top: 10px;
}

.main-column {
    flex: 1;
    min-width: 0; /* prevents overflow */
}

/* ─── BLOG GRID ─────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 30px 0 80px 0;
}

/* ─── POST CARD ─────────────────────────────────────────────── */
.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    display: block;
    background: #f8f8f8;
    margin-bottom: 25px;
}

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

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--accent-color);
    width: fit-content;
}

.read-more:hover {
    color: var(--accent-color);
    border-bottom-color: var(--primary-color);
}

/* ─── PAGINATION ────────────────────────────────────────────── */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.main-footer {
    background: #121212;
    color: #fff;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-about h3, .footer-links h4 {
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.footer-about h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.footer-about p {
    color: #ababab;
    font-size: 15px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul a {
    color: #ababab;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #1f1f1f;
    padding-top: 40px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
    color: #555;
}

/* ─── SINGLE POST ───────────────────────────────────────────── */
.single-post-header {
    max-width: 800px;
    margin: 60px auto 40px;
    text-align: center;
    padding: 0 24px;
}

.single-post-header h1 {
    font-size: 40px;
    margin: 20px 0;
    line-height: 1.3;
}

.single-post-meta {
    font-size: 14px;
    color: var(--text-muted);
}

.single-post-image {
    max-width: 900px;
    margin: 0 auto 50px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0 24px;
}

.single-post-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.single-post-content {
    max-width: 780px;
    margin: 0 auto 80px;
    font-size: 17px;
    color: #444;
    line-height: 1.85;
    padding: 0 24px;
}

.single-post-content p {
    margin-bottom: 28px;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
}

/* ─── SHARE BUTTONS ─────────────────────────────────────────── */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
}

.share-btn i { font-size: 18px; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
    color: #fff;
}

/* ─── CONTACT ───────────────────────────────────────────────── */
.contact-method-card {
    padding: 36px 20px;
    background: var(--section-bg);
    border-radius: 4px;
    text-align: center;
    transition: var(--transition);
}

.contact-method-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
}

.contact-method-card i {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-method-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-method-card.whatsapp {
    background: #f4fff8;
    border: 1px solid #e1f5e8;
}

.contact-method-card.whatsapp i  { color: #25d366; }
.contact-method-card.whatsapp a  { color: #128c7e !important; }

/* ─── SIDE GUTTER ADS ───────────────────────────────────────── */
.gutter-ad {
    position: fixed;
    top: 150px;
    width: 140px;
    z-index: 50;
    text-align: center;
}

.gutter-ad.left  { left: 20px; }
.gutter-ad.right { right: 20px; }

.gutter-ad img {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ad-label {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET  (max 1024px)
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .gutter-ad { display: none; }

    .main-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .sidebar-column {
        width: 100% !important;
        order: 2;
    }

    .main-column {
        order: 1;
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .post-card.wide {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-about {
        grid-column: span 2;
    }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE  (max 768px)
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Header */
    .main-header {
        padding: 14px 0;
    }

    .header-container {
        justify-content: space-between !important;
    }

    /* Logoyu sola hizala */
    .logo {
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }

    .logo a {
        font-size: 16px;
        letter-spacing: 1.5px;
        gap: 10px;
    }

    .logo a img {
        width: 36px;
        height: 36px;
    }

    /* Masaüstü linklerini ve butonları gizle, mobil hamburgeri göster */
    .nav-links, .random-post-btn {
        display: none !important;
    }
    
    .header-right {
        gap: 0;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        font-size: 24px;
        padding: 5px;
    }

    /* (Eski mobil header link kodları temizlendi) */

    /* -- */

    /* Hero */
    .hero-section {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 15px;
    }

    /* Blog Grid — single column on mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px 0 40px 0;
    }

    .post-card.wide {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
    }

    .post-card.wide .post-image {
        aspect-ratio: 16 / 9;
        min-height: 0;
        height: auto;
    }

    /* Post card text adjustments */
    .post-title {
        font-size: 17px !important;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .post-card-content {
        padding: 16px;
    }

    /* Single post */
    .single-post-header {
        margin: 30px auto 24px;
    }

    .single-post-header h1 {
        font-size: 26px;
        line-height: 1.35;
    }

    .single-post-content {
        font-size: 16px;
        margin-bottom: 60px;
    }

    /* Category banner */
    .blog-grid + div /* quote section */ {
        padding: 60px 30px !important;
    }

    .blog-grid + div p {
        font-size: 20px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer-about {
        grid-column: span 1;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Share */
    .share-btn {
        width: 100%;
        justify-content: center;
    }

    /* Contact */
    .contact-methods-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — SMALL MOBILE  (max 480px)
───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .logo a {
        font-size: 13px;
        letter-spacing: 0.5px;
        gap: 8px;
    }

    .logo a img {
        width: 30px;
        height: 30px;
    }

    /* (eski sidebar-category-link stili kaldırıldı) */

    .post-title {
        font-size: 16px !important;
    }

    .post-excerpt {
        font-size: 13px;
    }

    .single-post-header h1 {
        font-size: 22px;
    }

    .single-post-content {
        font-size: 15px;
    }

    .footer-about h3 {
        font-size: 20px;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
