/* ============================================================
   COMPONENTS — wspólne komponenty UI obu ekranów
   (nagłówek, logo, theme toggle, dev-bar, honeypot, toast)
   ============================================================ */

/* ============================================================
   NAGŁÓWEK EKRANU
   ============================================================ */
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-24);
  padding-top: var(--space-16);
}

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  text-decoration: none;
}

.logo-symbol {
  display: block;
  width: 78px;
  height: 78px;
  background: url(../resources/symbol_light_transparent.png) center/contain no-repeat;
  flex-shrink: 0;
}

[data-theme="dark"] .logo-symbol {
  filter:
    drop-shadow(0 0 10px rgba(248, 193, 80, 0.75))
    drop-shadow(0 0 28px rgba(248, 160, 20, 0.45));
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
}

.logo-wordmark {
  font-family: 'Nunito', 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(160deg, #ffeec0 0%, #c74e20 50%, #fdc49b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    0 0 18px rgba(248, 193, 80, 0.65),
    0 0 40px rgba(248, 160, 20, 0.35);
}

[data-theme="light"] .logo-wordmark {
  background: linear-gradient(160deg, #C8820A 0%, #A05E08 50%, #7A3D04 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.logo-tagline {
  font-family: 'Nunito', 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: rgba(200, 140, 20, 0.75);
  margin-top: 1px;
  align-self: flex-end;
}

[data-theme="dark"] .logo-tagline {
  color: rgba(248, 193, 80, 0.55);
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.btn-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--anim-duration-fast) var(--anim-easing-default);
}

.btn-theme-toggle:active { transform: scale(0.9); }

[data-theme="dark"] .btn-theme-toggle {
  color: #F6C94E;
  border-color: rgba(246,201,78,0.55);
  background: rgba(246,201,78,0.08);
}

/* Theme toggle icons — CSS-driven, no JS needed */
.icon-moon { display: block; }
.icon-sun  { display: none;  }
[data-theme="dark"] .icon-moon { display: none;  }
[data-theme="dark"] .icon-sun  { display: block; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}

/* ============================================================
   DEV BAR — przełączniki testowe (ukryć w produkcji)
   ============================================================ */
.dev-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--space-8) var(--space-16);
  display: flex;
  gap: var(--space-8);
  align-items: center;
  font-size: var(--font-size-caption);
  color: rgba(255,255,255,0.7);
  overflow-x: auto;
  white-space: nowrap;
}

.dev-bar label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  user-select: none;
}

.dev-bar select,
.dev-bar input[type="number"] {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  padding: 2px 4px;
}

.dev-bar select option {
  color: #111;
  background: #fff;
}

[data-theme="dark"] .dev-bar select option {
  color: var(--color-text-primary);
  background: #140f31;
}

.dev-bar input[type="number"] { width: 40px; }

.dev-bar span { opacity: 0.4; }

.dev-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.dev-btn.is-active {
  border-color: rgba(246, 201, 78, 0.82);
  background: rgba(246, 201, 78, 0.18);
  color: #fff4cf;
  box-shadow: 0 0 0 1px rgba(246, 201, 78, 0.16) inset;
}

.dev-bar .btn-theme-inline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
}

/* ============================================================
   HONEYPOT (ANTYSPAM)
   ============================================================ */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ============================================================
   APP FOOTER — trademark + wersja (wszystkie ekrany)
   ============================================================ */
.app-footer {
  display:         flex;
  justify-content: center;
  align-items:     center;
  gap:             var(--space-8);
  padding:         var(--space-16) 0 var(--space-24);
  user-select:     none;
  pointer-events:  none;
}

.app-footer-brand,
.app-footer-sep,
.app-footer-version {
  font-size:   var(--font-size-caption);
  color:       var(--color-text-secondary);
  opacity:     0.45;
  line-height: 1;
}

/* ============================================================
   RESPONSIVE (logo small)
   ============================================================ */
@media (min-width: 520px) {
  .logo-symbol  { width: 60px; height: 60px; }
  .logo-wordmark { font-size: 1.9rem; }
}
