/* ============================================================
   DermaPortal — Ana Stil Dosyası
   Değişiklik yapmak için bu dosyayı düzenleyin,
   index.php'ye dokunmanıza gerek kalmaz.
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg:      #0d1117;
  --bg2:     #161b22;
  --bg3:     #1c2128;
  --border:  rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text:    #e6edf3;
  --text2:   #8b949e;
  --text3:   #6e7681;
  --accent:  #58a6ff;
  --accent2: #3fb950;
  --accent3: #d29922;
  --red:     #f85149;
  --serif:   'DM Serif Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --panel-left:  300px;
  --panel-right: 280px;
  --header-h:    44px;
  --mob-header:  52px;
  --mob-img:     70px;
  --mob-tabs:    48px;
  --transition:  0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── ORTAK BİLEŞENLER ── */
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2); animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.panel-title {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3);
}

/* Feed */
.feed-item {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.feed-item:hover  { background: var(--bg3); }
.feed-item.selected {
  background: rgba(88,166,255,0.08);
  border-left: 2px solid var(--accent); padding-left: 12px;
}
.feed-source {
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 4px;
  display: flex; align-items: center; gap: 5px;
}
.source-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.feed-title  { font-size: 12.5px; color: var(--text); line-height: 1.45; margin-bottom: 5px; }
.feed-meta   { font-size: 10.5px; color: var(--text3); display: flex; align-items: center; gap: 8px; }
.feed-tag    { font-size: 9.5px; padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.tag-pubmed  { background: rgba(88,166,255,0.12); color: #58a6ff; }
.tag-tdd     { background: rgba(210,153,34,0.12);  color: #d29922; }
.tag-default { background: rgba(139,148,158,0.12); color: #8b949e; }
.ai-badge {
  font-size: 9px; padding: 1px 5px; border-radius: 3px;
  background: rgba(88,166,255,0.08); color: var(--accent);
  border: 1px solid rgba(88,166,255,0.2); flex-shrink: 0;
}
.feed-error { padding: 20px 14px; text-align: center; color: var(--text3); font-size: 12px; line-height: 1.7; }
.feed-error a { color: var(--accent); cursor: pointer; text-decoration: underline; }

/* Filter chips */
.filter-chip {
  font-size: 10.5px; padding: 3px 8px; border-radius: 100px;
  border: 1px solid var(--border2); color: var(--text3);
  background: transparent; cursor: pointer; transition: all 0.15s;
  font-family: var(--sans);
}
.filter-chip:hover  { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: rgba(88,166,255,0.12); border-color: var(--accent); color: var(--accent); }

/* Skeleton */
.skeleton   { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.skel-line  { height: 10px; border-radius: 4px; background: var(--bg3); margin-bottom: 7px; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%,100%{opacity:0.4} 50%{opacity:0.8} }

/* Congress */
.congress-item         { padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: opacity 0.15s; }
.congress-item:last-child { border-bottom: none; }
.congress-item:hover   { opacity: 0.75; }
.congress-name         { font-size: 12px; color: var(--text); line-height: 1.4; margin-bottom: 3px; }
.congress-date         { font-size: 10.5px; color: var(--accent3); }
.congress-place        { font-size: 10px; color: var(--text3); }
.congress-badge        { display: inline-block; font-size: 9px; padding: 1px 6px; border-radius: 3px; margin-left: 4px; }
.cb-soon               { background: rgba(210,153,34,0.15); color: #d29922; }
.cb-ongoing            { background: rgba(63,185,80,0.15);  color: #3fb950; }

/* Scrollbar */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 2px; }

/* Makale kart */
.article-source-chip {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 100px;
}
.article-date      { font-size: 12px; color: var(--text3); }
.article-title     { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--text); margin-bottom: 20px; font-style: italic; }
.article-divider   { height: 1px; background: var(--border); margin: 20px 0; }
.article-abstract  { font-size: 13.5px; color: var(--text2); line-height: 1.75; margin-bottom: 20px; }
.article-abstract-title { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; font-weight: 500; }
.open-link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--accent); color: #0d1117;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
  cursor: pointer; border: none; font-family: var(--sans);
}
.open-link-btn:hover { background: #79b8ff; }
.open-link-btn.secondary {
  background: transparent; color: var(--accent);
  border: 1px solid rgba(88,166,255,0.3); margin-left: 8px;
}
.open-link-btn.secondary:hover { background: rgba(88,166,255,0.08); }
.tags-row  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag-pill  { font-size: 10.5px; padding: 3px 10px; border-radius: 100px; background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }

/* AI Özet */
.ai-summary-text { font-size: 12.5px; color: var(--text2); line-height: 1.65; }
.ai-typing::after { content: '▋'; animation: blink 0.7s step-end infinite; color: var(--accent); margin-left: 2px; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Müzik barları */
.music-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.music-bar-line {
  width: 2px; background: var(--accent); border-radius: 1px;
  animation: barAnim 0.8s ease-in-out infinite alternate; opacity: 0.8;
}
.music-bar-line:nth-child(1){height:4px;  animation-delay:0s}
.music-bar-line:nth-child(2){height:10px; animation-delay:0.15s}
.music-bar-line:nth-child(3){height:7px;  animation-delay:0.3s}
.music-bar-line:nth-child(4){height:12px; animation-delay:0.1s}
.music-bar-line:nth-child(5){height:5px;  animation-delay:0.25s}
@keyframes barAnim { from{transform:scaleY(0.3)} to{transform:scaleY(1)} }
.music-paused .music-bar-line { animation-play-state: paused; opacity: 0.3; }

/* Loading */
#loading {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.6s;
}
#loading.fade { opacity: 0; pointer-events: none; }
.loading-logo { font-family: var(--serif); font-size: 32px; color: var(--text); margin-bottom: 6px; }
.loading-logo span { color: var(--accent); }
.loading-sub  { font-size: 12px; color: var(--text3); margin-bottom: 28px; letter-spacing: 0.06em; }
.loading-bar  { width: 200px; height: 2px; background: var(--border2); border-radius: 1px; overflow: hidden; }
.loading-fill { height: 100%; background: var(--accent); border-radius: 1px; animation: loadFill 1.6s ease forwards; }
@keyframes loadFill { from{width:0%} to{width:100%} }

/* ════════════════════════════════════════════════════
   DESKTOP (≥ 769px)
════════════════════════════════════════════════════ */
@media (min-width: 769px) {

  /* Desktop'ta mobil elemanları gizle */
  #mob-header, #mob-overlay, #mob-drawer,
  #mob-image, #mob-tabs-bar, #mob-panel,
  #mob-article, #takvim-view-mob { display: none !important; }

  /* Header */
  #header {
    height: var(--header-h); background: var(--bg2);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 16px; gap: 12px;
    flex-shrink: 0; z-index: 100;
  }
  #header .logo    { font-family: var(--serif); font-size: 17px; color: var(--text); letter-spacing: 0.02em; white-space: nowrap; flex-shrink: 0; }
  #header .logo span { color: var(--accent); }
  #header .divider { width: 1px; height: 20px; background: var(--border2); flex-shrink: 0; }
  #header .notice  { font-size: 11.5px; color: var(--text3); line-height: 1.4; flex: 1; min-width: 0; }
  #header .notice strong { color: var(--accent3); font-weight: 500; }
  #header .badge   {
    font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    background: rgba(88,166,255,0.12); color: var(--accent);
    border: 1px solid rgba(88,166,255,0.25); padding: 3px 8px; border-radius: 100px;
    white-space: nowrap; flex-shrink: 0;
  }
  #header .nav-menu { display: flex; gap: 2px; flex-shrink: 0; }
  #header .nav-btn  {
    font-family: var(--sans); font-size: 12px; color: var(--text2);
    background: transparent; border: none; padding: 5px 10px;
    border-radius: 6px; cursor: pointer; transition: background 0.15s, color 0.15s; white-space: nowrap;
  }
  #header .nav-btn:hover  { background: var(--bg3); color: var(--text); }
  #header .nav-btn.active { background: rgba(88,166,255,0.15); color: var(--accent); }

  /* Layout */
  #main { flex: 1; display: flex; overflow: hidden; }

  /* Sol panel */
  #panel-left {
    width: var(--panel-left); min-width: var(--panel-left);
    background: var(--bg2); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0;
  }
  .panel-header  { padding: 12px 14px 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
  .feed-filters  { padding: 8px 10px; display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-shrink: 0; flex-wrap: wrap; }
  #feed-list     { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }

  /* Orta alan */
  #panel-center { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

  #landscape-view    { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  #landscape-slides  { position: absolute; inset: 0; }
  .landscape-slide   { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease; }
  .landscape-slide.active { opacity: 1; }
  .landscape-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,17,23,0.3) 0%, rgba(13,17,23,0.05) 40%, rgba(13,17,23,0.55) 100%); }
  .landscape-caption { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); text-align: center; z-index: 2; pointer-events: none; }
  .landscape-caption h2 { font-family: var(--serif); font-size: 22px; font-style: italic; color: rgba(255,255,255,0.9); text-shadow: 0 2px 12px rgba(0,0,0,0.6); margin-bottom: 4px; }
  .landscape-caption p  { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }

  #music-bar {
    position: absolute; bottom: 14px; right: 16px;
    display: flex; align-items: center; gap: 8px; z-index: 10;
    background: rgba(13,17,23,0.65); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 5px 12px 5px 8px;
  }
  #music-btn {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s; color: rgba(255,255,255,0.8); font-size: 10px;
  }
  #music-btn:hover { background: rgba(255,255,255,0.2); }
  #music-info       { font-size: 11px; color: rgba(255,255,255,0.65); }
  #music-info strong{ color: rgba(255,255,255,0.85); font-weight: 400; }

  #content-view { flex: 1; display: none; flex-direction: column; overflow: hidden; }
  #content-view.visible { display: flex; }
  .content-toolbar  { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-shrink: 0; background: var(--bg2); }
  .content-back     { font-size: 12px; color: var(--accent); background: none; border: none; cursor: pointer; font-family: var(--sans); padding: 4px 8px; border-radius: 5px; transition: background 0.15s; white-space: nowrap; }
  .content-back:hover{ background: rgba(88,166,255,0.1); }
  .content-url      { font-size: 11px; color: var(--text3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content-open-btn { font-size: 11px; color: var(--text3); background: none; border: 1px solid var(--border2); border-radius: 5px; padding: 3px 8px; cursor: pointer; font-family: var(--sans); transition: all 0.15s; white-space: nowrap; flex-shrink: 0; }
  .content-open-btn:hover { border-color: var(--accent); color: var(--accent); }
  #article-card { flex: 1; overflow-y: auto; padding: 28px 32px; scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }

  #takvim-view { flex: 1; display: none; flex-direction: column; overflow: hidden; }
  #takvim-view.visible { display: flex; }
  #takvim-iframe { flex: 1; border: none; background: var(--bg2); }

  /* Sağ panel */
  #panel-right {
    width: var(--panel-right); min-width: var(--panel-right);
    background: var(--bg2); border-left: 1px solid var(--border);
    display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0;
  }
  #mini-landscape { height: 0; overflow: hidden; transition: height var(--transition); position: relative; flex-shrink: 0; }
  #mini-landscape.visible { height: 150px; }
  #mini-landscape img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.65; }
  #mini-landscape .mini-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg2) 100%); }
  #mini-landscape .mini-music   { position: absolute; bottom: 8px; left: 10px; display: flex; align-items: center; gap: 6px; }
  #right-scroll       { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }
  .right-section      { padding: 12px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
  .right-section-title{ font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 10px; }
  .status-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; font-size: 11.5px; color: var(--text2); }
  .status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .stat-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-box   { background: var(--bg3); border-radius: 7px; padding: 8px 10px; border: 1px solid var(--border); }
  .stat-num   { font-size: 20px; font-weight: 300; color: var(--text); }
  .stat-label { font-size: 10px; color: var(--text3); margin-top: 1px; }
}

/* ════════════════════════════════════════════════════
   MOBİL (≤ 768px)
════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Desktop elemanları tamamen gizle */
  #header, #panel-left, #panel-right, #panel-center { display: none !important; }

  /* Body mobil akış */
  body { overflow: hidden; display: flex; flex-direction: column; height: 100vh; }

  /* #main mobilde hiç yer kaplamasın */
  #main { display: none !important; }

  /* ── Mobil Header ── */
  #mob-header {
    height: var(--mob-header);
    background: #161b22;           /* Sabit renk, var() yerine */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; padding: 0 14px; gap: 10px;
    flex-shrink: 0; z-index: 200; position: relative;
  }

  /* Hamburger — 3 çizgi görünür olsun */
  #hamburger {
    width: 36px; height: 36px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
    flex-shrink: 0; -webkit-tap-highlight-color: transparent;
  }
  #hamburger span {
    display: block; width: 22px; height: 2.5px;
    background: #e6edf3;           /* Sabit beyaz, kesin görünür */
    border-radius: 2px; transition: all 0.3s ease;
  }
  #hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  #hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  #hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  #mob-logo { font-family: var(--serif); font-size: 18px; color: #e6edf3; flex: 1; }
  #mob-logo span { color: #58a6ff; }
  #mob-notice { font-size: 9.5px; color: #6e7681; max-width: 160px; text-align: right; line-height: 1.3; }
  #mob-notice strong { color: #d29922; }

  /* ── Overlay (hamburger arka planı) ── */
  #mob-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.7);  /* Daha koyu */
    z-index: 599;                      /* Drawer'dan bir altında */
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
    display: block;
  }
  #mob-overlay.open { opacity: 1; pointer-events: all; }

  /* ── Hamburger Çekmecesi ── */
  #mob-drawer {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 280px;
    background: #161b22;             /* Sabit koyu renk — şeffaf değil */
    border-right: 1px solid rgba(255,255,255,0.12);
    z-index: 600;                     /* En üstte */
    transform: translateX(-100%);
    transition: transform var(--transition);
    display: flex; flex-direction: column; overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.6);  /* Derinlik */
  }
  #mob-drawer.open { transform: translateX(0); }

  .drawer-header {
    padding: 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 10px;
    background: #161b22; flex-shrink: 0;
  }
  .drawer-logo { font-family: var(--serif); font-size: 18px; color: #e6edf3; flex: 1; }
  .drawer-logo span { color: #58a6ff; }
  .drawer-close {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: #8b949e; font-size: 16px; cursor: pointer; padding: 0;
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
  }
  .drawer-close:hover { background: rgba(255,255,255,0.15); color: #e6edf3; }

  .drawer-section { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08); background: #161b22; }
  .drawer-section-title {
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    color: #6e7681; padding: 8px 14px 4px;
  }
  .drawer-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; font-size: 14px; color: #8b949e;
    cursor: pointer; transition: background 0.12s, color 0.12s;
    background: #161b22;
  }
  .drawer-link:hover,
  .drawer-link:active { background: #1c2128; color: #e6edf3; }
  .drawer-notice {
    padding: 14px; font-size: 11px; color: #6e7681; line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.08); background: #161b22;
  }

  /* ── Üst Resim Şeridi ── */
  #mob-image {
    height: var(--mob-img);          /* 70px */
    flex-shrink: 0; position: relative;
    overflow: hidden; display: block !important;
  }
  #mob-image .mob-slides { position: absolute; inset: 0; }
  #mob-image .mob-slide  {
    position: absolute; inset: 0; background-size: cover; background-position: center 40%;
    opacity: 0; transition: opacity 1.8s;
  }
  #mob-image .mob-slide.active { opacity: 1; }
  #mob-image .mob-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,17,23,0.1), rgba(13,17,23,0.55)); }
  #mob-image .mob-caption { position: absolute; bottom: 6px; left: 14px; right: 60px; }
  #mob-image .mob-caption h2 {
    font-family: var(--serif); font-size: 12px; font-style: italic;
    color: rgba(255,255,255,0.9); text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #mob-music-btn {
    position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
    background: rgba(13,17,23,0.65); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px; padding: 4px 9px 4px 7px;
    display: flex; align-items: center; gap: 5px; cursor: pointer;
  }
  #mob-music-btn button { background: none; border: none; color: rgba(255,255,255,0.85); font-size: 9px; cursor: pointer; padding: 0; line-height: 1; }
  #mob-music-btn .music-bars { height: 9px; }
  #mob-music-btn .music-bar-line { width: 2px; }

  /* ── Tab Bar ── */
  #mob-tabs-bar {
    height: var(--mob-tabs); flex-shrink: 0;
    display: flex !important;
    background: #161b22; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mob-tab {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 6px; font-size: 13px; color: #6e7681;
    border: none; background: transparent; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.15s;
    font-family: var(--sans); -webkit-tap-highlight-color: transparent;
  }
  .mob-tab.active { color: #58a6ff; border-bottom-color: #58a6ff; }
  .mob-tab .tab-dot { width: 5px; height: 5px; border-radius: 50%; background: #3fb950; animation: pulse 2s infinite; }

  /* ── İçerik Paneli ── */
  #mob-panel {
    flex: 1; overflow: hidden;
    display: flex !important; flex-direction: column; min-height: 0;
  }
  .mob-tab-content { display: none; flex-direction: column; flex: 1; overflow: hidden; }
  .mob-tab-content.active { display: flex; }
  #mob-feed-filters { padding: 8px 10px; display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; flex-wrap: wrap; }
  #mob-feed-list    { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #mob-congress-list{ flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .mob-congress-item  { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: pointer; }
  .mob-congress-name  { font-size: 13px; color: #e6edf3; line-height: 1.4; margin-bottom: 3px; }
  .mob-congress-date  { font-size: 11px; color: #d29922; }
  .mob-congress-place { font-size: 10.5px; color: #6e7681; margin-top: 1px; }

  /* ── Makale Tam Ekran ── */
  #mob-article {
    position: fixed; inset: 0;
    background: #0d1117 !important;  /* Tam opak, şeffaf değil */
    z-index: 700 !important;          /* Her şeyin üstünde */
    display: none; flex-direction: column;
  }
  #mob-article.open { display: flex; }

  .mob-article-header {
    padding: 12px 14px;
    background: #161b22 !important;  /* Sabit koyu */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  }
  .mob-back-btn {
    background: none; border: none; color: #58a6ff;
    font-size: 13px; cursor: pointer; font-family: var(--sans);
    padding: 4px 8px; border-radius: 5px;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-article-body { flex: 1; overflow-y: auto; padding: 20px 16px; -webkit-overflow-scrolling: touch; background: #0d1117; }
  .mob-article-title { font-family: var(--serif); font-size: 18px; line-height: 1.5; color: #e6edf3; margin-bottom: 16px; font-style: italic; }
  .mob-article-meta  { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
  .mob-open-btn {
    display: block; width: 100%; padding: 12px;
    background: #58a6ff; color: #0d1117; border-radius: 8px;
    font-size: 14px; font-weight: 600; text-align: center;
    border: none; cursor: pointer; font-family: var(--sans); margin-bottom: 16px;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-ai-box       { background: #161b22; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px; }
  .mob-ai-label     { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #58a6ff; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
  .mob-ai-text      { font-size: 13px; color: #8b949e; line-height: 1.7; }
  .mob-abstract-box { background: #1c2128; border-radius: 8px; padding: 12px; margin-top: 12px; }
  .mob-abstract-label{ font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #6e7681; margin-bottom: 6px; }
  .mob-abstract-text { font-size: 12px; color: #6e7681; line-height: 1.65; }
  .mob-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
  .mob-tag  { font-size: 10.5px; padding: 3px 10px; border-radius: 100px; background: #1c2128; color: #6e7681; border: 1px solid rgba(255,255,255,0.08); }

  /* ── Takvim Tam Ekran ── */
  #takvim-view-mob {
    display: none; position: fixed; inset: 0;
    z-index: 700; flex-direction: column; background: #0d1117;
  }
  #takvim-view-mob.open { display: flex; }
  .takvim-mob-header {
    padding: 12px 14px; background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  }
  #takvim-iframe-mob { flex: 1; border: none; background: #161b22; }
}
