/*
Theme Name: AIBundle Türkiye
Theme URI: https://aibundle.tech/tr
Author: AIBundle Ekibi
Author URI: https://aibundle.tech
Description: Modern, responsive yapay zeka ve teknoloji haber teması - Türkçe karakter ve tipografi desteği ile
Version: 1.2.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aibundle-tr
*/

/* ==========================================================================
   CSS DEĞİŞKENLERİ (Variables)
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --radius: 12px;
    --radius-sm: 8px;
    
    /* Türkçe Tipografi Değişkenleri */
    --font-turkish: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-turkish-serif: 'Merriweather', 'Georgia', 'Times New Roman', serif;
    --line-height-tr: 1.75;
    --line-height-tr-tight: 1.4;
    --letter-spacing-tr: 0.01em;
}

/* ==========================================================================
   TEMEL SIFIRLAMA (Base Reset)
   ========================================================================== */

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

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-turkish);
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Türkçe karakterler için font smoothing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Türkçe Karakter Desteği - Özel Font Yükleme */
@font-face {
    font-family: 'Inter';
    font-display: swap;
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ==========================================================================
   AÇIK MOD (Light Mode - Varsayılan)
   ========================================================================== */

html.light,
html.light body {
    background-color: #ffffff !important;
    color: #334155 !important;
}

/* ==========================================================================
   KARANLIK MOD - ANA ÜSTÜNE YAZMA (Dark Mode)
   ========================================================================== */

html.dark {
    background-color: #0f172a !important;
    color-scheme: dark !important;
}

html.dark body {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

/* Karanlık Mod - Ana Wrapper */
html.dark .min-h-screen,
html.dark .flex-grow,
html.dark #page,
html.dark .site,
html.dark main,
html.dark .flex.flex-col {
    background-color: #0f172a !important;
}

/* Karanlık Mod - Header */
html.dark header,
html.dark header.sticky,
html.dark .sticky.top-0,
html.dark header.bg-white {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html.dark header a,
html.dark header span,
html.dark header button,
html.dark nav a,
html.dark nav span {
    color: #e2e8f0 !important;
}

html.dark header a:hover,
html.dark nav a:hover {
    color: #60a5fa !important;
}

html.dark header .text-navy-900,
html.dark header .text-gray-700 {
    color: #e2e8f0 !important;
}

/* Karanlık Mod - Navigasyon Border */
html.dark header .border-t,
html.dark header .border-gray-100,
html.dark nav.border-t {
    border-color: #334155 !important;
}

/* Karanlık Mod - Hero Bölümü */
html.dark section,
html.dark .bg-gradient-to-b,
html.dark .from-slate-100,
html.dark .to-white,
html.dark section.bg-gradient-to-b {
    background: #0f172a !important;
    background-image: none !important;
}

/* Karanlık Mod - Tüm Beyaz Arka Planlar */
html.dark .bg-white,
html.dark div.bg-white,
html.dark article.bg-white,
html.dark aside.bg-white,
html.dark section.bg-white {
    background-color: #1e293b !important;
}

/* Karanlık Mod - Gri Arka Planlar */
html.dark .bg-gray-50,
html.dark .bg-gray-100,
html.dark .bg-slate-100 {
    background-color: #334155 !important;
}

/* Karanlık Mod - Kartlar ve Kutular */
html.dark .shadow-lg,
html.dark .shadow-md,
html.dark .shadow-xl,
html.dark .rounded-2xl,
html.dark .rounded-xl,
html.dark .rounded-lg,
html.dark article,
html.dark .post-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Karanlık Mod - Sidebar ve Widget'lar */
html.dark .widget,
html.dark aside,
html.dark .sidebar,
html.dark #secondary,
html.dark .lg\:col-span-4 > div {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

/* Karanlık Mod - Başlıklar */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6,
html.dark .font-bold,
html.dark .font-extrabold,
html.dark .font-semibold,
html.dark .text-navy-900,
html.dark .text-3xl,
html.dark .text-2xl,
html.dark .text-xl {
    color: #f1f5f9 !important;
}

/* Karanlık Mod - Gövde Metni */
html.dark p,
html.dark span,
html.dark li,
html.dark td,
html.dark th,
html.dark label,
html.dark .text-gray-700,
html.dark .text-gray-600,
html.dark .text-gray-500,
html.dark .text-sm,
html.dark .text-xs {
    color: #cbd5e1 !important;
}

html.dark .text-gray-400,
html.dark .text-gray-300 {
    color: #94a3b8 !important;
}

/* Karanlık Mod - Kenarlar */
html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-gray-300,
html.dark .border-t,
html.dark .border-b,
html.dark .border-l,
html.dark .border-r,
html.dark .border {
    border-color: #334155 !important;
}

/* Karanlık Mod - Input Alanları */
html.dark input,
html.dark textarea,
html.dark select,
html.dark input.bg-gray-100,
html.dark .bg-gray-100 input {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #64748b !important;
}

/* Karanlık Mod - Linkler */
html.dark a {
    color: #cbd5e1 !important;
}

html.dark a:hover {
    color: #60a5fa !important;
}

html.dark .text-primary,
html.dark a.text-primary {
    color: #60a5fa !important;
}

/* Karanlık Mod - Butonlar */
html.dark .bg-primary,
html.dark button.bg-primary {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

html.dark .bg-primary:hover {
    background-color: #1d4ed8 !important;
}

/* Karanlık Mod - Kategori Rozetleri */
html.dark .category-badge,
html.dark span.bg-blue-600,
html.dark span.bg-cyan-600,
html.dark span.bg-emerald-600,
html.dark span.bg-violet-600,
html.dark span.bg-pink-600,
html.dark span.bg-orange-600 {
    opacity: 1 !important;
}

/* Karanlık Mod - Popüler Yazılar */
html.dark .popular-post,
html.dark .popular-posts a,
html.dark a.popular-post {
    color: #e2e8f0 !important;
}

html.dark .popular-post:hover,
html.dark a.popular-post:hover {
    background-color: #334155 !important;
}

/* Karanlık Mod - Bülten */
html.dark .newsletter-widget,
html.dark [class*="newsletter"],
html.dark .bg-gradient-to-br {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%) !important;
}

/* Karanlık Mod - Dropdown Menüler */
html.dark .nav-dropdown-menu,
html.dark .lang-dropdown {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html.dark .nav-dropdown-menu a,
html.dark .lang-dropdown a {
    color: #e2e8f0 !important;
}

html.dark .nav-dropdown-menu a:hover,
html.dark .lang-dropdown a:hover {
    background-color: #334155 !important;
    color: #60a5fa !important;
}

/* Karanlık Mod - Mobil Menü */
html.dark #mobileMenu,
html.dark #mobileMenu.flex {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html.dark #mobileMenu a,
html.dark #mobileMenu span,
html.dark #mobileMenu button {
    color: #e2e8f0 !important;
}

html.dark #mobileMenu a:hover {
    background-color: #334155 !important;
}

/* Karanlık Mod - Breadcrumb (Ekmek Kırıntısı) */
html.dark .breadcrumb,
html.dark nav.breadcrumb {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

html.dark .breadcrumb a {
    color: #94a3b8 !important;
}

html.dark .breadcrumb .current {
    color: #e2e8f0 !important;
}

/* Karanlık Mod - Makale İçeriği */
html.dark .article__content,
html.dark .article__content p,
html.dark .article__content li {
    color: #cbd5e1 !important;
}

html.dark .article__content a {
    color: #60a5fa !important;
}

html.dark .article__content blockquote {
    background-color: #1e293b !important;
    border-color: #3b82f6 !important;
    color: #94a3b8 !important;
}

html.dark .article__content code {
    background-color: #334155 !important;
    color: #f472b6 !important;
}

html.dark .article__content pre {
    background-color: #0f172a !important;
}

/* Karanlık Mod - Yazar Kutusu */
html.dark .author-box {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    border-left-color: #60a5fa !important;
}

/* Karanlık Mod - Yorumlar */
html.dark .comments-section,
html.dark .comment,
html.dark #comments {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

/* Karanlık Mod - İlgili Yazılar */
html.dark .related-posts {
    border-color: #334155 !important;
}

/* Karanlık Mod - Gölgeler */
html.dark .shadow-md,
html.dark .shadow-lg,
html.dark .shadow-xl,
html.dark .shadow-2xl {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Karanlık Mod - Kaydırma Çubuğu */
html.dark ::-webkit-scrollbar-track {
    background: #1e293b !important;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #475569 !important;
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b !important;
}

/* Karanlık Mod - Reklam Alanları */
html.dark [class*="REKLAM"],
html.dark [class*="Ad Zone"],
html.dark .border-dashed {
    opacity: 0.3 !important;
}

/* Karanlık Mod - Overlay Elementleri */
html.dark .bg-gradient-to-t,
html.dark .from-navy-950,
html.dark .via-navy-900\/60 {
    background: linear-gradient(to top, #020617, rgba(15, 23, 42, 0.8), transparent) !important;
}

/* Karanlık Mod - Footer (Zaten Karanlık) */
footer {
    background-color: #0f172a !important;
}

/* ==========================================================================
   KONTEYNER VE DÜZEN (Container & Layout)
   ========================================================================== */

.container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.content-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 40px 0 !important;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 340px !important;
        gap: 50px !important;
    }
}

/* ==========================================================================
   HEADER VE NAVİGASYON
   ========================================================================== */

.nav-dropdown-container {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px; /* Türkçe menü öğeleri için genişletildi */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.nav-dropdown-container:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    /* Türkçe kelimeler için satır yüksekliği */
    line-height: var(--line-height-tr-tight);
}

.nav-dropdown-menu a:hover {
    background: #f1f5f9;
    color: #2563eb;
    padding-left: 24px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px; /* Türkçe/English için genişletildi */
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    z-index: 1000;
    margin-top: 10px;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover {
    background: #334155;
}

#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenu.flex {
    display: flex !important;
}

/* ==========================================================================
   FOOTER STİLLERİ
   ========================================================================== */

footer h4 {
    color: #ffffff !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

footer p {
    color: #cbd5e1 !important;
    line-height: var(--line-height-tr) !important;
}

footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer ul li {
    margin-bottom: 0.75rem !important;
}

footer ul li a {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

footer ul li a:hover {
    color: #60a5fa !important;
    padding-left: 4px !important;
}

/* ==========================================================================
   BREADCRUMB (Ekmek Kırıntısı Navigasyonu)
   ========================================================================== */

nav.breadcrumb,
.breadcrumb {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
}

.breadcrumb > .container,
.breadcrumb .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 1rem 20px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

.breadcrumb a {
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    transition: color 0.2s !important;
}

.breadcrumb a:hover {
    color: #2563eb !important;
}

.breadcrumb .separator {
    color: #94a3b8 !important;
    margin: 0 10px !important;
    font-size: 0.875rem !important;
}

.breadcrumb .current {
    color: #334155 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* ==========================================================================
   MAKALE STİLLERİ (Article Styles)
   ========================================================================== */

.article__header {
    margin-bottom: 2rem !important;
}

.category-badge {
    display: inline-block !important;
    padding: 0.4rem 0.9rem !important; /* Türkçe kategoriler için padding artırıldı */
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    margin-bottom: 1rem !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
}

/* Türkçe Kategori Rozetleri */
.category-badge.cat-haberler,
.category-badge.cat-news { background-color: #2563eb !important; }
.category-badge.cat-yapay-zeka,
.category-badge.cat-ai { background-color: #7c3aed !important; }
.category-badge.cat-teknoloji,
.category-badge.cat-technology { background-color: #059669 !important; }
.category-badge.cat-incelemeler,
.category-badge.cat-reviews { background-color: #dc2626 !important; }
.category-badge.cat-rehberler,
.category-badge.cat-guides { background-color: #d97706 !important; }
.category-badge.cat-araclar,
.category-badge.cat-tools { background-color: #0891b2 !important; }
.category-badge.cat-kripto,
.category-badge.cat-crypto { background-color: #f59e0b !important; }
.category-badge.cat-blockchain { background-color: #8b5cf6 !important; }

.article__title,
h1.article__title {
    font-size: 2.25rem !important; /* Türkçe başlıklar için biraz küçültüldü */
    font-weight: 800 !important;
    line-height: 1.25 !important; /* Türkçe karakterler için artırıldı */
    color: #0f172a !important;
    margin: 0 0 1rem 0 !important;
    letter-spacing: -0.02em !important;
    /* Türkçe kelime kırılması */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.article__excerpt {
    font-size: 1.2rem !important;
    line-height: var(--line-height-tr) !important;
    color: #64748b !important;
    margin: 0 0 1.5rem 0 !important;
}

.article__meta {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    padding: 1.25rem 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    margin-top: 1.5rem !important;
}

.article__content {
    font-family: var(--font-turkish-serif) !important;
    font-size: 1.125rem !important;
    line-height: 1.9 !important; /* Türkçe okuma için optimize edildi */
    color: #334155 !important;
    letter-spacing: var(--letter-spacing-tr) !important;
}

.article__content p {
    margin: 0 0 1.75rem 0 !important;
    /* Türkçe paragraf düzeni */
    text-align: left;
    word-spacing: 0.05em;
}

.article__content h2 {
    font-family: var(--font-turkish) !important;
    font-size: 1.625rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 2.5rem 0 1rem 0 !important;
    line-height: var(--line-height-tr-tight) !important;
}

.article__content h3 {
    font-family: var(--font-turkish) !important;
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 2rem 0 0.875rem 0 !important;
    line-height: var(--line-height-tr-tight) !important;
}

.article__content a {
    color: #2563eb !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.article__content blockquote {
    margin: 2.5rem 0 !important;
    padding: 1.5rem 2rem !important;
    background-color: #f8fafc !important;
    border-left: 4px solid #2563eb !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    color: #64748b !important;
    line-height: var(--line-height-tr) !important;
}

.article__content ul,
.article__content ol {
    margin: 1.5rem 0 2rem 0 !important;
    padding-left: 1.75rem !important;
}

.article__content li {
    margin-bottom: 0.75rem !important;
    line-height: var(--line-height-tr) !important;
}

/* ==========================================================================
   SIDEBAR VE WİDGET'LAR
   ========================================================================== */

.sidebar,
#secondary {
    position: sticky !important;
    top: 100px !important;
}

.widget {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.widget-title,
.widget h3 {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #0f172a !important;
    padding-left: 12px !important;
    border-left: 4px solid #2563eb !important;
    margin: 0 0 1.25rem 0 !important;
}

/* ==========================================================================
   YAZI KARTLARI (Post Cards)
   ========================================================================== */

.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Post Kart Başlıkları - Türkçe Optimizasyonu */
.post-card h3,
.post-card .post-title {
    line-height: var(--line-height-tr-tight) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   YAZAR KUTUSU (Author Box)
   ========================================================================== */

.author-box {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #0f172a !important;
    padding: 1.75rem !important;
    margin-top: 3rem !important;
    border-radius: 0 12px 12px 0 !important;
}

.author-box__avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.author-box__name {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 0.5rem 0 !important;
}

.author-box__bio {
    font-size: 0.95rem !important;
    line-height: var(--line-height-tr) !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* ==========================================================================
   İLGİLİ YAZILAR (Related Posts)
   ========================================================================== */

.related-posts {
    margin-top: 4rem !important;
    padding-top: 2rem !important;
    border-top: 2px solid #e2e8f0 !important;
}

.section-title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    color: #0f172a !important;
    padding-left: 12px !important;
    border-left: 4px solid #2563eb !important;
    margin-bottom: 2rem !important;
}

.posts-grid {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 1.5rem !important;
}

@media (min-width: 640px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ==========================================================================
   KAYDIRMA ÇUBUĞU (Scrollbar)
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   YARDIMCI SINIFLAR (Utility Classes)
   ========================================================================== */

.line-clamp-2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.line-clamp-3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.screen-reader-text {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
}

.avatar {
    border-radius: 9999px !important;
}

/* Reklam Alanlarını Gizle */
div.flex.flex-col.items-center.justify-center.bg-gray-100.border-dashed,
div[class*="border-dashed"][class*="bg-gray-100"] {
    display: none !important;
}

/* ==========================================================================
   TÜRKÇE TİPOGRAFİ ÖZEL KURALLARI
   ========================================================================== */

/* Türkçe karakterler için özel font rendering */
html[lang="tr"],
html[lang="tr-TR"] {
    font-feature-settings: "liga" 1, "calt" 1;
}

/* Türkçe kelime kırılma kuralları */
html[lang="tr"] p,
html[lang="tr"] h1,
html[lang="tr"] h2,
html[lang="tr"] h3,
html[lang="tr"] h4,
html[lang="tr"] li,
html[lang="tr"] span {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Türkçe büyük I harfi düzeltmesi */
html[lang="tr"] {
    text-transform: none;
}

/* Türkçe uppercase düzeltmesi - İ ve I için */
html[lang="tr"] .uppercase,
html[lang="tr"] [class*="uppercase"] {
    text-transform: uppercase;
}

/* ==========================================================================
   MOBİL DUYARLI TASARIM (Mobile Responsive)
   ========================================================================== */

@media (max-width: 768px) {
    .article__title,
    h1.article__title {
        font-size: 1.625rem !important;
        line-height: 1.3 !important;
    }

    .article__excerpt {
        font-size: 1rem !important;
    }

    .article__meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .article__content {
        font-size: 1rem !important;
        line-height: 1.8 !important;
    }

    .article__content h2 {
        font-size: 1.375rem !important;
    }

    .article__content h3 {
        font-size: 1.125rem !important;
    }

    .author-box {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }

    .sidebar,
    #secondary {
        position: static !important;
        margin-top: 3rem !important;
    }

    footer .grid {
        gap: 2rem !important;
    }
    
    /* Türkçe menü öğeleri için mobil düzenleme */
    .nav-dropdown-menu {
        min-width: 200px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px !important;
    }

    .article__title {
        font-size: 1.375rem !important;
    }

    .article__content,
    .article__content p {
        font-size: 0.9375rem !important;
        line-height: 1.75 !important;
    }
    
    /* Kategori rozetleri mobilde */
    .category-badge {
        font-size: 0.65rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}

/* ==========================================================================
   WORDPRESS UYUMLULUĞU
   ========================================================================== */

.admin-bar .sidebar,
.admin-bar #secondary {
    top: 132px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .sidebar,
    .admin-bar #secondary {
        top: 146px !important;
    }
}

.wp-block-paragraph { 
    margin-bottom: 1.75rem !important; 
    line-height: var(--line-height-tr) !important;
}
.wp-block-heading { margin-top: 2rem !important; margin-bottom: 1rem !important; }
.wp-block-image { margin: 2rem 0 !important; }
.wp-block-image figcaption { font-size: 0.875rem !important; color: #64748b !important; text-align: center !important; }
.wp-block-quote { margin: 2rem 0 !important; padding: 1.5rem 2rem !important; background-color: #f8fafc !important; border-left: 4px solid #2563eb !important; }
.wp-block-separator { margin: 3rem 0 !important; border: none !important; height: 1px !important; background: linear-gradient(to right, transparent, #e2e8f0, transparent) !important; }

html.dark .wp-block-quote { background-color: #1e293b !important; }

/* Ticker Bar Fixed - SADECE MASAÜSTÜ */
@media (min-width: 768px) {
    .bg-navy-900.text-gray-300.text-xs.py-2.border-b.border-navy-800 {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
    }
    header.sticky {
        top: 36px !important;
    }
    .min-h-screen.flex.flex-col {
        padding-top: 36px !important;
    }
}

/* Mobil - Normal Akış */
@media (max-width: 767px) {
    .bg-navy-900.text-gray-300.text-xs.py-2.border-b.border-navy-800 {
        position: relative !important;
    }
    header.sticky {
        top: 0 !important;
    }
    .min-h-screen.flex.flex-col {
        padding-top: 0 !important;
    }
}

/* ========================================
   TEKİL YAZI - DUYARLI (Single Post)
   ======================================== */

/* Container */
.article .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* İçerik Grid */
.article .content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .article .content-grid {
        grid-template-columns: 1fr 350px;
    }
}

/* Makale Ana */
.article__main {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Makale Başlığı */
.article__title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .article__title {
        font-size: 2.25rem;
    }
}

/* Makale İçeriği */
.article__content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}

.article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article__content table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* Mobil Meta Düzeltmesi */
@media (max-width: 640px) {
    .article__meta {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .article__stats {
        width: 100%;
        justify-content: flex-start !important;
        gap: 1rem !important;
    }
    
    .article__footer > div {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .author-box {
        flex-direction: column !important;
        text-align: center;
    }
    
    .author-box a:first-child {
        margin: 0 auto;
    }
}

/* Karanlık Mod */
html.dark .article__title {
    color: #f1f5f9;
}

html.dark .article__content {
    color: #cbd5e1;
}

html.dark .author-box {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html.dark .article__tag {
    background-color: #334155 !important;
}

html.dark .article__share-btn {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

/* ========================================
   MOBİL DÜZELTMELERİ - AIBundle Türkiye
   ======================================== */

/* ========================================
   1. AI HİSSELERİ - Sıralama Dropdown Düzeltmesi
   ======================================== */
@media (max-width: 768px) {
    /* Sıralama dropdown container */
    .stock-filters,
    .stocks-filter,
    .ai-stocks-filters,
    [class*="stock"] [class*="filter"],
    [class*="stock"] [class*="sort"] {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    /* Sıralama dropdown butonu */
    .sort-dropdown,
    .stock-sort,
    [class*="sort-dropdown"],
    [class*="stock-sort"] {
        min-width: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Dropdown menüsü */
    .sort-dropdown-menu,
    .stock-sort-menu,
    [class*="dropdown-menu"],
    [class*="sort-menu"] {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
    }
    
    /* Kategori sekmeleri yatay kaydırma */
    .stock-categories,
    .category-tabs,
    [class*="categories"] {
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 8px !important;
    }
    
    .stock-categories::-webkit-scrollbar,
    .category-tabs::-webkit-scrollbar {
        display: none !important;
    }
}

/* ========================================
   2. MAKALE TABLOLARI - Mobil Kaydırma Düzeltmesi
   ======================================== */
@media (max-width: 768px) {
    /* Tablo wrapper - yatay kaydırma */
    .ab-table-wrapper,
    .table-wrapper,
    .wp-block-table,
    article table,
    .entry-content table,
    .post-content table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 16px 0 !important;
        border-radius: 8px !important;
    }
    
    /* Kaydırma için minimum tablo genişliği */
    .ab-table,
    article table,
    .entry-content table,
    .post-content table {
        min-width: 500px !important;
        font-size: 13px !important;
    }
    
    /* Mobilde daha küçük padding */
    .ab-table th,
    .ab-table td,
    article table th,
    article table td {
        padding: 10px 12px !important;
        white-space: nowrap !important;
    }
    
    /* Kaydırma ipucu göstergesi */
    .ab-table-wrapper::after {
        content: '← kaydır →' !important;
        display: block !important;
        text-align: center !important;
        font-size: 11px !important;
        color: #9ca3af !important;
        padding: 8px 0 4px !important;
    }
}

/* ========================================
   3. HEADER TICKER - Mobil Düzeltmesi
   ======================================== */
@media (max-width: 768px) {
    /* Header ticker container */
    .stock-ticker,
    .ticker-wrapper,
    .header-ticker,
    [class*="ticker"] {
        width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Ticker öğeleri */
    .ticker-item,
    .stock-ticker-item,
    [class*="ticker-item"] {
        padding: 0 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    
    /* Ticker kaydırma animasyon alanı */
    .ticker-scroll,
    .ticker-track,
    [class*="ticker-scroll"],
    [class*="ticker-track"] {
        display: flex !important;
        width: max-content !important;
    }
    
    /* HİSSELER rozeti */
    .stocks-badge,
    .ticker-badge,
    [class*="stocks-badge"] {
        flex-shrink: 0 !important;
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
    
    /* Fiyat gösterimi */
    .ticker-price,
    .stock-price,
    [class*="price"] {
        font-size: 12px !important;
    }
    
    /* Yüzde değişimi */
    .ticker-change,
    .stock-change,
    [class*="change"] {
        font-size: 11px !important;
        padding: 2px 6px !important;
    }
}

/* ========================================
   4. YAZAR SAYFASI SAYFALAMA - Yatay Düzeltme
   ======================================== */
@media (max-width: 768px) {
    /* Sayfalama container */
    .pagination,
    .page-numbers,
    .nav-links,
    .author-pagination,
    [class*="pagination"] {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    /* Sayfalama öğeleri */
    .pagination a,
    .pagination span,
    .page-numbers a,
    .page-numbers span,
    .nav-links a,
    .nav-links span,
    [class*="pagination"] a,
    [class*="pagination"] span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        flex-direction: row !important;
    }
    
    /* Aktif sayfa */
    .pagination .current,
    .page-numbers.current,
    [class*="pagination"] .current,
    [class*="pagination"] .active {
        background: #3b82f6 !important;
        color: white !important;
    }
    
    /* Önceki/Sonraki butonları */
    .pagination .prev,
    .pagination .next,
    .nav-links .prev,
    .nav-links .next,
    [class*="pagination"] .prev,
    [class*="pagination"] .next {
        padding: 0 12px !important;
    }
}

/* ========================================
   5. GENEL MOBİL İYİLEŞTİRMELERİ
   ======================================== */
@media (max-width: 768px) {
    /* Body'de yatay taşmayı engelle */
    body {
        overflow-x: hidden !important;
    }
    
    /* Taşan container'ları düzelt */
    .container,
    .wrapper,
    main,
    article,
    .content {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Dropdown/Select elementleri */
    select,
    .select-wrapper,
    [class*="select"] {
        max-width: 100% !important;
    }
    
    /* Flex container'ları düzelt */
    .flex-row,
    [class*="flex"] {
        flex-wrap: wrap !important;
    }
}

/* ========================================
   6. AI HİSSELERİ SAYFASI ÖZEL DÜZELTMELERİ
   ======================================== */
@media (max-width: 768px) {
    /* AI Hisseleri header alanı */
    .ai-stocks-header,
    [class*="stocks-header"] {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    /* Filtre satırı */
    .filter-row,
    .stocks-controls,
    [class*="filter-row"],
    [class*="controls"] {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    
    /* Arama input */
    .stock-search,
    [class*="search"] input {
        width: 100% !important;
    }
    
    /* Sıralama butonu - tam genişlik */
    .sort-button,
    .sort-trigger,
    [class*="sort"] button {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    /* Açıkken dropdown */
    .sort-dropdown.open .sort-menu,
    .sort-dropdown.active .sort-menu,
    [class*="dropdown"].open [class*="menu"],
    [class*="dropdown"].active [class*="menu"] {
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

/* ========================================
   7. TÜRKÇE SEO VE ERİŞİLEBİLİRLİK
   ======================================== */

/* Meta description için optimize edilmiş font boyutu */
.meta-description,
.excerpt,
.post-excerpt {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #64748b !important;
}

/* Türkçe arama sonuçları */
.search-results .post-title,
.search-results h2 {
    line-height: var(--line-height-tr-tight) !important;
}

/* Türkçe form alanları */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    font-family: var(--font-turkish) !important;
}

/* Placeholder Türkçe karakter desteği */
::placeholder {
    font-family: var(--font-turkish) !important;
}

/* Focus durumları - erişilebilirlik */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px !important;
}

/* Skip link - erişilebilirlik */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 100000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   8. BÜLTEN VE FORM STİLLERİ
   ======================================== */

.newsletter-form input[type="email"] {
    font-family: var(--font-turkish) !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    width: 100% !important;
}

.newsletter-form button {
    font-family: var(--font-turkish) !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.newsletter-form button:hover {
    background: var(--primary-hover) !important;
}

/* ========================================
   9. TÜRKÇE TARİH VE ZAMAN FORMATLARI
   ======================================== */

.post-date,
.article__date,
time,
.date {
    font-feature-settings: "tnum" 1;
    letter-spacing: 0.02em;
}

/* ========================================
   10. PRINT STİLLERİ (Yazdırma)
   ======================================== */

@media print {
    header,
    footer,
    .sidebar,
    #secondary,
    .newsletter-widget,
    .related-posts,
    .share-buttons,
    .comments-section {
        display: none !important;
    }
    
    .article__content {
        font-size: 12pt !important;
        line-height: 1.5 !important;
        color: black !important;
    }
    
    .article__title {
        font-size: 18pt !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    body {
        background: white !important;
    }
}
pre[class*="language-"] {
    background: #1e1e1e !important;
    border-radius: 8px !important;
    padding: 20px !important;
    overflow-x: auto !important;
    border-left: 4px solid #007acc !important;
}

code[class*="language-"] {
    color: #d4d4d4 !important;
    font-family: 'Fira Code', Consolas, monospace !important;
    font-size: 14px !important;
}