/* === GLYCON BLOG DARK THEME OVERRIDES ===
   Ana site CSS'ini override eder.
   theme.php'deki inline <style> blogunundan tasindi.
   Harici dosya olarak erken yuklenir, FOUC onlenir.
   ============================================ */

/* Base - dark background only for blog content area */
.g-blog-main,
.g-article-main,
.g-blog-body .g-blog-main,
.g-blog-body .g-article-main {
  background: #0c1222 !important;
  color: #e2e8f0 !important;
}

/* Hero - Gradient background */
.g-blog-hero {
  background: linear-gradient(180deg, #111827 0%, #0c1222 100%) !important;
  border-bottom: 1px solid rgba(99,102,241,0.15) !important;
}

.g-blog-hero-title {
  background: linear-gradient(135deg, #a5b4fc 0%, #fbbf24 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.g-blog-hero-desc {
  color: #94a3b8 !important;
}

.g-blog-hero-breadcrumb { color: #94a3b8 !important; }
.g-blog-hero-breadcrumb a { color: #a5b4fc !important; }

/* Search */
.g-blog-search {
  background: rgba(30,41,59,0.7) !important;
  border: 1px solid #334155 !important;
  backdrop-filter: blur(8px);
}
.g-blog-search-input {
  color: #f1f5f9 !important;
  background: transparent !important;
}
.g-blog-search-btn {
  background: #6366f1 !important;
  color: #fff !important;
}

/* Categories bar */
.g-blog-categories {
  background: #111827 !important;
  border-bottom: 1px solid #1e293b !important;
}
.g-blog-category-tag {
  background: rgba(30,41,59,0.6) !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}
.g-blog-category-tag:hover {
  background: rgba(99,102,241,0.15) !important;
  border-color: #6366f1 !important;
  color: #a5b4fc !important;
}
.g-blog-category-tag.g-active {
  background: #6366f1 !important;
  border-color: #6366f1 !important;
  color: #fff !important;
}

/* Articles section */
.g-blog-articles {
  background: #0c1222 !important;
}

/* Section title */
.g-blog-section-title {
  color: #f1f5f9 !important;
  border-bottom-color: #6366f1 !important;
}
.g-blog-count { color: #64748b !important; }

/* Article cards */
.g-blog-card {
  background: #151d2e !important;
  border: 1px solid #1e293b !important;
  color: #e2e8f0 !important;
}
.g-blog-card:hover {
  border-color: #334155 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
}
.g-blog-card-title a { color: #f1f5f9 !important; }
.g-blog-card-title a:hover { color: #a5b4fc !important; }
.g-blog-card-excerpt { color: #94a3b8 !important; }
.g-blog-card-meta { color: #64748b !important; }
.g-blog-card-category {
  background: rgba(99,102,241,0.12) !important;
  color: #a5b4fc !important;
}

/* Featured card */
.g-blog-featured {
  background: #0c1222 !important;
}
.g-blog-featured-card {
  background: #151d2e !important;
  border: 1px solid #1e293b !important;
}
.g-blog-featured-badge {
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  color: #fff !important;
}
.g-blog-featured-title a { color: #f1f5f9 !important; }
.g-blog-featured-title a:hover { color: #a5b4fc !important; }
.g-blog-featured-excerpt { color: #94a3b8 !important; }
.g-blog-featured-meta { color: #64748b !important; }

/* Sidebar */
.g-blog-sidebar-widget,
.g-article-sidebar-widget {
  background: #151d2e !important;
  border: 1px solid #1e293b !important;
}
.g-blog-sidebar-title,
.g-article-sidebar-title {
  color: #f1f5f9 !important;
  border-bottom-color: #1e293b !important;
}
.g-blog-sidebar-item,
.g-article-sidebar-item {
  color: #cbd5e1 !important;
  border-bottom-color: rgba(30,41,59,0.6) !important;
}
.g-blog-sidebar-item:hover,
.g-article-sidebar-item:hover {
  color: #a5b4fc !important;
}
.g-blog-sidebar-item-date {
  color: #64748b !important;
}
.g-blog-sidebar-category {
  background: rgba(15,18,34,0.6) !important;
  border: 1px solid #1e293b !important;
  color: #cbd5e1 !important;
}
.g-blog-sidebar-category:hover {
  background: rgba(99,102,241,0.15) !important;
  border-color: #6366f1 !important;
  color: #a5b4fc !important;
}
.g-blog-sidebar-category-count {
  background: #1e293b !important;
  color: #94a3b8 !important;
}
.g-blog-sidebar-cta,
.g-article-sidebar-cta {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%) !important;
  border: none !important;
}
.g-blog-sidebar-cta h3,
.g-article-sidebar-cta h3 { color: #fff !important; }
.g-blog-sidebar-cta p,
.g-article-sidebar-cta p { color: #e0e7ff !important; }

/* Empty state */
.g-blog-empty {
  background: #151d2e !important;
  border: 1px solid #1e293b !important;
  color: #64748b !important;
}

/* Pagination */
.g-blog-pagination { border-top-color: #1e293b !important; }
.g-blog-pagination-btn,
.g-blog-pagination-num {
  background: #151d2e !important;
  border: 1px solid #1e293b !important;
  color: #cbd5e1 !important;
}
.g-blog-pagination-btn:hover,
.g-blog-pagination-num:hover {
  background: rgba(99,102,241,0.15) !important;
  border-color: #6366f1 !important;
  color: #a5b4fc !important;
}
.g-blog-pagination-num.g-active {
  background: #6366f1 !important;
  border-color: #6366f1 !important;
  color: #fff !important;
}

/* Breadcrumb */
.g-breadcrumb {
  background: #111827 !important;
  border-bottom: 1px solid #1e293b !important;
}
.g-breadcrumb-list a { color: #94a3b8 !important; }
.g-breadcrumb-list a:hover { color: #a5b4fc !important; }
.g-breadcrumb-list li:last-child { color: #e2e8f0 !important; }

/* Article content */
.g-article-category {
  background: rgba(99,102,241,0.12) !important;
  color: #a5b4fc !important;
}
.g-article-title { color: #f8fafc !important; }
.g-article-excerpt { color: #94a3b8 !important; }
.g-article-meta { color: #64748b !important; }

.g-article-featured-image {
  border: 1px solid #1e293b !important;
  border-radius: 16px !important;
}

/* TOC */
.g-article-toc {
  background: #151d2e !important;
  border: 1px solid #1e293b !important;
}
.g-article-toc-title { color: #f1f5f9 !important; }
.g-article-toc-item a { color: #94a3b8 !important; }
.g-article-toc-item a:hover { color: #a5b4fc !important; }

/* Article body */
.g-article-body { color: #cbd5e1 !important; line-height: 1.85 !important; }
.g-article-body h1 { display: none !important; } /* Hide duplicate H1 from content - already shown as .g-article-title */
.g-article-body h2 { color: #f1f5f9 !important; border-top-color: #1e293b !important; }
.g-article-body h3, .g-article-body h4 { color: #e2e8f0 !important; }
.g-article-body p { color: #cbd5e1 !important; }
.g-article-body a { color: #a5b4fc !important; }
.g-article-body a:hover { color: #fbbf24 !important; }
.g-article-body strong { color: #f1f5f9 !important; }
.g-article-body blockquote {
  background: #151d2e !important;
  border-left: 4px solid #6366f1 !important;
  color: #94a3b8 !important;
}
.g-article-body pre {
  background: #111827 !important;
  border: 1px solid #1e293b !important;
}
.g-article-body code {
  background: rgba(99,102,241,0.1) !important;
  color: #fbbf24 !important;
}
.g-article-body pre code {
  background: transparent !important;
  color: #e2e8f0 !important;
}
.g-article-body th {
  background: #151d2e !important;
  color: #f1f5f9 !important;
  border-color: #1e293b !important;
}
.g-article-body td {
  background: #0c1222 !important;
  color: #cbd5e1 !important;
  border-color: #1e293b !important;
}
.g-article-body li { color: #cbd5e1 !important; }
.g-article-body img { border: 1px solid #1e293b !important; }

/* Related products */
.g-article-products,
.g-article-sources {
  background: #151d2e !important;
  border: 1px solid #1e293b !important;
}
.g-article-products-title { color: #f1f5f9 !important; }
.g-article-product-card {
  background: #0c1222 !important;
  border: 1px solid #1e293b !important;
}
.g-article-product-card:hover { border-color: #6366f1 !important; }
.g-article-product-info h4 { color: #f1f5f9 !important; }
.g-article-product-info p { color: #94a3b8 !important; }

/* Share */
.g-article-share { border-top-color: #1e293b !important; }
.g-article-share-label { color: #94a3b8 !important; }

/* Author */
.g-article-author-avatar { background: #111827 !important; }
.g-article-author-name { color: #f1f5f9 !important; }
.g-article-author-desc { color: #94a3b8 !important; }

/* More articles section */
.g-article-more {
  background: #111827 !important;
  border-top: 1px solid #1e293b !important;
}
.g-article-more-title { color: #f1f5f9 !important; }

/* 404 */
.g-blog-404 h1 { color: #f1f5f9 !important; }
.g-blog-404 p { color: #94a3b8 !important; }

/* Buttons override */
.g-blog-main .g-btn-primary,
.g-article-main .g-btn-primary {
  background: #6366f1 !important;
  color: #fff !important;
}
.g-blog-main .g-btn-primary:hover,
.g-article-main .g-btn-primary:hover { background: #4f46e5 !important; }
.g-blog-main .g-btn-accent,
.g-article-main .g-btn-accent {
  background: #f59e0b !important;
  color: #0c1222 !important;
  font-weight: 600 !important;
}
.g-blog-main .g-btn-accent:hover,
.g-article-main .g-btn-accent:hover { background: #d97706 !important; }
.g-blog-main .g-btn-outline,
.g-article-main .g-btn-outline {
  background: transparent !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}
.g-blog-main .g-btn-outline:hover,
.g-article-main .g-btn-outline:hover {
  border-color: #6366f1 !important;
  color: #a5b4fc !important;
}

/* Footer separator - only for blog content area */
.g-blog-main + footer,
.g-blog-main + .g-footer {
  border-top: 1px solid #e2e8f0;
}

/* === HEADER DROPDOWN HOVER FIX ===
   Inline style="display:none" prevents FOUC but blocks
   the original CSS hover. These !important rules restore
   hover behavior on the blog pages.
   ============================================ */
.g-nav-item:hover > .g-mega-menu,
.g-nav-item:hover > .g-nav-dropdown {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.g-nav-item:hover > .g-mega-menu-horizontal {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* === HEADER/FOOTER: Ana site temasını korur (light) ===
   Header ve footer dark override yapılmaz,
   proxy sayfalarıyla aynı görünür.
   ============================================ */

/* === WISECP GLOBAL A TAG NUCLEAR RESET ===
   wisecp.css sets: a { padding:5px; border:1px solid #ccc; font-family:Titillium }
   This must be neutralized for ALL blog elements.
   ============================================ */
.g-blog-main a:not(.g-btn):not([class*="g-btn-"]):not(.g-blog-category-tag):not(.g-blog-pagination-num):not(.g-blog-pagination-btn):not(.g-article-share-btn),
.g-article-main a:not(.g-btn):not([class*="g-btn-"]):not(.g-blog-category-tag):not(.g-blog-pagination-num):not(.g-blog-pagination-btn):not(.g-article-share-btn) {
    padding: 0 !important;
    border: none !important;
    float: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: inherit !important;
    box-sizing: border-box !important;
}
.g-blog-main .g-btn,
.g-article-main .g-btn {
    padding: 12px 24px !important;
    border-radius: 8px !important;
}
.g-blog-main .g-btn-sm,
.g-article-main .g-btn-sm {
    padding: 8px 16px !important;
}
.g-blog-main .g-btn-outline,
.g-article-main .g-btn-outline {
    border: 1px solid #334155 !important;
}
nav.g-blog-pagination a.g-blog-pagination-num {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1e293b !important;
    color: #f1f5f9 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
}
nav.g-blog-pagination a.g-blog-pagination-num.g-active,
nav.g-blog-pagination a.g-blog-pagination-num:hover {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
}
nav.g-blog-pagination a.g-blog-pagination-btn {
    padding: 10px 20px !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    background: #1e293b !important;
    color: #f1f5f9 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
}
nav.g-blog-pagination a.g-blog-pagination-btn:hover {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
}
.g-article-share-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.g-blog-main .fa,
.g-blog-main [class*="fa-"],
.g-article-main .fa,
.g-article-main [class*="fa-"] {
    font-family: 'FontAwesome' !important;
}
