*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font-body, system-ui, sans-serif); scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.prose { line-height: 1.85; font-size: 18px; color: #1e293b; }
.prose h2 { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 48px 0 18px; letter-spacing: -0.02em; }
.prose h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 36px 0 14px; }
.prose p { margin-bottom: 22px; }
.prose ul, .prose ol { margin: 16px 0 22px 28px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 16px 24px; margin: 28px 0; background: var(--accent-light); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-style: italic; font-size: 20px; }
.prose code { background: #f1f5f9; padding: 2px 7px; border-radius: 5px; font-size: 15px; font-family: monospace; color: var(--accent); }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 24px; border-radius: var(--radius-lg); overflow-x: auto; margin: 28px 0; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.prose th { background: #f8fafc; font-weight: 600; padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
.prose td { padding: 12px 16px; border: 1px solid var(--border); }
.prose img { border-radius: var(--radius-lg); margin: 28px 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ===== ILETISIM FORMU (sadece iletisim sayfasi, izole) ===== */
.contact-form { max-width: 100%; margin: 24px 0 40px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.contact-form .form-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.contact-form .form-row .form-group { margin-bottom: 0; }
.contact-form label { font-size: 14px; font-weight: 600; color: var(--text, #1A1A1A); margin-bottom: 7px; }
.contact-form label .required { color: var(--accent, #F97316); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border, #E2E8F0); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; color: var(--text, #1A1A1A); transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent, #F97316); box-shadow: 0 0 0 3px rgba(249,115,22,0.12); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form small { display: block; margin-top: 6px; color: #888; font-size: 12px; }
.contact-form .btn-primary, .contact-form button[type="submit"] { background: var(--accent, #F97316); color: #fff; border: none; padding: 13px 32px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px; transition: opacity .15s; }
.contact-form .btn-primary:hover, .contact-form button[type="submit"]:hover { opacity: 0.88; }
@media (max-width: 640px) { .contact-form .form-row { grid-template-columns: 1fr; gap: 0; } .contact-form .form-row .form-group { margin-bottom: 18px; } }


/* STATIKOS_CORPORATE_UI_V1_START */

/*
  Mariobet corporate UI v1
  Veri dinamik kalır:
  - CTA yazısı/linki panelden gelir.
  - Renkler /api/theme-css içindeki --primary, --accent, --bg, --bg-white, --text, --border değişkenlerinden gelir.
  - Header/footer/sidebar/content yapısı bozulmaz.
*/

body {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent, #f97316) 10%, transparent), transparent 34rem),
    linear-gradient(180deg, color-mix(in srgb, var(--bg, #f8fafc) 86%, #fff), var(--bg, #f8fafc));
}

body > header,
.site-header,
.main-header,
.header-shell {
  background: rgba(255,255,255,.92);
  color: var(--text, #111827);
  border-bottom: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
}

body > header nav a,
.site-header nav a,
.main-header nav a {
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

body > header nav a:hover,
.site-header nav a:hover,
.main-header nav a:hover {
  color: var(--text, #111827);
  background: color-mix(in srgb, var(--accent, #f97316) 10%, transparent);
}

a[class*="cta"],
button[class*="cta"],
.cta-button,
.header-cta,
.sidebar-widget a[style*="background"] {
  border-radius: var(--cta-radius, 999px) !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent, #f97316) 28%, transparent);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

a[class*="cta"]:hover,
button[class*="cta"]:hover,
.cta-button:hover,
.header-cta:hover,
.sidebar-widget a[style*="background"]:hover {
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(1.02);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--accent, #f97316) 34%, transparent);
}

.post-card,
.card,
.archive-card,
.sidebar-widget,
.article-card,
.home-section,
.content-card {
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 84%, transparent);
  border-radius: 24px;
  background: var(--bg-white, #fff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.post-card,
.archive-card,
.article-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.post-card:hover,
.archive-card:hover,
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
  border-color: color-mix(in srgb, var(--accent, #f97316) 28%, var(--border, #e5e7eb));
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--primary, #16213e);
  letter-spacing: -0.018em;
}

.prose a {
  color: var(--accent, #f97316);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose blockquote {
  border-left: 4px solid var(--accent, #f97316);
  background: color-mix(in srgb, var(--accent, #f97316) 7%, var(--bg-white, #fff));
  border-radius: 0 var(--radius-lg, 16px) var(--radius-lg, 16px) 0;
}

.sidebar {
  gap: 22px;
}

.sidebar-widget {
  padding: 22px;
}

.sidebar-title {
  color: var(--primary, #16213e) !important;
}

.sidebar-post,
.sidebar-cat,
.sidebar-author {
  border-color: color-mix(in srgb, var(--border, #e5e7eb) 75%, transparent) !important;
}

.sidebar-tag,
.footer-tag {
  border-radius: var(--cta-radius, 999px) !important;
}

.site-footer {
  margin-top: 56px;
}

.footer-top {
  gap: clamp(24px, 4vw, 52px) !important;
}

.footer-logo-img {
  max-width: 180px;
  object-fit: contain;
}

.footer-col-title {
  letter-spacing: .02em;
  text-transform: uppercase;
}

.footer-link,
.footer-bottom-links a {
  transition: color .18s ease, transform .18s ease;
}

.footer-link:hover,
.footer-bottom-links a:hover {
  transform: translateX(2px);
}

.main-grid,
.article-grid {
  gap: clamp(24px, 4vw, 44px) !important;
}

@media (max-width: 768px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  a[class*="cta"],
  button[class*="cta"],
  .cta-button,
  .header-cta,
  .sidebar-widget a[style*="background"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-widget {
    padding: 18px;
  }
}

/* STATIKOS_CORPORATE_UI_V1_END */


/* STATIKOS_RESPONSIVE_UI_V1_START */

/* Genel taşma güvenliği */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img,
video,
svg,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

pre,
code {
  max-width: 100%;
}

pre {
  overflow-x: auto;
}

table {
  max-width: 100%;
}

.prose table,
.article-content table,
.content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Container her ekranda güvenli kalsın */
.container {
  width: min(100% - 32px, var(--container-w, 1200px));
  margin-left: auto;
  margin-right: auto;
}

/* Büyük tablet */
@media (max-width: 1180px) {
  .main-grid,
  .article-grid {
    gap: 28px !important;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr !important;
  }
}

/* Tablet ve küçük laptop */
@media (max-width: 1024px) {
  .article-grid,
  .main-grid {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    position: static !important;
    top: auto !important;
  }

  .home-hero,
  .hero-grid,
  .featured-grid,
  .editor-grid,
  .posts-grid {
    grid-template-columns: 1fr !important;
  }

  .post-card,
  .archive-card,
  .article-card,
  .sidebar-widget {
    border-radius: 22px;
  }
}

/* Mobil yatay / büyük telefon */
@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, var(--container-w, 1200px));
  }

  body > header,
  .site-header,
  .main-header,
  .header-shell {
    position: relative;
  }

  body > header nav,
  .site-header nav,
  .main-header nav {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body > header nav::-webkit-scrollbar,
  .site-header nav::-webkit-scrollbar,
  .main-header nav::-webkit-scrollbar {
    display: none;
  }

  body > header nav a,
  .site-header nav a,
  .main-header nav a {
    white-space: nowrap;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
    padding-top: 40px !important;
    padding-bottom: 28px !important;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
  }

  .post-card__footer,
  .card-footer,
  .article-meta,
  .post-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-widget a[style*="background"] {
    width: 100%;
  }
}

/* Telefon */
@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container-w, 1200px));
  }

  h1,
  .prose h1 {
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1.08 !important;
  }

  h2,
  .prose h2 {
    font-size: clamp(23px, 7vw, 32px) !important;
    line-height: 1.15 !important;
  }

  h3,
  .prose h3 {
    font-size: clamp(19px, 5.8vw, 26px) !important;
  }

  .post-card,
  .archive-card,
  .article-card,
  .sidebar-widget,
  .content-card {
    border-radius: 20px;
  }

  .sidebar-widget {
    padding: 18px;
  }

  .footer-logo-img {
    max-width: 150px;
  }

  .prose,
  .article-content,
  .content {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* Küçük telefon */
@media (max-width: 420px) {
  .container {
    width: min(100% - 20px, var(--container-w, 1200px));
  }

  .post-card,
  .archive-card,
  .article-card,
  .sidebar-widget,
  .content-card {
    border-radius: 18px;
  }

  a[class*="cta"],
  button[class*="cta"],
  .cta-button,
  .header-cta,
  .sidebar-widget a[style*="background"] {
    min-height: 46px;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* STATIKOS_RESPONSIVE_UI_V1_END */

