/* Premium — mega menü & kategori ağacı */
.mega-menu-host { position: relative; }
.nav-mega-trigger {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: none; color: inherit; font: inherit; font-weight: 700;
  cursor: pointer; padding: 0; letter-spacing: .04em;
}
.nav-mega-trigger svg { width: 14px; height: 14px; opacity: .7; }
.mega-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5); z-index: 90;
}
.mega-menu.is-open { display: block; }
.mega-menu__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; padding: 1.5rem 1rem 2rem;
}
.mega-col__title {
  display: block; font-weight: 700; color: #0f172a; text-decoration: none; margin-bottom: .25rem;
}
.mega-col__title:hover { color: #2563eb; }
.mega-col__count { font-size: .8rem; color: #64748b; display: block; }
.mega-col__link { font-size: .8rem; color: #2563eb; text-decoration: none; margin-top: .5rem; display: inline-block; }

.catalog-category-tree { margin-bottom: 1rem; }
.catalog-category-tree details { margin-bottom: .35rem; }
.catalog-category-tree summary {
  cursor: pointer; font-weight: 600; font-size: .85rem; padding: .4rem .5rem;
  border-radius: 8px; list-style: none; display: flex; justify-content: space-between;
}
.catalog-category-tree summary::-webkit-details-marker { display: none; }
.catalog-category-tree summary:hover { background: #f1f5f9; }
.catalog-category-tree a {
  display: block; padding: .35rem .75rem .35rem 1.25rem; font-size: .8rem;
  color: #475569; text-decoration: none; border-radius: 6px;
}
.catalog-category-tree a:hover, .catalog-category-tree a.is-active {
  background: #eff6ff; color: #2563eb;
}
.catalog-category-tree .cat-count { color: #94a3b8; font-weight: 500; font-size: .75rem; }

.category-card {
  display: block; padding: 1.5rem; border-radius: 16px; border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%); text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.category-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15,23,42,.08); }
.category-card h3 { margin: 0 0 .35rem; font-size: 1.1rem; color: #0f172a; }
.category-card p { margin: 0; color: #64748b; font-size: .9rem; }
.category-card__cta { display: inline-block; margin-top: .75rem; font-size: .85rem; font-weight: 600; color: #2563eb; }

.catalog-breadcrumb {
  font-size: .85rem; color: #64748b; margin-bottom: 1rem;
}
.catalog-breadcrumb a { color: #2563eb; text-decoration: none; }

.premium-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700;
  background: linear-gradient(90deg, #2563eb, #7c3aed); color: #fff; letter-spacing: .05em;
}

/* NEW MEGA MENU CSS */
.mega-menu__inner { display: flex; gap: 40px; padding: 30px; max-width: 1400px; margin: 0 auto; }
.mega-menu__section { flex: 1; }
.mega-menu__label { font-size: 14px; font-weight: bold; color: #94a3b8; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 1px; }
.mega-brands-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.mega-brand-card { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.03); padding: 12px; border-radius: 8px; text-decoration: none; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s ease; }
.mega-brand-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.mega-brand-card img { filter: brightness(0) invert(1); opacity: 0.8; transition: opacity 0.3s ease; }
.mega-brand-card:hover img { opacity: 1; }
.mega-brand-card__meta { display: flex; flex-direction: column; }
.mega-brand-card__meta strong { color: #fff; font-size: 15px; }
.mega-brand-card__meta em { color: #f97316; font-size: 12px; font-style: normal; }
.mega-groups-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.mega-group-card { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 8px; text-decoration: none; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s ease; }
.mega-group-card__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(249, 115, 22, 0.1); color: #f97316; transition: all 0.3s ease; }
.mega-group-card__meta { display: flex; flex-direction: column; }
.mega-group-card__meta strong { color: #fff; font-size: 15px; }
.mega-group-card__meta span { color: #94a3b8; font-size: 13px; }
.mega-group-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.mega-group-card:hover .mega-group-card__icon { background: #f97316; color: #fff; }
.mega-group-card:hover span { color: #f97316; }
.mega-menu__footer { padding: 15px 30px; background: rgba(0,0,0,0.2); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); }
.mega-menu__footer a { color: #f97316; font-weight: bold; text-decoration: none; }
.mega-menu__footer a:hover { color: #fff; }

/* Light Mode Global Article Overrides */
html.light article.prose-invert, html.light article.bg-slate-800, html.light .bg-slate-800, html.light .bg-slate-900 {
  background-color: #ffffff !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}
html.light article.prose-invert h1, html.light article.prose-invert h2, html.light article.prose-invert h3, html.light article.prose-invert h4, html.light article.prose-invert strong {
  color: #0f172a !important;
}
html.light article.prose-invert p, html.light article.prose-invert li, html.light article.prose-invert span, html.light .text-slate-300 {
  color: #334155 !important;
}
html.light .bg-slate-900 h3, html.light .text-white {
  color: #0f172a !important;
}
html.light .bg-slate-900 p, html.light .text-slate-400 {
  color: #475569 !important;
}

.premium-select option { background-color: #1e293b !important; color: #fff !important; }
html.light .premium-select option { background-color: #fff !important; color: #0f172a !important; }
