/* ============================================
   GEBİP Modu — Turkuaz Genç Akademi teması
   ============================================ */

body.tubis-body.sv-app-shell.tubis-gebip-mode {
  --sv-app-accent: #028eac;
  --gebip-teal: #028eac;
  --gebip-teal-deep: #01758f;
  --gebip-teal-dark: #015f74;
  --gebip-teal-light: #06a7c8;
  --gebip-teal-soft: rgba(2, 142, 172, 0.16);
  --gebip-cyan-glow: rgba(6, 167, 200, 0.34);
  --sv-app-surface-top: #f0fdfa;
  --sv-app-surface-mid: #ecfeff;
  --sv-app-surface-bottom: #e0f2fe;
}

body.tubis-body.sv-app-shell.tubis-gebip-mode::before {
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(45, 212, 191, 0.45) 50%, transparent 52%),
    radial-gradient(1px 1px at 82% 68%, rgba(255, 255, 255, 0.22) 50%, transparent 52%),
    radial-gradient(1px 1px at 48% 90%, rgba(20, 184, 166, 0.32) 50%, transparent 52%),
    radial-gradient(1px 1px at 90% 35%, rgba(255, 255, 255, 0.16) 50%, transparent 52%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.477-27.14 47.008-27.14-47.008.83-.477L28.317 45.454 54.627 0zM28.317 60L1.177 12.992l-.83.477L28.317 60l27.97-46.531-.83-.477L28.317 60z' fill='%232dd4bf' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"),
    linear-gradient(
      125deg,
      rgba(4, 20, 24, 0.97) 0%,
      rgba(8, 32, 38, 0.92) 35%,
      rgba(12, 48, 52, 0.88) 55%,
      rgba(4, 18, 22, 0.95) 100%
    ),
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(20, 184, 166, 0.14) 42%,
      rgba(6, 182, 212, 0.1) 58%,
      transparent 100%
    );
}

body.tubis-body.sv-app-shell.tubis-gebip-mode::after {
  background:
    radial-gradient(ellipse 55% 42% at 8% 92%, rgba(13, 148, 136, 0.32) 0%, transparent 58%),
    radial-gradient(ellipse 48% 38% at 94% 8%, rgba(45, 212, 191, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 45% 35% at 72% 48%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(4, 12, 16, 0.45) 0%, transparent 22%, transparent 78%, rgba(4, 12, 16, 0.55) 100%);
}

body.tubis-body.sv-app-shell.tubis-gebip-mode > main.tubis-main {
  border-color: rgba(45, 212, 191, 0.28);
  box-shadow:
    0 0 0 1px rgba(8, 32, 38, 0.85),
    0 0 0 3px rgba(20, 184, 166, 0.42),
    0 0 0 5px rgba(4, 12, 16, 0.95),
    0 0 0 1px rgba(45, 212, 191, 0.08) inset,
    0 -28px 70px -38px rgba(20, 184, 166, 0.38),
    0 -18px 44px -32px rgba(13, 148, 136, 0.28),
    0 -4px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.tubis-body.sv-app-shell.tubis-gebip-mode > main.tubis-main::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(13, 148, 136, 0.7) 18%,
    rgba(240, 253, 250, 0.85) 48%,
    rgba(45, 212, 191, 0.75) 72%,
    transparent 100%
  );
}

/* Header */
body.tubis-gebip-mode .sv-app-header {
  border-bottom-color: rgba(45, 212, 191, 0.18);
}

body.tubis-gebip-mode .sv-app-header-accent {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 118, 110, 0.5) 12%,
    #028eac 35%,
    #06a7c8 50%,
    #028eac 65%,
    rgba(15, 118, 110, 0.5) 88%,
    transparent 100%
  );
  background-size: 200% 100%;
}

body.tubis-gebip-mode .sv-app-brand-sub {
  color: #5eead4;
  letter-spacing: 0.18em;
}

body.tubis-gebip-mode .sv-app-nav--gebip {
  gap: 0.5rem;
}

body.tubis-gebip-mode .sv-app-link.sv-app-link--gebip {
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: rgba(20, 184, 166, 0.08);
  color: #fff;
}

body.tubis-gebip-mode .sv-app-link.sv-app-link--gebip i {
  color: #fff;
}

body.tubis-gebip-mode .sv-app-link.sv-app-link--gebip:hover {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(20, 184, 166, 0.16);
  color: #ccfbf1;
}

body.tubis-gebip-mode .sv-app-link.sv-app-link--gebip.active {
  color: #fff;
  background: linear-gradient(135deg, #06a7c8 0%, #028eac 55%, #01758f 100%);
  border-color: rgba(94, 234, 212, 0.65);
  box-shadow:
    0 2px 12px rgba(13, 148, 136, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

body.tubis-gebip-mode .sv-app-link.sv-app-link--gebip.active:hover {
  color: #fff;
  background: linear-gradient(135deg, #5ed7ee 0%, #06a7c8 55%, #028eac 100%);
}

/* Mod çubuğu */
.tubis-mode-bar {
  position: relative;
  margin: -0.5rem 0 1.35rem;
  border-radius: calc(var(--tuba-radius, 12px) + 2px);
  overflow: hidden;
  border: 1px solid rgba(13, 148, 136, 0.22);
  background: linear-gradient(115deg, #f0fdfa 0%, #ecfeff 42%, #cffafe 100%);
  box-shadow:
    0 1px 2px rgba(15, 118, 110, 0.06),
    0 10px 28px -8px rgba(13, 148, 136, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: tubis-gebip-mode-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tubis-mode-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #06a7c8 0%, #01758f 100%);
}

.tubis-mode-bar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  padding: 0.85rem 1.15rem 0.85rem 1.25rem;
}

.tubis-mode-bar-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(145deg, #028eac 0%, #01758f 100%);
  box-shadow: 0 6px 16px rgba(2, 142, 172, 0.28);
  flex-shrink: 0;
}

.tubis-mode-bar-text {
  flex: 1;
  min-width: 0;
}

.tubis-mode-bar-text strong {
  display: block;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #115e59;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.tubis-mode-bar-sub {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.8125rem;
  color: #0f766e;
  opacity: 0.92;
}

@keyframes tubis-gebip-mode-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.tubis-gebip-mode .tubis-main .btn-tuba {
  background: linear-gradient(135deg, #028eac 0%, #01758f 100%);
}

body.tubis-gebip-mode .tubis-main .btn-tuba:hover {
  background: linear-gradient(135deg, #06a7c8 0%, #028eac 100%);
  color: #fff;
}

body.tubis-gebip-mode .tubis-stat-panel.active {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.2) inset,
    0 12px 32px -12px rgba(13, 148, 136, 0.28);
}

body.tubis-gebip-mode .tubis-stat-panel.active .tubis-stat-panel-icon {
  background: linear-gradient(135deg, #028eac 0%, #01758f 100%);
}

body.tubis-gebip-mode .tubis-search-panel-head-icon,
body.tubis-gebip-mode .tubis-table-panel-head-icon {
  background: linear-gradient(135deg, #028eac 0%, #01758f 100%);
}

body.tubis-gebip-mode .tubis-edit-tabs .nav-link.active {
  color: #0f766e;
  border-bottom-color: #028eac;
}

body.tubis-gebip-mode .tubis-edit-btn-save {
  background: linear-gradient(135deg, #028eac 0%, #01758f 100%);
  border-color: #01758f;
}

body.tubis-gebip-mode .tubis-edit-btn-save:hover {
  background: linear-gradient(135deg, #06a7c8 0%, #028eac 100%);
}

/* Mod geçiş anahtarı — profil yanında */
.tubis-mode-switch {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
  min-width: 9.5rem;
  flex-shrink: 0;
}

.tubis-mode-switch-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 4.5px);
  border-radius: 999px;
  background: linear-gradient(180deg, #d8112c 0%, #9a0016 100%);
  box-shadow:
    0 2px 8px rgba(192, 0, 26, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    left 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.32s ease,
    box-shadow 0.32s ease;
  pointer-events: none;
  z-index: 0;
}

.tubis-mode-switch.is-gebip .tubis-mode-switch-thumb {
  left: calc(50% + 1.5px);
  background: linear-gradient(135deg, #06a7c8 0%, #01758f 100%);
  box-shadow:
    0 2px 10px rgba(13, 148, 136, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.tubis-mode-switch-option {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(226, 232, 240, 0.72);
  white-space: nowrap;
  transition: color 0.22s ease;
}

.tubis-mode-switch-option i {
  font-size: 0.78rem;
  opacity: 0.85;
}

.tubis-mode-switch-option.is-active {
  color: #fff;
}

.tubis-mode-switch-option.is-active i {
  opacity: 1;
}

.tubis-mode-switch-option:not(.is-active):hover {
  color: #f8fafc;
}

body.tubis-gebip-mode .sv-app-actions {
  gap: 0.55rem;
}

.tubis-mode-switch--single {
  min-width: auto;
  padding: 3px 0.65rem;
  cursor: default;
}

.tubis-mode-switch--single .tubis-mode-switch-option {
  padding: 0.38rem 0.75rem;
  cursor: default;
  color: #fff;
}

.tubis-mode-switch--single .tubis-mode-switch-option.is-active {
  color: #ccfbf1;
}

@media (max-width: 767.98px) {
  .tubis-mode-switch {
    min-width: 7.5rem;
  }

  .tubis-mode-switch-option span {
    display: none;
  }

  .tubis-mode-switch-option {
    padding: 0.42rem 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .tubis-mode-bar-inner {
    padding: 0.75rem 0.9rem 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tubis-mode-switch-thumb {
    transition: none;
  }

  .tubis-mode-bar {
    animation: none;
  }
}

/* Hızlı erişim panelleri — GEBİP turkuaz teması */
body.tubis-gebip-mode .tubis-recent-panel {
  border-color: rgba(13, 148, 136, 0.12);
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.04), 0 8px 24px rgba(13, 148, 136, 0.08);
}

body.tubis-gebip-mode .tubis-recent-panel-viewed::before {
  background: linear-gradient(90deg, #015f74 0%, #028eac 50%, #06a7c8 100%);
}

body.tubis-gebip-mode .tubis-recent-panel-updated::before {
  background: linear-gradient(90deg, #01758f 0%, #028eac 50%, #5ed7ee 100%);
}

body.tubis-gebip-mode .tubis-recent-panel-head {
  border-bottom-color: rgba(13, 148, 136, 0.1);
}

body.tubis-gebip-mode .tubis-recent-panel-icon-viewed {
  background: linear-gradient(135deg, #015f74 0%, #028eac 100%);
  box-shadow: 0 4px 12px rgba(2, 142, 172, 0.25);
}

body.tubis-gebip-mode .tubis-recent-panel-icon-updated {
  background: linear-gradient(135deg, #01758f 0%, #06a7c8 100%);
  box-shadow: 0 4px 12px rgba(6, 167, 200, 0.25);
}

body.tubis-gebip-mode .tubis-recent-panel-badge {
  background: linear-gradient(135deg, #015f74 0%, #028eac 100%);
  box-shadow: 0 2px 8px rgba(2, 142, 172, 0.35);
}

body.tubis-gebip-mode .tubis-recent-panel-badge-updated {
  background: linear-gradient(135deg, #01758f 0%, #06a7c8 100%);
  box-shadow: 0 2px 8px rgba(6, 167, 200, 0.35);
}

body.tubis-gebip-mode .tubis-recent-scroll {
  scrollbar-color: rgba(13, 148, 136, 0.25) transparent;
}

body.tubis-gebip-mode .tubis-recent-scroll::-webkit-scrollbar-thumb {
  background: rgba(13, 148, 136, 0.25);
}

body.tubis-gebip-mode .tubis-recent-chip:hover {
  border-color: rgba(20, 184, 166, 0.28);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.12);
}

body.tubis-gebip-mode .tubis-recent-panel-updated .tubis-recent-chip:hover {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.14);
}

body.tubis-gebip-mode .tubis-recent-chip-photo {
  background: linear-gradient(145deg, #ccfbf1 0%, #f0fdfa 100%);
  color: #0d9488;
}

body.tubis-gebip-mode .tubis-recent-chip-tag {
  background: rgba(2, 142, 172, 0.12);
  color: #015f74;
}

body.tubis-gebip-mode .tubis-recent-chip-tag-updated {
  background: rgba(45, 212, 191, 0.18);
  color: #115e59;
}

body.tubis-gebip-mode .tubis-recent-chip:hover .tubis-recent-chip-arrow {
  color: #0d9488;
}

body.tubis-gebip-mode .tubis-recent-panel-updated .tubis-recent-chip:hover .tubis-recent-chip-arrow {
  color: #028eac;
}

body.tubis-gebip-mode .tubis-recent-empty {
  border-color: rgba(13, 148, 136, 0.18);
}

body.tubis-gebip-mode .tubis-recent-empty-icon {
  background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%);
  color: #0d9488;
}

body.tubis-gebip-mode .tubis-recent-panels-toggle {
  border-color: rgba(13, 148, 136, 0.12);
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.04), 0 4px 14px rgba(13, 148, 136, 0.08);
}

body.tubis-gebip-mode .tubis-recent-panels-toggle:hover {
  border-color: rgba(20, 184, 166, 0.28);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
}

body.tubis-gebip-mode .tubis-recent-panels-toggle-icon {
  background: linear-gradient(135deg, #015f74 0%, #028eac 100%);
  box-shadow: 0 2px 8px rgba(2, 142, 172, 0.28);
}

body.tubis-gebip-mode .tubis-recent-panels-toggle-meta strong {
  color: #0f766e;
}

body.tubis-gebip-mode .tubis-recent-panels-toggle:not(.collapsed) .tubis-recent-panels-toggle-chevron {
  color: #0d9488;
}

body.tubis-gebip-mode .tubis-recent-panels-toggle:not(.collapsed) {
  border-color: rgba(20, 184, 166, 0.22);
}

body.tubis-gebip-mode #tubisGebipRecentPanelsBody.collapsing,
body.tubis-gebip-mode #tubisGebipRecentPanelsBody.show {
  border-color: rgba(13, 148, 136, 0.12);
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
}
