/* ============================================================
   BLOG ARTICLE — Merkezi Stylesheet
   farkindalikrehberi.com
   Tüm blog makalelerinde <link rel="stylesheet" href="../../css/blog-article.css"> ile çağrılır.
   ============================================================ */

/* ── Hero ── */
.article-hero {
    padding: 8rem 5% 5rem;
    text-align: center;
    background: var(--hero-bg, linear-gradient(135deg, #3d2c5e, #7b6699));
}
.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: white;
    padding: .4rem 1.2rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.article-hero h1 {
    color: white;
    font-size: clamp(1.7rem, 3.8vw, 2.9rem);
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.25;
}
.article-hero .hero-meta {
    color: rgba(255,255,255,0.78);
    font-size: .88rem;
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Layout ── */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3.5rem;
    max-width: 1180px;
    margin: 4rem auto;
    padding: 0 5%;
}
@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Article Body ── */
.article-body h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}
.article-body h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-dark);
    margin: 1.8rem 0 .75rem;
    line-height: 1.35;
}
.article-body p {
    font-size: 1.04rem;
    line-height: 1.9;
    color: #3a3a3a;
    margin-bottom: 1.35rem;
}
.article-body ul,
.article-body ol {
    margin: .8rem 0 1.5rem 1.4rem;
}
.article-body li {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: .35rem;
}
.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-body a:hover { color: var(--accent); }

/* ── AIO Answer Block ── */
.aio-answer {
    background: linear-gradient(135deg, rgba(123,102,153,.07), rgba(184,134,11,.05));
    border-left: 4px solid var(--primary);
    padding: 1.4rem 1.8rem;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
    font-size: 1.04rem;
    line-height: 1.85;
    color: #2d2d2d;
}

/* ── Info Box ── */
.info-box {
    background: #f8f5ff;
    border: 1px solid rgba(123,102,153,.2);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    margin: 2rem 0;
}
.info-box h4 {
    color: var(--primary);
    margin-bottom: .7rem;
    font-size: 1.1rem;
}
.info-box p, .info-box li { font-size: .97rem; color: #444; }

/* ── Highlight Box ── */
.highlight-box {
    background: linear-gradient(135deg, rgba(184,134,11,.06), rgba(123,102,153,.04));
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    margin: 2rem 0;
    border: 1px solid rgba(184,134,11,.14);
}

/* ── Data Table ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: .93rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.data-table th {
    background: var(--primary);
    color: white;
    padding: .85rem 1.1rem;
    text-align: left;
    font-size: .88rem;
    letter-spacing: .5px;
}
.data-table td {
    padding: .8rem 1.1rem;
    border-bottom: 1px solid rgba(0,0,0,.055);
    vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) { background: rgba(123,102,153,.04); }
.data-table tr:hover td { background: rgba(184,134,11,.05); }

/* ── Card Grid ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
    margin: 1.8rem 0;
}
.card-item {
    background: white;
    border-radius: 14px;
    padding: 1.4rem;
    border: 1px solid rgba(184,134,11,.12);
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s;
}
.card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
}
.card-item h4 {
    color: var(--primary);
    margin-bottom: .45rem;
    font-size: 1rem;
}
.card-item p {
    font-size: .88rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* ── Ritual Steps ── */
.ritual-step {
    display: flex;
    gap: 1.1rem;
    margin-bottom: 1.4rem;
    align-items: flex-start;
}
.ritual-num {
    background: var(--primary);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── FAQ Block ── */
.faq-block { margin: 3rem 0; }
.faq-item {
    border: 1px solid rgba(184,134,11,.15);
    border-radius: 14px;
    margin-bottom: .9rem;
    overflow: hidden;
    transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.faq-q {
    padding: 1.1rem 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    background: rgba(184,134,11,.04);
    font-size: .98rem;
    cursor: default;
}
.faq-a {
    padding: .9rem 1.4rem 1.3rem;
    font-size: .95rem;
    color: #444;
    line-height: 1.8;
}

/* ── CTA Inline ── */
.cta-inline {
    background: linear-gradient(135deg, var(--primary), #8a6a9a);
    color: white;
    border-radius: 20px;
    padding: 2.4rem 2rem;
    text-align: center;
    margin: 3rem 0;
}
.cta-inline h3 {
    color: white;
    margin-bottom: .7rem;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}
.cta-inline p {
    color: rgba(255,255,255,.85);
    margin-bottom: 1.4rem;
    font-size: .97rem;
}
.cta-btn-white {
    background: white;
    color: var(--primary);
    padding: .85rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .93rem;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.cta-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    color: var(--primary);
    text-decoration: none;
}

/* ── Sidebar ── */
.article-sidebar { position: sticky; top: 110px; }
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary), #5a4a7a);
    color: white;
    border-radius: 18px;
    padding: 2.2rem;
    text-align: center;
    margin-bottom: 1.8rem;
}
.sidebar-cta h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: .8rem;
}
.sidebar-cta p { opacity: .85; font-size: .93rem; margin-bottom: 1.3rem; }
.sidebar-cta-btn {
    background: white;
    color: var(--primary);
    padding: .8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    font-size: .88rem;
    transition: transform .2s;
}
.sidebar-cta-btn:hover { transform: translateY(-2px); text-decoration: none; color: var(--primary); }
.sidebar-links {
    background: white;
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    border: 1px solid rgba(184,134,11,.1);
}
.sidebar-links h4 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 1.1rem;
}
.sidebar-links ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.sidebar-links li a {
    color: var(--text-dark);
    font-size: .88rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}
.sidebar-links li a:hover { color: var(--primary); }
.sidebar-links li a i { color: var(--accent); font-size: .72rem; }

/* ── Breadcrumb ── */
.breadcrumb-bar {
    padding: .8rem 5%;
    background: white;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .82rem;
    color: #888;
}
.breadcrumb-bar a { color: var(--primary); text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar span { margin: 0 .4rem; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .article-hero { padding: 6rem 5% 3.5rem; }
    .article-hero h1 { font-size: 1.6rem; }
    .data-table { font-size: .82rem; }
    .data-table th, .data-table td { padding: .65rem .8rem; }
    .card-grid { grid-template-columns: 1fr; }
    .cta-inline { padding: 1.8rem 1.2rem; }
    .article-body h2 { font-size: 1.4rem; }
    .faq-q { font-size: .92rem; }
}
@media (max-width: 480px) {
    .data-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .data-table { min-width: 480px; }
}

/* ── Blog Hero (eski wave dark hero) ── */
/* Sayfalar kendi .blog-hero arka planını inline <style> ile override eder. */
/* Bu kural hero'nun genel layout'unu tanımlar. */
.blog-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 140px;
    padding-bottom: 60px;
}

/* ── Warning / Check Boxes (eski wave) ── */
.warning-box {
    background: rgba(220,53,69,.06);
    border: 1px solid rgba(220,53,69,.2);
    border-radius: 14px;
    padding: 1.8rem;
    margin: 2rem 0;
}

.warning-box h4 { color: #c0392b; margin-bottom: .8rem; font-size: 1.2rem; }

.check-box {
    background: rgba(39,174,96,.06);
    border: 1px solid rgba(39,174,96,.2);
    border-radius: 14px;
    padding: 1.8rem;
    margin: 2rem 0;
}

.check-box h4 { color: #27ae60; margin-bottom: .8rem; font-size: 1.2rem; }

/* ── Spread Table (eski wave alias for data-table) ── */
.spread-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .92rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.spread-table th {
    background: var(--primary);
    color: white;
    padding: .9rem 1.2rem;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: .9rem;
}

.spread-table td {
    padding: .85rem 1.2rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .92rem;
    color: var(--text-dark);
}

.spread-table tr:nth-child(even) td { background: rgba(123,102,153,.04); }
.spread-table tr:hover td { background: rgba(123,102,153,.08); }

/* ── Mini Card (eski wave card variant) ── */
.mini-card {
    background: white;
    border: 1px solid rgba(184,134,11,.12);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

.mini-card i  { font-size: 2rem; color: var(--primary); margin-bottom: .8rem; display: block; }
.mini-card h4 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: .4rem; }
.mini-card p  { font-size: .85rem; color: var(--text-muted); }

/* ── Card Meaning (eski wave) ── */
.card-meaning {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card-meaning .card-icon {
    width: 48px; height: 48px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.3rem; flex-shrink: 0;
}

.card-meaning h4 { font-size: 1rem; margin-bottom: .3rem; color: var(--text-dark); }
.card-meaning p  { font-size: .87rem; color: var(--text-muted); margin: 0; }

/* ── Quote Block (eski wave) ── */
.quote-block {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.quote-block p { font-style: italic; color: var(--text-muted); margin: 0; font-size: 1.05rem; line-height: 1.7; }
.quote-block cite { display: block; font-weight: 700; margin-top: .8rem; font-size: .9rem; font-style: normal; }

/* ── a.cta-inline (eski wave — link olarak kullanılan CTA) ── */
a.cta-inline {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 2rem;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 8px 25px rgba(184,134,11,.3);
    transition: transform .3s, box-shadow .3s;
    text-decoration: none !important;
    background: var(--gold-gradient) !important;
    color: white !important;
}

a.cta-inline:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(184,134,11,.45);
}

/* ── Breadcrumb (eski wave) ── */
.breadcrumb { padding: 1rem 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 .5rem; }

/* ============================================================
   ESKI SAYFA YAPISI UYUMLULUK KURALLARI
   blog-container, main-blog-content, blog-sidebar gibi
   eski sınıf adlarını kullanan sayfaları düzeltir.
   ============================================================ */

/* Eski layout container → article-layout gibi davransın */
.blog-container {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Eski makale gövdesi */
.main-blog-content {
    line-height: 1.9;
    color: #3a3a3a;
    font-size: 1.04rem;
}
.main-blog-content h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}
.main-blog-content h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-dark);
    margin: 1.8rem 0 .75rem;
}
.main-blog-content p { margin-bottom: 1.35rem; }
.main-blog-content a {
    color: var(--primary);
    text-underline-offset: 3px;
}
.main-blog-content a:hover { color: var(--accent); }

/* Eski hero yapısı — hero class'lı header'lar */
header.hero {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}
header.hero .hero-content { max-width: 900px; padding: 0 1.5rem; }
header.hero h1 { color: white !important; line-height: 1.25; }
header.hero .hero-tagline { color: rgba(255,255,255,.85) !important; }
header.hero p { color: rgba(255,255,255,.78) !important; }

/* Eski sidebar */
.blog-sidebar {
    border-radius: 18px !important;
    border: 1px solid rgba(184,134,11,.12) !important;
    background: white !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.06) !important;
}

/* Eski FAQ yapısı (div.faq-item h4 pattern) */
.faq-item h4 {
    padding: 1.1rem 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    background: rgba(184,134,11,.04);
    font-size: .98rem;
    margin: 0;
    border-radius: 14px 14px 0 0;
}
.faq-item p {
    padding: .9rem 1.4rem 1.3rem;
    font-size: .95rem;
    color: #444;
    line-height: 1.8;
    margin: 0;
}

/* Buton renk tutarlılığı — inline style override'ları temizle */
/* WhatsApp buton renk sızması önleme */
a.cta-button[style*="25D366"] {
    background: var(--gold-gradient) !important;
}

/* ── Responsive eski yapı ── */
@media (max-width: 968px) {
    .blog-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
        padding: 3rem 5% !important;
    }
    .blog-sidebar { position: static !important; width: 100% !important; }
    .main-blog-content { width: 100% !important; }
}
@media (max-width: 768px) {
    header.hero { padding-top: 110px !important; min-height: 45vh !important; }
    header.hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem) !important; }
    .main-blog-content h2 { font-size: 1.4rem; }
}

/* ============================================================
   ANASAYFA ELEGANSlIĞINI BLOG SAYFALARINA TAŞI
   Hover efektleri, gölgeler, geçişler
   ============================================================ */

/* Article body linkleri — gold hover efekti */
.article-body a,
.main-blog-content a {
    transition: color .2s;
}

/* Info/highlight kutularına hover efekti */
.info-box,
.highlight-box,
.warning-box,
.check-box {
    transition: box-shadow .25s, transform .25s;
}
.info-box:hover,
.highlight-box:hover {
    box-shadow: 0 6px 24px rgba(123,102,153,.12);
    transform: translateY(-2px);
}

/* Sidebar linklerine hover ok animasyonu */
.sidebar-links li a,
.blog-sidebar a {
    transition: color .2s, transform .2s;
    display: inline-flex;
    align-items: center;
}
.sidebar-links li a:hover,
.blog-sidebar a:hover {
    transform: translateX(4px);
    color: var(--primary) !important;
}

/* CTA butonları — anasayfayla eşit hover */
.cta-btn-white:hover,
.sidebar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

/* Tablo başlık row'u rafine et */
.data-table thead tr,
.spread-table thead tr {
    background: linear-gradient(90deg, var(--primary), #8a6a9a) !important;
}

/* Article hero'ya scrolling glass efekti */
header.hero,
.article-hero {
    position: relative;
    overflow: hidden;
}
header.hero::before,
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Breadcrumb bar şıklaştır */
.breadcrumb-bar {
    background: linear-gradient(90deg, rgba(123,102,153,.04), transparent) !important;
}

/* FAQ item hover */
.faq-item:hover {
    border-color: rgba(123,102,153,.3) !important;
    box-shadow: 0 4px 18px rgba(123,102,153,.1) !important;
}

/* Related article links */
.sidebar-links li + li {
    border-top: 1px solid rgba(184,134,11,.07);
    padding-top: .6rem;
}

/* Print'te gereksiz elementleri gizle */
@media print {
    header.hero,
    .article-hero,
    .article-sidebar,
    .blog-sidebar,
    .whatsapp-float,
    .cta-inline,
    nav,
    footer { display: none !important; }
    .article-layout,
    .blog-container { display: block !important; }
}
