/* ═════════════════ Header extras: brand mark, lang flags, nav icons ═════════════════ */

/* ───── Nav icons ───── */
.nav-links a .nav-ic {
  font-size: 12px;
  margin-right: 6px;
  opacity: .55;
  transition: opacity .2s, transform .2s, color .2s;
  vertical-align: -1px;
}
.nav-links a:hover .nav-ic,
.nav-links a.is-active .nav-ic {
  opacity: 1;
  transform: translateY(-1px);
  color: #dc2626;
}
[dir="rtl"] .nav-links a .nav-ic { margin-right: 0; margin-left: 6px; }

/* ───── DEMO MOBİL APP button ───── */
.nav-demo-btn {
  position: relative;
  white-space: nowrap;
  background: transparent !important;
  border: 1.5px solid rgba(220, 38, 38, .35) !important;
  color: #dc2626 !important;
  margin-right: 8px;
}
.nav-demo-btn:hover {
  background: rgba(220, 38, 38, .08) !important;
  border-color: #dc2626 !important;
}
.nav-demo-btn i { margin-right: 4px; }

/* ═════════════════ 2000 YILDIZ KAYNAK — animated brand logo ═════════════════ */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  position: relative;
}

/* The mark — circular badge with star + "2000" overlay */
.brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 25%, #fde68a 0%, #f59e0b 35%, #b45309 100%);
  border-radius: 14px;
  box-shadow:
    0 6px 16px -4px rgba(245, 158, 11, .55),
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -3px 6px rgba(0, 0, 0, .15);
  overflow: hidden;
  flex-shrink: 0;
}
/* Subtle metallic shine sweep */
.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: brandShine 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}
@keyframes brandShine {
  0%, 75%, 100% { transform: translateX(-100%); }
  85%           { transform: translateX(100%); }
}

/* Star — sits behind, rotates lazily, pulses */
.brand-star {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  fill: #fff;
  opacity: .92;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
  animation: brandStarPulse 6s cubic-bezier(.4,0,.2,1) infinite;
  transform-origin: center;
}
@keyframes brandStarPulse {
  0%, 100% { transform: scale(1) rotate(0deg);    opacity: .92; }
  20%      { transform: scale(1.08) rotate(0deg); opacity: 1; }
  50%      { transform: scale(1.12) rotate(72deg); opacity: 1; }
  80%      { transform: scale(1) rotate(72deg);   opacity: .92; }
}

/* "2000" overlay — fades in on top of star */
.brand-2000 {
  position: relative;
  z-index: 3;
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-weight: 900;
  font-size: 14px;
  color: #7c2d12;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -1px 0 rgba(0, 0, 0, .15);
  letter-spacing: -.04em;
  animation: brand2000 6s ease-in-out infinite;
}
@keyframes brand2000 {
  0%, 100% { opacity: 1; transform: scale(1); }
  18%      { opacity: 0; transform: scale(.7); }
  50%      { opacity: 1; transform: scale(1.15); text-shadow: 0 0 8px #fff, 0 1px 0 rgba(0, 0, 0, .15); }
  80%      { opacity: 1; transform: scale(1); text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
}

/* Sparks orbiting the brand mark */
.brand-spark {
  position: absolute;
  width: 4px; height: 4px;
  background: #fef08a;
  border-radius: 50%;
  box-shadow: 0 0 6px #fbbf24, 0 0 2px #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.brand-spark-1 { top: 10%; left: 50%; animation: brandSpark 6s ease-out infinite 0.4s; }
.brand-spark-2 { right: 6%; top: 50%;  animation: brandSpark 6s ease-out infinite 1.0s; }
.brand-spark-3 { bottom: 8%; left: 35%; animation: brandSpark 6s ease-out infinite 1.6s; }
.brand-spark-4 { left: 8%; top: 40%;   animation: brandSpark 6s ease-out infinite 2.2s; }
@keyframes brandSpark {
  0%, 60%, 100% { opacity: 0; transform: scale(.3) translate(0, 0); }
  62%           { opacity: 1; transform: scale(1) translate(0, 0); }
  72%           { opacity: 1; transform: scale(1.2) translate(0, 0); }
  76%           { opacity: 0; transform: scale(.3) translate(8px, -8px); }
}

/* Brand wordmark */
.brand-words {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  position: relative;
}
.brand-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.025em;
  color: #0c0c0c;
}
.brand-line .bl-2 {
  color: #dc2626;
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-size: 16px;
  letter-spacing: -.05em;
  opacity: 0;
  animation: brandWord 6s cubic-bezier(.4,0,.2,1) infinite;
}
.brand-line .bl-y {
  opacity: 0;
  animation: brandWord 6s cubic-bezier(.4,0,.2,1) infinite .25s;
}
.brand-line .bl-k {
  opacity: 0;
  animation: brandWord 6s cubic-bezier(.4,0,.2,1) infinite .5s;
}
@keyframes brandWord {
  0%, 8%   { opacity: 0; transform: translateY(6px); filter: blur(2px); }
  18%, 95% { opacity: 1; transform: translateY(0);   filter: blur(0); }
  100%     { opacity: .85; transform: translateY(0); filter: blur(0); }
}

/* RTL: invert the word fade-in direction */
[dir="rtl"] .brand-line { flex-direction: row-reverse; }

.brand-sub {
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: .12em;
  margin-top: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Underline sweep beneath the wordmark */
.brand-underline {
  display: block;
  position: absolute;
  bottom: -3px; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, #dc2626, #f59e0b, transparent);
  animation: brandUnderline 6s ease-in-out infinite;
}
@keyframes brandUnderline {
  0%, 100% { width: 0; opacity: 0; }
  55%      { width: 100%; opacity: 1; }
  85%      { width: 100%; opacity: .5; }
}

/* Hover — speed up animation */
.brand-logo:hover .brand-star,
.brand-logo:hover .brand-2000,
.brand-logo:hover .brand-line .bl-2,
.brand-logo:hover .brand-line .bl-y,
.brand-logo:hover .brand-line .bl-k,
.brand-logo:hover .brand-underline {
  animation-duration: 3s;
}

/* ═════════════════ Mini SVG flag language selector ═════════════════ */
.lang-switch {
  display: inline-flex;
  gap: 5px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(0, 0, 0, .08);
}
.lang-flag {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: rgba(0, 0, 0, .04);
  cursor: pointer;
  transition: all .2s;
  overflow: hidden;
  text-decoration: none;
  padding: 0;
  position: relative;
}
.lang-flag img {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  transition: transform .18s;
}
.lang-flag:hover {
  border-color: #dc2626;
}
.lang-flag:hover img { transform: scale(1.12); }
.lang-flag.active {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .15);
}

[dir="rtl"] .lang-switch {
  margin-left: 0; margin-right: 10px;
  padding-left: 0; padding-right: 10px;
  border-left: 0; border-right: 1px solid rgba(0, 0, 0, .08);
}

/* ───── Responsive ───── */
@media (max-width: 1200px) {
  .nav-links a .nav-ic { display: none; }
  .brand-sub { display: none; }
}
@media (max-width: 1000px) {
  .nav-demo-btn { font-size: 11px; padding: 8px 10px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 11px; }
  .brand-2000 { font-size: 11px; }
  .brand-line { font-size: 15px; }
  .brand-line .bl-2 { font-size: 13px; }
}
@media (max-width: 900px) {
  .lang-switch { display: none; }
}
@media (max-width: 768px) {
  .brand-words { display: none; }
}

/* ───── RTL body ───── */
[dir="rtl"] .nav-inner, [dir="rtl"] .tb-inner { direction: rtl; }
[dir="rtl"] body { font-family: 'Segoe UI', Tahoma, sans-serif; }
