/* ==========================================================================
   NEXVIA CLUB / KEŞFET — ONEDIO TARZI TEST PORTALI & QUIZ MOTORU
   (BEYAZ / AYDINLIK EDİTORYAL TEMA - COMPLETE STYLESHEET)
   ========================================================================== */

:root {
  --portal-bg: #faf8f5;
  --portal-surface: #ffffff;
  --portal-card-bg: #ffffff;
  --portal-card-hover: #f1f5f9;
  --portal-border: #e2e8f0;
  --portal-border-hover: #cbd5e1;
  --portal-border-gold: rgba(212, 175, 55, 0.45);
  --portal-gold: #9a7b1c;
  --portal-gold-light: #b38f29;
  --portal-rose: #e11d48;
  --portal-rose-hover: #be123c;
  --portal-text: #0f172a;
  --portal-text-muted: #334155;
  --portal-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --portal-font-serif: 'Cormorant Garamond', 'Cinzel', serif;
}

html {
  overflow-x: clip;
}

body.portal-body {
  background-color: var(--portal-bg);
  color: var(--portal-text);
  font-family: var(--portal-font-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   1. ÜST PORTAL HEADER & ARAMA ÇUBUĞU (HER ZAMAN GÖRÜNÜR STICKY HEADER)
   -------------------------------------------------------------------------- */
.portal-topbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--portal-border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 12px 0;
  /* viewport-fit=cover: çentikli iPhone'larda yatay güvenli alan */
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.portal-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.portal-brand .brand-logo-text {
  font-family: var(--portal-font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.portal-brand .brand-club-badge {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  font-family: var(--portal-font-main);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

.portal-search-form {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.portal-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px 10px 42px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-family: var(--portal-font-main);
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.portal-search-input:focus {
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.portal-search-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.portal-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.9rem;
  pointer-events: none;
}

.portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.portal-mode-switch {
  display: inline-flex;
  align-items: center;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 30px;
  border: 1px solid #cbd5e1;
}

.portal-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  color: #475569;
  transition: all 0.2s ease;
}

.portal-mode-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.portal-mode-btn:hover:not(.active) {
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   2. KEŞFET ANASAYFA HERO & GRID DÜZENİ
   -------------------------------------------------------------------------- */
.portal-hero-section {
  padding: 28px 0 16px;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .portal-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.portal-featured-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--portal-border);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.portal-featured-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portal-featured-card:hover .portal-featured-bg {
  transform: scale(1.04);
}

.portal-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.55) 40%, rgba(15, 23, 42, 0.96) 100%);
}

.portal-featured-content {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--portal-rose);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

.portal-badge-gold {
  background: linear-gradient(135deg, #d4af37, #b38f29);
  color: #12151e;
}

.portal-featured-title {
  font-family: var(--portal-font-main);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.portal-featured-desc {
  font-size: 0.96rem;
  color: #faf8f5;
  line-height: 1.55;
  margin: 0 0 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.portal-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.portal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Yan Trend Kartları */
.portal-side-trends {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-side-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-trend-card {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.22s ease;
}

@media (max-width: 480px) {
  .portal-trend-card { grid-template-columns: 72px 1fr; gap: 10px; }
}

.portal-trend-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.portal-trend-thumb {
  width: 96px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
}

.portal-trend-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portal-trend-heading {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 6px;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-trend-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}

.portal-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 12px;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   2.2 ZARİF SUB-NAVİGASYON BAR (STICKY HEADER İÇİNDE SÜZÜLEN KATEGORİLER)
   -------------------------------------------------------------------------- */
.portal-subbar {
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 0;
  margin-top: 8px;
}

.portal-subbar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 4px;
}

.portal-subbar-inner::-webkit-scrollbar {
  display: none;
}

.portal-subbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.portal-subbar-link:hover {
  color: #0f172a;
  background: #faf8f5;
}

.portal-subbar-link.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
  font-weight: 800;
}

@media (max-width: 640px) {
  .portal-topbar-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .portal-search-form {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .portal-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .portal-featured-title {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem) !important;
  }
}

/* --------------------------------------------------------------------------
   2.3 EDİTORYAL RAFLAR & TEMATİK BÖLÜMLER (EDITORIAL MAGAZINE SHELVES)
   -------------------------------------------------------------------------- */
.portal-shelf-section {
  margin: 44px 0 20px;
}

.portal-shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
}

.portal-shelf-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-shelf-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.portal-shelf-heading {
  font-family: var(--portal-font-main);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--portal-text);
  margin: 0 0 2px;
  letter-spacing: -0.02em;
}

.portal-shelf-sub {
  font-size: 0.82rem;
  color: var(--portal-text-muted);
  font-weight: 500;
}

.portal-shelf-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--portal-rose);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.portal-shelf-more:hover {
  color: var(--portal-rose-hover);
  gap: 9px;
}

/* --------------------------------------------------------------------------
   2.4 FİLTRELİ KATEGORİ & ARAMA BAŞLIĞI KARTI
   -------------------------------------------------------------------------- */
.portal-filtered-section {
  margin: 32px 0 60px;
}

.portal-filter-title-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 4px 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--portal-border);
}

.portal-filter-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--portal-rose);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.portal-filter-heading {
  font-family: var(--portal-font-main);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--portal-text);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.portal-filter-desc {
  font-size: 0.88rem;
  color: var(--portal-text-muted);
  margin: 0;
}

.portal-back-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f1f5f9;
  border-radius: 12px;
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.portal-back-all-btn:hover {
  background: #0f172a;
  color: #ffffff;
}

@media (max-width: 768px) {
  .portal-filter-title-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 14px;
  }
  .portal-shelf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   3. TEST KARTLARI GRID'İ (TÜM SAYFALAR İÇİN ORTAK SAĞLAM GRID)
   -------------------------------------------------------------------------- */
.portal-grid-section {
  padding: 10px 0 60px;
}

.portal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 24px;
  width: 100%;
}

.portal-quiz-card {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portal-quiz-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
}

.portal-quiz-thumb-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #e2e8f0;
}

.portal-quiz-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.portal-quiz-card:hover .portal-quiz-thumb {
  transform: scale(1.05);
}

.portal-thumb-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #9a7b1c;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portal-quiz-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portal-quiz-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 10px;
  color: #0f172a;
}

.portal-quiz-desc {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.55;
  margin: 0 0 18px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

.portal-quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 800;
}

.portal-solve-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--portal-rose);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   4. ONEDIO TEST MAKALESİ & DİKEY AKIŞ (AUTHENTIC ONEDIO FORMAT)
   -------------------------------------------------------------------------- */
.onedio-article-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.onedio-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.onedio-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.onedio-breadcrumb a:hover {
  color: var(--portal-rose);
}

.onedio-article-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

@media (max-width: 650px) {
  .onedio-article-title {
    font-size: 1.65rem;
  }
}

.onedio-author-bar,
.onedio-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.onedio-meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.onedio-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.onedio-social-shares {
  display: flex;
  align-items: center;
  gap: 8px;
}

.onedio-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.onedio-share-btn:hover {
  background: #0f172a;
  color: #ffffff;
  transform: translateY(-2px);
}

.onedio-share-btn.wp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

.onedio-article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1e293b;
  margin-bottom: 36px;
}

.onedio-article-body p {
  margin: 0 0 16px;
}

.onedio-lead-gif-wrap {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--portal-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  background: #0f172a;
}

.onedio-lead-gif {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.onedio-gif-caption {
  padding: 12px 18px;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  border-top: 1px solid #e2e8f0;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   5. DİKEY ONEDİO SORU BLOKLARI (FERAH & RESİMSİZ TEMİZ ŞIKLAR)
   -------------------------------------------------------------------------- */
.onedio-questions-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 36px;
}

.onedio-question-block {
  padding: 4px 0 8px;
  scroll-margin-top: 80px;
}

.onedio-q-heading {
  margin-bottom: 16px;
}

.onedio-q-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 6px;
}

.onedio-q-subtitle {
  font-size: 0.95rem;
  color: #475569;
  font-weight: 600;
  margin: 0;
}

.onedio-q-gif-wrap {
  margin: 16px 0 20px;
  border-radius: 14px;
  overflow: hidden;
  max-height: 290px;
  background: #0f172a;
}

.onedio-q-gif {
  width: 100%;
  height: 100%;
  max-height: 290px;
  object-fit: cover;
  display: block;
}

/* Ferah, Temiz & Karışıklıktan Uzak Şık Listesi (Clean Options Grid) */
.onedio-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 650px) {
  .onedio-options-grid {
    grid-template-columns: 1fr;
  }
}

.onedio-option-card {
  background: #ffffff;
  border: 2px solid var(--portal-border);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.onedio-option-card:hover {
  border-color: #94a3b8;
  background: #faf8f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.onedio-option-card.selected {
  border-color: #e11d48;
  background: #fff0f5;
  box-shadow: 0 0 0 2px #e11d48, 0 8px 18px rgba(225, 29, 72, 0.15);
}

.onedio-opt-indicator {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  transition: all 0.2s ease;
}

.onedio-option-card.selected .onedio-opt-indicator {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.onedio-opt-body {
  flex-grow: 1;
}

.onedio-opt-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 4px;
}

.onedio-opt-desc {
  font-size: 0.84rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

.onedio-opt-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: transparent;
  transition: all 0.2s ease;
}

.onedio-option-card.selected .onedio-opt-check {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. SONUÇ HESAPLAMA & BÜYÜK TEŞHİS KARTI
   -------------------------------------------------------------------------- */
.onedio-submit-wrap {
  text-align: center;
  padding: 20px 0;
}

.btn-onedio-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  border: none;
  padding: 16px 48px;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
  transition: all 0.25s ease;
}

.btn-onedio-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.45);
}

/* Tüm sorular yanıtlanmadan butonun "henüz hazır değil" görünümü (tıklanabilir kalır) */
.btn-onedio-submit.is-incomplete {
  opacity: 0.55;
  cursor: default;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.2);
}

.btn-onedio-submit.is-incomplete:hover {
  transform: none;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.2);
}

/* Eksik cevap uyarısı: butonun altında kısa süreli görünen inline mesaj */
.onedio-submit-warn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e11d48;
}

.onedio-submit-warn.visible {
  display: inline-flex;
  animation: onedioWarnIn 0.25s ease;
}

@keyframes onedioWarnIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.onedio-calculating-box {
  display: none;
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 20px;
  padding: 50px 20px;
  text-align: center;
  margin: 30px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.onedio-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--portal-rose);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.onedio-result-card {
  display: none;
  background: #ffffff;
  border: 2px solid var(--portal-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  scroll-margin-top: 90px;
}

.onedio-result-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.onedio-result-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onedio-result-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(255, 255, 255, 0.4) 60%, #ffffff 100%);
}

.onedio-result-badge-wrap {
  position: absolute;
  bottom: 20px;
  left: 28px;
  z-index: 3;
}

.onedio-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d4af37, #b38f29);
  color: #12151e;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.onedio-result-body {
  padding: 32px 28px;
}

.onedio-result-title {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin: 0 0 16px;
}

/* Yüzde Karşılaştırma & Gerçek İstatistik */
.onedio-percentage-bar-box {
  padding: 6px 0 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.onedio-percentage-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
}

.onedio-percent-number {
  color: #e11d48;
  font-size: 1.2rem;
  font-weight: 800;
}

.onedio-solves-total {
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.onedio-diagnosis-box {
  padding: 4px 0 20px;
  margin-bottom: 12px;
}

.onedio-diagnosis-lbl {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--portal-rose);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.onedio-diagnosis-txt {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
}

.onedio-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 650px) {
  .onedio-stats-grid {
    grid-template-columns: 1fr;
  }
}

.onedio-stat-item {
  padding: 12px 4px;
  text-align: left;
}

.onedio-stat-lbl {
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.onedio-stat-val {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.onedio-share-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn-onedio-share {
  flex: 1;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-onedio-share:hover {
  background: #faf8f5;
  border-color: #0f172a;
}

.btn-onedio-share.copied {
  background: #faf4e5;
  border-color: #d4af37;
  color: #9a7b1c;
}

.onedio-bridge-box {
  background: #faf4e5;
  border: 1px solid #e6d29d;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.onedio-bridge-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #881337;
  margin: 0 0 8px;
}

.onedio-bridge-desc {
  font-size: 0.94rem;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto 20px;
}

.btn-onedio-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  text-decoration: none;
  padding: 15px 36px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
  transition: all 0.25s ease;
}

.btn-onedio-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff477e, #e11d48);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.45);
  color: #fff;
}

/* --------------------------------------------------------------------------
   7. İLGİLİ TESTLER BÖLÜMÜ (BUNU ÇÖZENLER BUNLARI DA ÇÖZDÜ)
   -------------------------------------------------------------------------- */
.onedio-related-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e2e8f0;
  width: 100%;
}

.onedio-related-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   8. FOOTER STİLLERİ
   -------------------------------------------------------------------------- */
.portal-body .footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #1e293b;
}

.portal-body .footer .footer-desc {
  color: #334155;
  font-weight: 500;
}

.portal-body .footer .footer-col h4 {
  color: #0f172a;
  font-weight: 800;
}

.portal-body .footer .footer-col ul li a {
  color: #334155;
  font-weight: 600;
}

.portal-body .footer .footer-col ul li a:hover {
  color: #e11d48;
}

.portal-body .footer-bottom {
  border-top: 1px solid #f1f5f9;
  color: #475569;
  font-weight: 600;
}
