/* =============================================
   BORSA ÖNERİLERİ — ANA STİL
   Renk paleti: Logo yeşil-teal gradyan + koyu navy
   ============================================= */

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

:root {
  /* Logo'dan alınan renkler */
  --green-light: #4ade80;
  --green-mid:   #22c55e;
  --teal:        #14b8a6;
  --teal-dark:   #0d9488;
  --navy:        #0d1b2a;
  --navy2:       #112233;
  --navy3:       #152d44;
  --navy4:       #1a3550;

  /* UI renkleri */
  --bg:          #0b1520;
  --bg2:         #0f1e2e;
  --bg3:         #142639;
  --bg4:         #1a3248;
  --border:      #1e3347;
  --border2:     #254259;
  --text:        #e2eaf4;
  --text2:       #7fa8c9;
  --text3:       #3d6480;
  --white:       #ffffff;

  /* Gradyan */
  --grad: linear-gradient(135deg, var(--green-light), var(--teal));
  --grad-subtle: linear-gradient(135deg, rgba(74,222,128,0.12), rgba(20,184,166,0.06));

  --max: 1280px;
  --radius: 6px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── MASTHEAD REKLAM ─────────────────────── */
.masthead-ad {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  min-height: 118px;
  position: relative;
}
.masthead-ad .ad-label {
  position: absolute;
  top: 5px; right: 10px;
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}
.masthead-slot {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.masthead-slot img { width: 100%; max-height: 90px; object-fit: contain; }

/* ── TICKER ──────────────────────────────── */
.ticker-wrap {
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  height: 38px;
  overflow: hidden;
  position: relative;
}
.ticker-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker-fade.left  { left:  0; background: linear-gradient(to right, var(--navy), transparent); }
.ticker-fade.right { right: 0; background: linear-gradient(to left,  var(--navy), transparent); }

.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: ticker 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  border-right: 1px solid var(--border);
}
.t-label {
  font-size: 9.5px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.t-value { color: var(--text); font-weight: 500; }
.t-change { font-size: 10px; }
.t-change.up   { color: var(--green-mid); }
.t-change.down { color: #f87171; }

/* ── HEADER ──────────────────────────────── */
header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img  { height: 36px; width: auto; object-fit: contain; }

.header-slogan {
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-left: 20px;
  border-left: 1px solid var(--border2);
}
.header-date {
  margin-left: auto;
  font-size: 11px;
  color: var(--text3);
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
}

/* ── PAGE LAYOUT ─────────────────────────── */
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}
.content-col { min-width: 0; }

/* ── SECTION LABEL ───────────────────────── */
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── MAGAZINE GRID ───────────────────────── */
.magazine {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}

/* Öne çıkan kart */
.card-featured {
  background: var(--bg2);
  grid-row: span 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.card-featured:hover { background: var(--bg3); }

.card-featured-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}
.card-featured-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--grad-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.card-featured-thumb-placeholder svg { width: 48px; height: 48px; opacity: 0.15; }

.card-featured-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(74,222,128,0.15), rgba(20,184,166,0.1));
  border: 1px solid rgba(74,222,128,0.25);
  color: var(--green-light);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.c-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.06em;
}

.card-featured h2 {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: -0.02em;
}

.card-featured .excerpt {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--grad);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  margin-top: auto;
  width: fit-content;
}
.btn-dl:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-dl svg { flex-shrink: 0; }

/* Yan kartlar */
.card-side {
  background: var(--bg2);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.card-side:hover { background: var(--bg3); }
.card-side::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s;
}
.card-side:hover::before { background: var(--grad); }

.card-side-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  margin-bottom: 4px;
}
.card-side-thumb-ph {
  width: 100%;
  height: 90px;
  background: var(--bg4);
  border-radius: 3px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-side-thumb-ph svg { width: 24px; opacity: 0.15; }

.s-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  color: var(--text3);
  letter-spacing: 0.05em;
}
.s-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--border2);
  line-height: 1;
}
.card-side h3 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.01em;
}
.s-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}
.tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.2);
  padding: 2px 8px;
  border-radius: 20px;
}
.pdf-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--green-mid);
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.pdf-link:hover { opacity: 1; }
.pdf-link svg { width: 10px; }

/* ── ARŞİV GRID ──────────────────────────── */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 3px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.arc-card {
  background: var(--bg2);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.arc-card:hover { background: var(--bg3); }

.arc-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.arc-thumb-ph {
  width: 100%;
  height: 120px;
  background: var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.arc-thumb-ph svg { width: 28px; opacity: 0.12; }

.arc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.arc-num {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  color: var(--text3);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.arc-card:hover .arc-num { color: var(--teal); }
.arc-card h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
.arc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.arc-date {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  color: var(--text3);
}
.arc-dl {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--green-mid);
  font-weight: 600;
}
.arc-dl svg { width: 10px; }

/* ── SIDEBAR ─────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 74px;
}
.ad-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-box-label {
  display: block;
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
  padding: 5px 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}
.ad-box-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
}
.ad-box-inner.size-250 { min-height: 250px; }
.ad-box-inner.size-600 { min-height: 600px; }

/* ── FOOTER AD ───────────────────────────── */
.footer-ad-band {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.footer-ad-band .ad-label {
  position: absolute;
  top: 5px; right: 10px;
  font-size: 9px;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}
.footer-ad-slot {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: var(--bg3);
  border: 1px dashed var(--border2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 28px;
  text-align: center;
}
footer p {
  font-size: 12px;
  color: var(--text3);
  font-family: 'DM Mono', monospace;
}
footer strong { color: var(--teal); font-weight: 600; }

/* ── PLACEHOLDER METİNLER ────────────────── */
.slot-placeholder {
  font-size: 11px;
  color: var(--text3);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.07em;
  text-align: center;
}
.slot-placeholder a { color: var(--teal); }
.slot-placeholder.small { font-size: 10px; }

.loading-state {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
}

/* ── PDF OVERLAY ─────────────────────────── */
.pdf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 20, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.pdf-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.pdf-modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  width: 100%;
  max-width: 900px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-shrink: 0;
}
#pdf-modal-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-modal-actions { display: flex; align-items: center; gap: 10px; }
.pdf-close {
  background: var(--bg4);
  border: 1px solid var(--border2);
  color: var(--text2);
  width: 30px; height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.pdf-close:hover { background: var(--border2); }
#pdf-frame { flex: 1; width: 100%; border: none; background: #fff; }

/* ── ANİMASYONLAR ────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.magazine     { animation: fadeUp 0.5s ease both 0.05s; }
.archive-grid { animation: fadeUp 0.5s ease both 0.12s; }
.sidebar      { animation: fadeUp 0.5s ease both 0.08s; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1060px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .ad-box { flex: 1; min-width: 280px; }
  .ad-box-inner.size-600 { min-height: 250px; }
}
@media (max-width: 780px) {
  .magazine { grid-template-columns: 1fr; }
  .card-featured { grid-row: span 1; }
  .header-slogan { display: none; }
}
@media (max-width: 520px) {
  .page-wrap, .footer-ad-band, footer { padding-left: 16px; padding-right: 16px; }
  .header-inner { padding: 0 16px; }
  .masthead-ad { padding: 10px 16px; }
}
