/* ==========================================================================
   YULA STUDIOS — ACCESSIBILITY & USABILITY ENHANCEMENTS (usability.css)
   Clean interaction fixes, focus indicators, and responsive safeguards
   ========================================================================== */

/* Safeguard against horizontal scroll across all viewports */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

/* Shared interaction baseline across the studio and every product route. */
:where(a, button, input, textarea, select) {
  -webkit-tap-highlight-color: transparent;
}

:where(button, input, textarea, select):disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

:where(input, textarea, select)::placeholder {
  color: #64748b;
  opacity: 1;
}

@media (max-width: 480px) {
  .wrap, .nav-inner {
    width: min(100% - 24px, var(--max, 1200px));
  }
  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}

/* Accessibility: Skip Link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  z-index: 100000;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent2, #fbbf24);
  color: #07080c;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus {
  transform: translateY(0);
}

/* High-Visibility Focus Outline */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid #ff7a00 !important;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Instant-on: Loader disabled for fast perceived performance */
#loader {
  display: none !important;
}

/* Global Dock Usability */
#yulaGlobalDock {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 24px);
}

#yulaGlobalDock .dock-audio-btn {
  background: rgba(24, 27, 36, 0.9);
  border: 1px solid rgba(255, 122, 0, 0.25);
  border-radius: 999px;
  color: #fbbf24;
  padding: 8px 14px;
  min-height: 40px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

#heroFastSearch {
  min-width: 0;
}

/* Notices and Badges */
.ai-data-notice {
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.privacy-inline-note {
  margin: -2px 0 10px;
  color: #4ade80;
  font-size: 0.78rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* PWA Update Toast */
.pwa-update-toast {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 100001;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 18px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 14px;
  background: rgba(14, 16, 24, 0.96);
  color: #f8fafc;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.pwa-update-toast div {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}
.pwa-update-toast strong {
  color: #fbbf24;
  font-size: 0.88rem;
}
.pwa-update-toast span {
  color: #94a3b8;
  font-size: 0.78rem;
}
.pwa-update-toast button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: linear-gradient(135deg, #ff7a00, #fbbf24);
  color: #07080c;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.pwa-update-toast button:hover {
  transform: translateY(-1px);
}

/* Responsive Mobile Refinements */
@media (max-width: 768px) {
  #yulaGlobalDock {
    position: static;
    transform: none;
    margin: 20px auto;
    border-radius: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    width: calc(100% - 24px);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(7, 10, 16, .97);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .48);
  }
  #yulaGlobalDock:hover {
    transform: none;
  }
  #yulaGlobalDock .dock-container {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 4px;
  }
  #yulaGlobalDock .dock-item {
    min-width: 70px;
    min-height: 44px;
    padding: 6px;
  }
  #yulaGlobalDock .dock-label {
    display: block !important;
    font-size: 0.62rem;
  }
  #mascot-widget {
    position: static;
    align-items: center;
    margin: 20px auto;
  }
  #mascot-speech {
    display: none !important;
  }
  .hero-logo-container {
    margin-bottom: 10px !important;
  }
  .hero-logo-img {
    width: 68px !important;
    height: 68px !important;
  }
  .hero-desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .pwa-update-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 480px) {
  .hero-search-wrap > div > span:last-child {
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
  }
}

/* Reduced Motion Safeguard */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #embers-canvas, #hero-canvas, #particleCanvas, #torch {
    display: none !important;
  }
}

/* ==========================================================================
   YULA STUDIOS — AAA EXPERIENCE LAYER
   A single visual rhythm for the home surface and product routes.
   ========================================================================== */
:root {
  --aaa-line: rgba(255, 255, 255, 0.11);
  --aaa-line-soft: rgba(255, 255, 255, 0.065);
  --aaa-glass: rgba(10, 14, 24, 0.72);
  --aaa-glass-raised: rgba(16, 21, 34, 0.88);
}

body.project-home {
  background-color: #04060a;
  background-image:
    radial-gradient(circle at 50% -20%, rgba(255, 122, 0, 0.16), transparent 48%),
    radial-gradient(circle at 8% 35%, rgba(56, 189, 248, 0.055), transparent 28%),
    linear-gradient(180deg, #070a10 0%, #04060a 60%, #05070c 100%);
}

body.project-home .nav {
  background: linear-gradient(180deg, rgba(4, 6, 10, 0.86), rgba(4, 6, 10, 0.54));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

body.project-home .nav.scrolled {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: rgba(7, 10, 16, 0.94);
  border-bottom-color: var(--aaa-line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

body.project-home .nav-inner {
  max-width: 1440px;
}

body.project-home .nav-logo {
  letter-spacing: 0.09em;
  text-shadow: 0 0 22px rgba(255, 122, 0, 0.2);
}

body.project-home .nav-links > li > a,
body.project-home .nav-spotlight-pill,
body.project-home .nav-sound-toggle,
body.project-home .nav-lang-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.project-home .nav-links > li > a:hover,
body.project-home .nav-spotlight-pill:hover,
body.project-home .nav-sound-toggle:hover,
body.project-home .nav-lang-btn:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 122, 0, 0.32);
}

body.project-home #hero {
  isolation: isolate;
  padding-top: clamp(7rem, 14vh, 10rem);
}

body.project-home .hero-content {
  max-width: 1080px;
}

body.project-home .hero-title {
  text-wrap: balance;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.74);
}

body.project-home .hero-desc {
  max-width: 720px;
  color: #b8c2d1;
}

body.project-home .hero-search-wrap {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.24));
}

body.project-home .hero-search-wrap > div:first-child {
  min-height: 58px;
  border-color: rgba(251, 191, 36, 0.4) !important;
  background: linear-gradient(115deg, rgba(17, 22, 35, 0.94), rgba(8, 12, 20, 0.86)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 48px rgba(0, 0, 0, 0.44) !important;
}

body.project-home .hero-live-badge {
  min-height: 28px;
  padding-inline: 0.72rem;
  backdrop-filter: blur(10px);
}

body.project-home .hero-buttons {
  gap: 0.7rem;
}

body.project-home .hero-buttons > * {
  min-height: 48px;
}

body.project-home .section-container {
  position: relative;
}

body.project-home .section-container > h2,
body.project-home .section-container > .section-title {
  text-wrap: balance;
}

body.project-home .eco-card,
body.project-home .app-card,
body.project-home .why-card,
body.project-home .mv-card,
body.project-home .timeline-content,
body.project-home .contact-info,
body.project-home .contact-form,
body.project-home .newsletter-band {
  border-color: var(--aaa-line-soft);
  background: linear-gradient(145deg, rgba(18, 23, 37, 0.84), rgba(8, 11, 19, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.22);
}

body.project-home .eco-card:hover,
body.project-home .app-card:hover,
body.project-home .why-card:hover,
body.project-home .mv-card:hover,
body.project-home .timeline-content:hover,
body.project-home .contact-info:hover,
body.project-home .contact-form:hover {
  border-color: rgba(255, 122, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 56px rgba(0, 0, 0, 0.36), 0 0 28px rgba(255, 122, 0, 0.1);
}

body.project-home .footer-bottom {
  gap: 1rem;
}

body.project-home .mobile-menu {
  border: 1px solid var(--aaa-line);
  background: rgba(6, 9, 15, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

@media (max-width: 680px) {
  body.project-home #hero {
    min-height: auto;
    padding-top: 7.2rem;
    padding-bottom: 4.8rem;
  }
  body.project-home .hero-search-wrap > div:first-child {
    border-radius: 18px !important;
    padding-inline: 14px !important;
  }
  body.project-home .hero-search-wrap kbd,
  body.project-home .hero-search-wrap span:last-child {
    display: none;
  }
  body.project-home .hero-buttons > * {
    width: min(100%, 340px);
  }
}

/* ==========================================================================
   YULA STUDIOS — UNIVERSAL OMNIBAR COMMAND CENTER (Ctrl+K everywhere)
   ========================================================================== */
.yula-omnibar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  z-index: 1000000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 12vh, 100px) 16px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.yula-omnibar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.yula-omnibar-modal {
  width: 100%;
  max-width: 640px;
  background: rgba(13, 16, 26, 0.95);
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 122, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.yula-omnibar-overlay.active .yula-omnibar-modal {
  transform: translateY(0) scale(1);
}

.yula-omnibar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yula-omnibar-icon {
  color: #ff7a00;
  font-size: 1.1rem;
}

.yula-omnibar-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
}

.yula-omnibar-kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: monospace;
}

.yula-omnibar-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yula-omnibar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.yula-omnibar-item:hover, .yula-omnibar-item.selected {
  background: rgba(255, 122, 0, 0.14);
  color: #fff;
}

.yula-omnibar-item.selected .yula-omnibar-item-name {
  color: #fbbf24;
}

.yula-omnibar-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.yula-omnibar-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ff7a00;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.yula-omnibar-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.yula-omnibar-item-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yula-omnibar-item-desc {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yula-omnibar-item-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  flex-shrink: 0;
}

.yula-omnibar-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 10, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
}

.yula-omnibar-hints {
  display: flex;
  gap: 12px;
  align-items: center;
}

.yula-omnibar-hints kbd {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  color: #94a3b8;
  font-family: monospace;
}

#yulaGlobalDock .dock-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
  padding: 6px 10px;
}
#yulaGlobalDock .dock-btn:hover {
  transform: translateY(-2px) scale(1.06);
  color: #ff7a00;
}
#yulaGlobalDock .dock-btn .dock-icon {
  font-size: 1.15rem;
  line-height: 1.2;
}

/* ==========================================================================
   YULA STUDIOS — ZERO-CLOUD P2P VAULT (Yerel Kasa & P2P Eşitleme)
   ========================================================================== */
.yula-vault-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}

.yula-vault-overlay.active {
  opacity: 1;
  visibility: visible;
}

.yula-vault-modal {
  width: 100%;
  max-width: 580px;
  background: rgba(13, 16, 26, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(59, 130, 246, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.yula-vault-overlay.active .yula-vault-modal {
  transform: scale(1) translateY(0);
}

.yula-vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yula-vault-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yula-vault-header-title i {
  font-size: 1.4rem;
  color: #60a5fa;
}

.yula-vault-header-title h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.yula-vault-header-title p {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: #94a3b8;
}

.yula-vault-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.yula-vault-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.yula-vault-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 75vh;
  overflow-y: auto;
}

.yula-vault-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.yula-vault-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.yula-vault-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
}

.yula-vault-stat-label {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.yula-vault-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.yula-vault-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.yula-vault-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.yula-vault-btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
}

.yula-vault-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
}
.yula-vault-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.yula-vault-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
  grid-column: span 2;
}
.yula-vault-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  transform: translateY(-1px);
}

.yula-vault-qr-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px dashed rgba(59, 130, 246, 0.35);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.yula-vault-qr-box.active {
  display: flex;
}

.yula-vault-qr-code {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 170px;
}

.yula-vault-footer-note {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.yula-vault-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000005;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.yula-vault-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   DYNAMIC TIME-OF-DAY ATMOSPHERE
   ========================================================================== */
html.yula-time-dawn body {
  --ambient-tint: rgba(251, 146, 60, 0.03);
}
html.yula-time-day body {
  --ambient-tint: rgba(56, 189, 248, 0.02);
}
html.yula-time-dusk body {
  --ambient-tint: rgba(244, 63, 94, 0.03);
}
html.yula-time-night body {
  --ambient-tint: rgba(99, 102, 241, 0.03);
}

/* ==========================================================================
   YULA STUDIOS — WORKSPACE OS & MULTI-TASKING (Bölünmüş Ekran & Çoklu Görev)
   ========================================================================== */
.yula-workspace-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000002;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.yula-workspace-overlay.active {
  opacity: 1;
  visibility: visible;
}
.yula-workspace-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.yula-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(13, 16, 26, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  flex-wrap: wrap;
}
.yula-workspace-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}
.yula-workspace-badge {
  background: linear-gradient(135deg, #ff7a00, #fbbf24);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}
.yula-workspace-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.yula-workspace-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.yula-workspace-preset-btn:hover {
  background: rgba(255, 122, 0, 0.15);
  border-color: rgba(255, 122, 0, 0.35);
  color: #fbbf24;
}
.yula-workspace-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.yula-workspace-ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s;
}
.yula-workspace-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.yula-workspace-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.yula-workspace-ratio-group {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.yula-workspace-ratio-btn {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: #94a3b8;
  padding: 4px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}
.yula-workspace-ratio-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.yula-workspace-body {
  display: flex;
  flex: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.yula-workspace-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #05070a;
  min-width: 200px;
}
.yula-workspace-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: #64748b;
}
.yula-workspace-pane-header a {
  color: #94a3b8;
  text-decoration: none;
}
.yula-workspace-pane-header a:hover {
  color: #38bdf8;
}
.yula-workspace-pane iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #090d16;
}
.yula-workspace-divider {
  width: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: col-resize;
  transition: background 0.15s;
  position: relative;
  z-index: 10;
}
.yula-workspace-divider:hover {
  background: rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   YULA STUDIOS — PIPELINE & MACRO AUTOMATOR (Otomatör Motoru)
   ========================================================================== */
.yula-automator-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.yula-automator-overlay.active {
  opacity: 1;
  visibility: visible;
}
.yula-automator-modal {
  width: 100%;
  max-width: 600px;
  background: rgba(13, 16, 26, 0.96);
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 122, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.yula-automator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.yula-automator-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.yula-automator-header-title i {
  font-size: 1.3rem;
  color: #ff7a00;
}
.yula-automator-header-title h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.yula-automator-header-title p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}
.yula-automator-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.15s;
}
.yula-automator-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.yula-automator-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 75vh;
  overflow-y: auto;
}
.yula-automator-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.yula-macro-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.yula-macro-tab.active {
  background: rgba(255, 122, 0, 0.2);
  color: #fbbf24;
}
.yula-macro-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.yula-macro-panel.active {
  display: flex;
}
.yula-macro-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}
.yula-macro-dropzone {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.yula-macro-dropzone:hover {
  border-color: #ff7a00;
  background: rgba(255, 122, 0, 0.04);
}
.yula-macro-textarea {
  width: 100%;
  height: 85px;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f8fafc;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  resize: vertical;
}
.yula-macro-input {
  width: 100%;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f8fafc;
  padding: 8px 12px;
  font-size: 0.82rem;
}
.yula-macro-action-btn {
  background: linear-gradient(135deg, #ff7a00, #ea580c);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s;
}
.yula-macro-action-btn:hover {
  transform: translateY(-1px);
}

/* Shared motion language for the home experience: slow enough to feel
   atmospheric, subtle enough to keep the content in command. */
@keyframes yulaHomeAmbient {
  0% { transform: scale(1.005) translate3d(0, 0, 0); }
  100% { transform: scale(1.035) translate3d(-0.6%, -0.35%, 0); }
}

body.project-home .bg-layer.active {
  animation: yulaHomeAmbient 18s ease-in-out infinite alternate;
}

body.project-home .ecosystem-card,
body.project-home .quick-tool-card,
body.project-home .project-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

body.project-home .ecosystem-card:hover,
body.project-home .quick-tool-card:hover,
body.project-home .project-card:hover {
  transform: translateY(-6px);
}

/* Keep the long-form home page light on first paint while preserving the
   existing scroll-reveal and section tracking behavior. */
body.project-home main > section:not(#hero),
body.project-home main > footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

@media (prefers-reduced-data: reduce) {
  body.project-home .bg-layer:not(.active) { display: none; }
  body.project-home .bg-layer.active { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.project-home .bg-layer.active { animation: none !important; }
}
