:root {
  --bg: #fff7f8;
  --surface: #ffffff;
  --surface-soft: #fffafb;
  --ink: #2b0a12;
  --muted: #7b4a54;
  --line: #f3d7dc;
  --line-strong: #cf6e7f;
  --brand: #c11232;
  --brand-dark: #8f0d25;
  --danger: #d10f33;
  --shadow-sm: 0 12px 30px rgba(63, 8, 17, 0.12);
  --shadow-md: 0 22px 56px rgba(63, 8, 17, 0.2);
}

* { box-sizing: border-box; }
.site-preloader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(176, 16, 42, 0.18), transparent 35%),
    radial-gradient(circle at 85% 85%, rgba(255, 120, 150, 0.1), transparent 32%),
    #0f0609;
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.site-preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  width: min(520px, 88vw);
  display: grid;
  justify-items: center;
  gap: 18px;
  position: relative;
}

.preloader-trading {
  width: min(420px, 84vw);
  height: 104px;
  border: 1px solid rgba(255, 170, 190, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(120deg, rgba(100, 12, 30, 0.5), rgba(18, 7, 11, 0.9));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 8px;
}

.preloader-trading::before {
  content: "CANLI VERI AKISI";
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 215, 224, 0.85);
}

.preloader-trading span {
  width: 11px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #ff9eb3, #c21432);
  animation: preloader-candle 1.5s cubic-bezier(.25,.1,.25,1) infinite;
  box-shadow: 0 0 14px rgba(194, 20, 50, 0.35);
}

.preloader-trading span:nth-child(1) { height: 22px; animation-delay: 0ms; }
.preloader-trading span:nth-child(2) { height: 38px; animation-delay: 120ms; }
.preloader-trading span:nth-child(3) { height: 28px; animation-delay: 240ms; }
.preloader-trading span:nth-child(4) { height: 52px; animation-delay: 360ms; }
.preloader-trading span:nth-child(5) { height: 34px; animation-delay: 480ms; }
.preloader-trading span:nth-child(6) { height: 60px; animation-delay: 600ms; }
.preloader-trading span:nth-child(7) { height: 40px; animation-delay: 720ms; }
.preloader-trading span:nth-child(8) { height: 50px; animation-delay: 840ms; }

.preloader-trading i {
  position: absolute;
  left: -25%;
  bottom: 22px;
  width: 45%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffdce4, transparent);
  animation: preloader-trend 1.8s linear infinite;
}

.preloader-bar {
  width: min(420px, 84vw);
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 171, 191, 0.18);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 26%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8ca3, #fff2f5);
  animation: preloader-slide 1.25s ease-in-out infinite;
}

@keyframes preloader-slide {
  0% { transform: translateX(-135%); }
  100% { transform: translateX(420%); }
}

@keyframes preloader-candle {
  0%, 100% { transform: scaleY(0.8); opacity: 0.7; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

@keyframes preloader-trend {
  0% { transform: translateX(0); opacity: 0.25; }
  45% { opacity: 0.95; }
  100% { transform: translateX(360%); opacity: 0.15; }
}

body { margin: 0; font-family: "Manrope", sans-serif; color: var(--ink); background: radial-gradient(circle at 94% -14%, rgba(176, 16, 42, 0.22), transparent 37%), radial-gradient(circle at -8% 25%, rgba(209, 62, 88, 0.2), transparent 34%), var(--bg); }
.container { width: min(1220px, 94vw); margin: 0 auto; }
.topbar { background: #ffffff; border-bottom: 1px solid #f0d7dc; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); }
.nav-row { min-height: 76px; display: grid; grid-template-columns: 470px 1fr; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; color: #2b0a12; text-decoration: none; }
.logo-mark { width: 360px; height: 66px; object-fit: contain; }
.menu { display: flex; gap: 24px; justify-content: center; }
.menu a { color: #3b1821; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: color 180ms ease; }
.menu a:hover,.menu a:focus-visible { color: #c11232; }

.ticker-wrap { background: linear-gradient(90deg, #f8d9de, #ffeef2); border-bottom: 1px solid #efc9cf; }
.market-strip-wrap { background: #210b10; border-bottom: 1px solid #511421; }
.market-strip { min-height: 68px; display: flex; align-items: center; gap: 10px; overflow: hidden; padding: 10px 0; scrollbar-width: thin; }
.market-loading { margin: 0; color: #f9cdd6; font-weight: 700; }
.quote-chip { flex: 0 0 auto; min-width: 190px; border-radius: 12px; border: 1px solid #6d1b2c; background: linear-gradient(180deg, #4f1220, #2a0b13); color: #ffeef2; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); }
.quote-symbol { font-weight: 800; letter-spacing: 0.01em; }
.quote-price { font-weight: 700; color: #ffe7ec; }
.quote-change { font-weight: 800; }
.quote-change.up { color: #79f0ba; }
.quote-change.down { color: #ff96ad; }
.quote-change.flat { color: #f6cad3; }
.ticker { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 16px; min-height: 56px; }
.ticker strong { background: #c11232; color: #fff8fa; border-radius: 10px; text-align: center; padding: 8px 0; font-size: 0.86rem; letter-spacing: 0.03em; text-transform: uppercase; }
.ticker-track { overflow: hidden; position: relative; }
.ticker-content { margin: 0; white-space: nowrap; color: #6c303c; font-weight: 700; animation: ticker-slide 38s linear infinite; }
@keyframes ticker-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 22px; margin-top: 22px; }
.hero-news { background: linear-gradient(130deg, rgba(60, 8, 18, 0.97), rgba(162, 18, 45, 0.93)), repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 18px); border-radius: 18px; color: #fff6f8; padding: 30px; border: 1px solid #8e1f36; box-shadow: var(--shadow-md); }
.tag { display: inline-block; background: #ffd6de; color: #6d081a; font-weight: 800; border-radius: 8px; padding: 7px 10px; }
.hero-news h1 { font-family: "Sora", sans-serif; line-height: 1.1; letter-spacing: -0.01em; font-size: clamp(1.5rem, 2.6vw, 2.45rem); margin: 12px 0; }
.hero-news p { color: #ffdbe3; margin-bottom: 18px; max-width: 68ch; }
.hero-link { display: inline-block; text-decoration: none; background: #fff; color: #6f0b1c; padding: 10px 14px; border-radius: 10px; font-weight: 800; transition: transform 180ms ease, box-shadow 180ms ease; }
.hero-link:hover,.hero-link:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(83, 12, 24, 0.32); }
.blog { margin-top: 18px; }
.category-block { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.section-head h2 { margin: 0; font-family: "Sora", sans-serif; letter-spacing: -0.01em; }
.section-head p { margin: 6px 0 16px; color: var(--muted); }
.archive-stats { margin: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid #1f1f1f; background: var(--surface-soft); font-weight: 700; color: #6f2735; white-space: nowrap; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color 180ms ease, transform 180ms ease; }
.post:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.thumb-wrap { display: block; position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #0b0b0b; }

.thumb-wrap::before {
  content: "S¸«ämer Menkul Haberler";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff4f7;
  background: linear-gradient(90deg, rgba(75, 7, 19, 0.92), rgba(176, 16, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 8px;
  pointer-events: none;
}

.article-card {
  position: relative;
}

.article-card::before {
  content: "S¸«ämer Menkul Haberler";
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff4f7;
  background: linear-gradient(90deg, rgba(75, 7, 19, 0.94), rgba(176, 16, 42, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  pointer-events: none;
}

.thumb {
  background: #0b0b0b; display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; transition: transform 220ms ease; }
.post:hover .thumb {
  background: #0b0b0b; transform: scale(1.03); }
.post time { color: var(--danger); font-weight: 800; font-size: 0.82rem; }
.post h3 { margin: 8px 0; font-size: 1.04rem; line-height: 1.35; }
.post-link { color: var(--ink); text-decoration: none; }
.post-link:hover,.post-link:focus-visible { color: var(--brand); }
.post p { color: var(--muted); margin: 0; line-height: 1.52; }
.read-more { display: inline-block; margin-top: 11px; font-weight: 800; color: var(--brand); text-decoration: none; }
.read-more:hover,.read-more:focus-visible { color: var(--brand-dark); }

.side-feed { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; height: fit-content; box-shadow: var(--shadow-sm); }
.side-feed h3 { margin: 2px 0 12px; font-family: "Sora", sans-serif; }
.side-posts { display: grid; gap: 0; }
.side-item { border-radius: 12px; padding: 12px; background: linear-gradient(135deg, #5a0d1d, #8e1a33); color: #fff4f7; }
.side-item h4 { margin: 8px 0 0; line-height: 1.35; }
.side-item a { color: inherit; text-decoration: none; font-weight: 700; }
.side-item a:hover,.side-item a:focus-visible { text-decoration: underline; }
.side-item time { font-size: 0.78rem; color: #ffc7d2; font-weight: 700; }
.widget { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.widget h4 { margin: 2px 0 8px; }
.widget ul { margin: 0; padding-left: 18px; color: var(--muted); }
.widget li { margin-bottom: 6px; }

.footer { margin-top: 34px; background: #ffffff; color: #3b1821; border-top: 1px solid #f0d7dc; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 22px; padding: 30px 0 20px; }
.footer-grid h4,.footer-grid h5 { margin: 0 0 10px; font-family: "Sora", sans-serif; letter-spacing: -0.01em; }
.footer-brand { display: grid; gap: 10px; }
.footer-logo { width: 240px; max-width: 100%; height: auto; object-fit: contain; }
.footer-grid h4 { font-size: 1.2rem; color: #2b0a12; }
.footer-grid p { margin: 0; color: #6f4a52; line-height: 1.6; max-width: 46ch; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: #3b1821; text-decoration: none; }
.footer-grid a:hover,.footer-grid a:focus-visible { color: #c11232; }
.footer-bottom { min-height: 64px; border-top: 1px solid #f0d7dc; display: flex; align-items: center; justify-content: space-between; color: #7b4a54; font-size: 0.92rem; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) 320px; gap: 24px; margin-top: 28px; margin-bottom: 28px; }
.article-card { background: radial-gradient(circle at 100% 0, rgba(176, 16, 42, 0.08), transparent 32%), var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 24px; box-shadow: var(--shadow-md); }
.article-cover { width: 100%; border-radius: 14px; border: 1px solid #161616; margin-bottom: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.article-topline { display: flex; gap: 8px; margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; padding: 6px 10px; color: #fff6f8; background: linear-gradient(90deg, #7a0c21, #c21432); }
.pill-soft { color: #6f2633; background: #ffe3e9; }
.article-card h1 { font-family: "Sora", sans-serif; line-height: 1.16; letter-spacing: -0.015em; margin: 10px 0 12px; font-size: clamp(1.65rem, 2.4vw, 2.2rem); }
.article-lead { color: #50262f; font-weight: 600; font-size: 1.06rem; line-height: 1.62; }
.article-body p { color: #66424a; line-height: 1.78; font-size: 1.02rem; }
.detail-side { height: fit-content; display: grid; gap: 12px; position: sticky; top: 94px; }
.detail-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); }
.detail-panel h4 { margin: 2px 0 10px; font-family: "Sora", sans-serif; letter-spacing: -0.01em; }
.detail-panel p { margin: 0; color: var(--muted); line-height: 1.5; }
.pulse-grid { display: grid; gap: 8px; }
.pulse-grid div { display: flex; align-items: center; justify-content: space-between; border-radius: 10px; padding: 10px; background: #fff3f5; border: 1px solid #f4cdd4; }
.pulse-grid span { color: #71424b; font-weight: 700; }
.pulse-grid strong { color: #5f0d1e; font-size: 0.9rem; }
.detail-panel-cta { background: linear-gradient(145deg, #4c0c1a, #8f1b33); border-color: #9d3147; }
.detail-panel-cta h4,.detail-panel-cta p { color: #fff1f4; }
.panel-link { display: inline-block; margin-top: 10px; text-decoration: none; color: #6d081a; background: #ffe0e7; padding: 8px 12px; border-radius: 10px; font-weight: 800; }
.panel-link:hover,.panel-link:focus-visible { background: #ffffff; }
.random-posts { display: grid; gap: 0; }
.random-item { border-radius: 10px; border: 1px solid #f0cad1; background: #fff4f6; padding: 10px; }
.random-item time { display: block; font-size: 0.76rem; color: #7f5962; margin-bottom: 4px; font-weight: 700; }
.random-item a { color: #4f121f; text-decoration: none; font-weight: 800; line-height: 1.35; }
.random-item a:hover,.random-item a:focus-visible { color: var(--brand); }

@media (max-width: 980px) {
  .nav-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .logo-mark { width: min(88vw, 340px); height: 56px; }
  .menu { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .layout, .posts, .detail-layout, .footer-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { gap: 16px; padding: 24px 0 16px; }
  .footer-bottom { min-height: auto; padding: 12px 0 18px; display: grid; gap: 6px; }
  .ticker { grid-template-columns: 1fr; padding: 10px 0; }
  .ticker-content { animation-duration: 30s; }
  .section-head { display: block; }
  .archive-stats { margin-top: 0; white-space: normal; display: inline-block; }
  .category-block { margin-top: 20px; padding-top: 14px; }
}
