/* Gri English — App Mode Styles */
.app-mode .hide-in-app,
.app-mode [data-hide-in-app] { display: none !important; }
.app-mode .top-banner,
.app-mode .promo-bar,
.app-mode .home-discount-banner,
.app-mode #global-discount-banner,
.app-mode .global-discount { display: none !important; }
@media (max-width: 700px) {
  body.app-mode { padding-bottom: 70px; }
}
.app-bottom-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  height: 62px; background: #faf7ee; border-top: 0.5px solid #d9d2bf;
  z-index: 9999; align-items: stretch; justify-content: space-around;
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
  box-sizing: content-box; font-family: 'Inter', sans-serif;
}
.abn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: #9a9890;
  font-size: 10px; letter-spacing: 0.02em; padding: 6px 0;
  transition: color 0.15s ease;
}
.abn-item.active { color: #2C5856; }
.abn-item:hover { color: #2C5856; }
.abn-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.abn-label { font-weight: 500; font-size: 10px; }
html.dark .app-bottom-nav, body.dark .app-bottom-nav {
  background: #1a1f25; border-top-color: #2c3036;
}
.app-mode-modal-overlay {
  position: fixed; inset: 0; background: rgba(26, 31, 37, 0.6);
  z-index: 99999; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: ammFadeIn 0.2s ease;
}
@keyframes ammFadeIn { from { opacity: 0; } to { opacity: 1; } }
.app-mode-modal {
  background: #faf7ee; border-radius: 16px; max-width: 360px; width: 100%;
  padding: 28px 22px; text-align: center; font-family: 'Inter', sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: ammSlideUp 0.25s ease;
}
@keyframes ammSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.amm-icon {
  width: 56px; height: 56px; background: rgba(44, 88, 86, 0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #2C5856;
}
.app-mode-modal h3 {
  font-family: 'Lora', serif; font-size: 18px; color: #2a2a2a;
  margin: 0 0 10px; font-weight: 500; line-height: 1.3;
}
.app-mode-modal p { font-size: 14px; color: #5a5e58; line-height: 1.5; margin: 0 0 22px; }
.amm-buttons { display: flex; gap: 10px; }
.amm-btn {
  flex: 1; padding: 11px 14px; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s ease; border: 1px solid #2C5856;
}
.amm-btn-cancel { background: transparent; color: #2C5856; }
.amm-btn-confirm { background: #2C5856; color: #F4EFE3; }
.amm-btn:hover { opacity: 0.85; }
html.dark .app-mode-modal, body.dark .app-mode-modal { background: #232830; }
html.dark .app-mode-modal h3 { color: #e8e6e0; }
html.dark .app-mode-modal p { color: #b0aea8; }

/* ===== APP HERO (Faz 1.5) ===== */
.hero-app-mode { display: none; }

.app-mode .hero-manifesto,
.app-mode .bolum,
.app-mode .home-discount-banner,
.app-mode .global-discount-banner,
.app-mode #global-discount-banner {
  display: none !important;
}

.app-mode .hero-app-mode {
  display: block !important;
  background: transparent;
  padding: 0.5rem 0 2rem;
  min-height: auto;
}

.hero-app-mode .wrap {
  padding: 0 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.ah-greeting { padding: 0.8rem 0 1.1rem; }
.ah-greeting h1 {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #2a2a2a;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.ah-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(200, 154, 60, 0.12);
  color: #9C7F45;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}

.ah-continue {
  display: block;
  position: relative;
  background: #2C5856;
  color: #F4EFE3;
  border-radius: 12px;
  padding: 14px 60px 14px 16px;
  text-decoration: none;
  margin-bottom: 1.3rem;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.ah-continue:hover { transform: translateY(-1px); }
.ah-continue-eyebrow {
  font-size: 9px;
  color: rgba(244, 239, 227, 0.7);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
}
.ah-continue-title {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 3px;
}
.ah-continue-meta {
  font-size: 11px;
  color: rgba(244, 239, 227, 0.7);
  font-family: 'Inter', sans-serif;
}
.ah-continue-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(244, 239, 227, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F4EFE3;
}

.ah-section-label {
  font-size: 9px;
  color: #a89a78;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  margin: 0 0 0.7rem;
}

.ah-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 1.4rem;
}
.ah-card {
  background: #ffffff;
  border: 0.5px solid #d9d2bf;
  border-radius: 11px;
  padding: 14px 12px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 92px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
}
.ah-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 31, 37, 0.06);
}
.ah-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ah-c-teal .ah-card-icon { background: rgba(44, 88, 86, 0.1); color: #2C5856; }
.ah-c-gold .ah-card-icon { background: rgba(200, 154, 60, 0.12); color: #9C7F45; }
.ah-c-coral .ah-card-icon { background: rgba(208, 90, 48, 0.12); color: #993C1D; }
.ah-c-purple .ah-card-icon { background: rgba(83, 74, 183, 0.12); color: #534AB7; }
.ah-card-title {
  font-family: 'Lora', serif;
  font-size: 13.5px;
  color: #2a2a2a;
  font-weight: 500;
  line-height: 1.15;
}
.ah-card-sub {
  font-size: 10px;
  color: #7a7a6e;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}

.ah-word-card {
  background: #ffffff;
  border: 0.5px solid #d9d2bf;
  border-radius: 11px;
  padding: 14px 14px;
  margin-bottom: 1.4rem;
}
.ah-word-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
  gap: 8px;
}
.ah-word-text {
  font-family: 'Lora', serif;
  font-size: 22px;
  color: #2C5856;
  font-weight: 500;
  line-height: 1.1;
}
.ah-word-pos {
  font-size: 9px;
  color: #a89a78;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.ah-word-pron {
  font-size: 11px;
  color: #7a7a6e;
  font-style: italic;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}
.ah-word-def {
  font-size: 12.5px;
  color: #3a3a32;
  line-height: 1.45;
  font-family: 'Inter', sans-serif;
}

.ah-premium-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(200, 154, 60, 0.12), rgba(44, 88, 86, 0.08));
  border: 0.5px solid rgba(200, 154, 60, 0.4);
  border-radius: 11px;
  padding: 13px 14px;
  text-decoration: none;
  margin-bottom: 1rem;
  color: inherit;
  transition: transform 0.15s ease;
}
.ah-premium-card:hover { transform: translateY(-1px); }
.ah-premium-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c89a3c;
  color: #1a1f25;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ah-premium-text { flex: 1; min-width: 0; }
.ah-premium-title {
  font-family: 'Lora', serif;
  font-size: 13.5px;
  color: #2a2a2a;
  font-weight: 500;
  line-height: 1.2;
}
.ah-premium-sub {
  font-size: 10.5px;
  color: #7a7a6e;
  line-height: 1.3;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}
.ah-premium-arrow {
  color: #c89a3c;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-app-mode .wrap { padding: 1rem 2rem; }
  .ah-quick-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .ah-quick-grid { gap: 12px; }
  .ah-card { min-height: 110px; padding: 16px 14px; }
}

/* ===== APP MODE DARK THEME ===== */
:root[data-theme="dark"] .app-bottom-nav {
  background: #1a1815;
  border-top-color: #3a3530;
}
:root[data-theme="dark"] .abn-item { color: #888377; }
:root[data-theme="dark"] .abn-item.active { color: #6FC2BD; }
:root[data-theme="dark"] .abn-item:hover { color: #6FC2BD; }

:root[data-theme="dark"] .app-mode-modal { background: #232017; }
:root[data-theme="dark"] .app-mode-modal h3 { color: #e8e3d6; }
:root[data-theme="dark"] .app-mode-modal p { color: #c4bfb2; }
:root[data-theme="dark"] .amm-icon {
  background: rgba(111, 194, 189, 0.15);
  color: #6FC2BD;
}
:root[data-theme="dark"] .amm-btn-cancel { color: #6FC2BD; border-color: #6FC2BD; }
:root[data-theme="dark"] .amm-btn-confirm {
  background: #6FC2BD; color: #1a1815; border-color: #6FC2BD;
}

:root[data-theme="dark"] .ah-greeting h1 { color: #e8e3d6; }
:root[data-theme="dark"] .ah-streak-pill {
  background: rgba(200, 154, 60, 0.18);
  color: #d8b266;
}
:root[data-theme="dark"] .ah-section-label { color: #a89a78; }
:root[data-theme="dark"] .ah-continue { background: #2C5856; }

:root[data-theme="dark"] .ah-card {
  background: #28241e;
  border-color: #3a3530;
}
:root[data-theme="dark"] .ah-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
:root[data-theme="dark"] .ah-card-title { color: #e8e3d6; }
:root[data-theme="dark"] .ah-card-sub { color: #9e9482; }
:root[data-theme="dark"] .ah-c-teal .ah-card-icon {
  background: rgba(111, 194, 189, 0.15);
  color: #6FC2BD;
}
:root[data-theme="dark"] .ah-c-gold .ah-card-icon {
  background: rgba(216, 178, 102, 0.18);
  color: #d8b266;
}
:root[data-theme="dark"] .ah-c-coral .ah-card-icon {
  background: rgba(220, 130, 100, 0.18);
  color: #dc8264;
}
:root[data-theme="dark"] .ah-c-purple .ah-card-icon {
  background: rgba(150, 135, 215, 0.18);
  color: #9687d7;
}

:root[data-theme="dark"] .ah-word-card {
  background: #28241e;
  border-color: #3a3530;
}
:root[data-theme="dark"] .ah-word-text { color: #6FC2BD; }
:root[data-theme="dark"] .ah-word-pos { color: #a89a78; }
:root[data-theme="dark"] .ah-word-pron { color: #9e9482; }
:root[data-theme="dark"] .ah-word-def { color: #d8d2c0; }

:root[data-theme="dark"] .ah-premium-card {
  background: linear-gradient(135deg, rgba(216, 178, 102, 0.16), rgba(111, 194, 189, 0.1));
  border-color: rgba(216, 178, 102, 0.45);
}
:root[data-theme="dark"] .ah-premium-icon {
  background: #d8b266;
  color: #1a1815;
}
:root[data-theme="dark"] .ah-premium-title { color: #e8e3d6; }
:root[data-theme="dark"] .ah-premium-sub { color: #b8b0a2; }
:root[data-theme="dark"] .ah-premium-arrow { color: #d8b266; }

/* ===== APP MODE PAGE UX (Faz 1.7-D) ===== */
.app-mode .site-footer { display: none !important; }
.app-mode .site-header { padding: 0.3rem 0 !important; }
.app-mode .site-header .brand { font-size: 0.95rem !important; }
.app-mode .site-header .wrap {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}
.app-mode .qb-hub-hero { padding: 1.2rem 0 0.5rem !important; }
.app-mode .qb-hub-hero .eyebrow {
  font-size: 9px !important;
  margin-bottom: 0.3rem !important;
}
.app-mode .qb-hub-hero h1 {
  font-size: 1.7rem !important;
  margin: 0.2rem 0 0.5rem !important;
  line-height: 1.15 !important;
}
.app-mode .qb-hub-hero .divider { margin: 0.4rem auto !important; }
.app-mode .qb-hub-hero .lead {
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  margin-bottom: 0.7rem !important;
}
.app-mode .qb-hub-hero .stats {
  margin-top: 0.7rem !important;
  gap: 1.2rem !important;
}
.app-mode .qb-hub-hero .stats .s-num { font-size: 1.4rem !important; }
.app-mode .qb-hub-hero .stats .s-lbl { font-size: 9px !important; }
.app-mode .qb-hub-grid { gap: 0.7rem !important; }
@media (max-width: 700px) {
  .app-mode .qb-hub-grid { grid-template-columns: 1fr !important; }
}
.app-mode .qb-hub-card { padding: 1rem 1.1rem !important; }
.app-mode .qb-hub-card h3 {
  font-size: 1.1rem !important;
  margin-bottom: 0.3rem !important;
}
.app-mode .qb-hub-desc {
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
  margin-bottom: 0.5rem !important;
}
.app-mode .qb-hub-meta { margin-top: 0.4rem !important; }
.app-mode .qb-hub-meta .m-num { font-size: 0.95rem !important; }
.app-mode .qb-hub-meta .m-lbl { font-size: 9px !important; }
.app-mode section[style*="padding: 1rem 0 5rem"] {
  padding: 0.5rem 0 1rem !important;
}
.app-mode .page-hero {
  padding-top: 1rem !important;
  padding-bottom: 0.8rem !important;
}
.app-mode .page-hero h1 { font-size: 1.6rem !important; }
.app-mode .yp-hero,
.app-mode .writing-hero { padding: 1rem 0 0.6rem !important; }
.app-mode .top-banner,
.app-mode .promo-strip,
.app-mode .announcement-bar,
.app-mode .global-discount-banner,
.app-mode #global-discount-banner,
.app-mode .home-discount-banner { display: none !important; }
@media (max-width: 700px) {
  body.app-mode { padding-bottom: 78px !important; }
}

/* ===== FLOATING PILL DOCK (Faz 1.7-D3) ===== */

/* Body padding (floating dock için yeterli alan) */
@media (max-width: 700px) {
  body.app-mode:not(.has-actionbar) {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.app-mode.has-actionbar {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* === Bottom navigation (anasayfa, hub sayfaları, vs) === */
.app-bottom-nav {
  bottom: max(14px, env(safe-area-inset-bottom, 14px)) !important;
  left: 14px !important;
  right: 14px !important;
  height: auto !important;
  background: rgba(26, 31, 37, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-top: none !important;
  border-radius: 22px !important;
  padding: 7px 6px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  gap: 4px !important;
  box-sizing: border-box !important;
}

.abn-item {
  flex: 0 1 auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 9px 11px !important;
  border-radius: 14px !important;
  color: #888377 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.abn-item.active {
  background: #2C5856 !important;
  color: #F4EFE3 !important;
  padding: 9px 14px !important;
}

.abn-icon {
  width: 18px !important;
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.abn-label {
  font-size: 0 !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  font-family: 'Inter', sans-serif !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  transition: font-size 0.2s ease !important;
}

.abn-item.active .abn-label {
  font-size: 11.5px !important;
}

/* === q-actionbar (soru sayfası) app modu === */
@media (max-width: 700px) {
  .app-mode .q-actionbar {
    bottom: max(14px, env(safe-area-inset-bottom, 14px)) !important;
    left: 14px !important;
    right: 14px !important;
    background: rgba(26, 31, 37, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-top: none !important;
    border: none !important;
    border-radius: 22px !important;
    padding: 7px 8px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    gap: 4px !important;
    box-sizing: border-box !important;
  }

  .app-mode .q-nav-pill {
    background: rgba(244, 239, 227, 0.1) !important;
    color: #F4EFE3 !important;
    border: none !important;
    padding: 7px 11px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
  }
  .app-mode .q-nav-pill .np-count strong { color: #F4EFE3 !important; }
  .app-mode .q-nav-pill .np-count { color: rgba(244, 239, 227, 0.75) !important; }
  .app-mode .q-nav-pill .np-caret { color: rgba(244, 239, 227, 0.6) !important; }

  .app-mode .q-btn {
    background: transparent !important;
    color: #c4bfb2 !important;
    border: none !important;
    padding: 9px 10px !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
  }
  .app-mode .q-btn:hover,
  .app-mode .q-btn:active {
    background: rgba(244, 239, 227, 0.1) !important;
    color: #F4EFE3 !important;
  }

  .app-mode .q-btn-explain,
  .app-mode .q-btn-vocab {
    color: #6FC2BD !important;
  }
  .app-mode .q-btn-explain:hover,
  .app-mode .q-btn-vocab:hover {
    background: rgba(111, 194, 189, 0.15) !important;
    color: #6FC2BD !important;
  }
}

/* Light theme - dock'un light moddaki versiyonu da koyu cam (premium his) */
