/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  padding: 1rem 0 0.75rem;
}

.navbar {
  width: calc(100% - 2rem);
  max-width: 1120px;
  margin: 0 auto;
  min-height: 74px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(188, 188, 188, 0.3);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(28, 25, 25, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

body[data-theme="dark"] .navbar {
  background: rgba(28, 25, 25, 0.75);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.navbar-brand {
  position: relative;
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  display: block;
  width: auto;
  height: clamp(30px, 3.3vw, 42px);
}

.logo-image-dark {
  display: none;
}

body[data-theme="dark"] .logo-image-light {
  display: none;
}

body[data-theme="dark"] .logo-image-dark {
  display: block;
}

.navbar-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.3rem;
  margin: 0;
  padding: 0.25rem;
  z-index: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  line-height: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-black-c);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  background-color: rgba(87, 21, 255, 0.1);
  color: var(--brand-blue-2370);
  transform: translateY(-1px);
}

body[data-theme="dark"] .nav-link {
  color: #ffffff;
}

body[data-theme="dark"] .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.navbar-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle {
  position: relative;
  min-width: 2.55rem;
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(87, 21, 255, 0.24);
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-blue-2370);
  box-shadow: 0 6px 14px rgba(28, 25, 25, 0.08);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  opacity: 0;
  transform: scale(0.8) rotate(-20deg);
}

body[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: scale(0.8) rotate(20deg);
}

body[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.theme-toggle:hover {
  border-color: rgba(87, 21, 255, 0.4);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 18px rgba(87, 21, 255, 0.14);
  transform: translateY(-1px);
}

body[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f2ff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(165, 122, 255, 0.48);
  background: rgba(163, 21, 255, 0.16);
  box-shadow: 0 10px 20px rgba(106, 67, 191, 0.24);
}

.language-selector {
  position: relative;
}

.lang-button {
  min-width: 4.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(87, 21, 255, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-black-c);
  font-weight: 600;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin: 0;
  min-width: 180px;
  list-style: none;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(87, 21, 255, 0.24);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(28, 25, 25, 0.14);
  display: none;
  z-index: 1300;
}

.language-selector:hover .lang-menu {
  display: block;
}

.lang-link {
  display: block;
  padding: 0.72rem 0.9rem;
  color: var(--brand-black-c);
  font-weight: 600;
  text-decoration: none;
}

.lang-link:hover {
  background: rgba(87, 21, 255, 0.1);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(87, 21, 255, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-black-c);
  box-shadow: 0 6px 14px rgba(28, 25, 25, 0.08);
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background-color: currentColor;
  transition: all var(--transition-base);
}

.mobile-menu-btn:hover {
  border-color: rgba(87, 21, 255, 0.4);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 18px rgba(87, 21, 255, 0.14);
  transform: translateY(-1px);
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid rgba(87, 21, 255, 0.42);
  outline-offset: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-btn.active {
  border-color: rgba(87, 21, 255, 0.48);
  background: rgba(87, 21, 255, 0.12);
  color: var(--brand-blue-2370);
}

body[data-theme="dark"] .mobile-menu-btn {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f2ff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .mobile-menu-btn:hover {
  border-color: rgba(165, 122, 255, 0.48);
  background: rgba(163, 21, 255, 0.16);
  box-shadow: 0 10px 20px rgba(106, 67, 191, 0.24);
}

body[data-theme="dark"] .mobile-menu-btn.active {
  background: rgba(163, 21, 255, 0.22);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 3rem 0 2.2rem;
  background:
    radial-gradient(1200px 240px at 90% 10%, rgba(163, 21, 255, 0.24), transparent 62%),
    linear-gradient(170deg, #1c1919 0%, #161314 100%);
  color: #ffffff;
}

.footer-divider,
.footer-main,
.footer-bottom {
  width: calc(100% - 1.6rem);
  margin: 0 auto;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 2.4rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(280px, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.3rem;
}

.footer-brand {
  max-width: 520px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo-image {
  display: block;
  width: auto;
  height: clamp(32px, 3.4vw, 46px);
}

.footer-tagline {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32ch;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1.6rem;
}

.footer-column h3 {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.45rem;
}

.footer-column a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.footer-store-link {
  gap: 0.5rem;
  padding: 0;
  margin-left: 0;
  background: transparent;
  box-shadow: none;
}

.footer-store-badge-image {
  display: block;
  width: auto;
  height: 44px;
  border-radius: 10px;
}

.footer-column a .lucide,
.footer-column a [data-lucide] {
  width: 0.95rem;
  height: 0.95rem;
}

.footer-column a .footer-icon,
.footer-social .footer-icon {
  width: 1.15rem;
  height: 1.15rem;
  stroke: none;
  fill: currentColor;
}

.footer-column a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-store-link:hover {
  text-decoration: none;
  background: transparent;
}

.footer-store-apple:hover {
  background: transparent;
  box-shadow: 0 5px 12px rgba(87, 21, 255, 0.18);
}

.footer-store-google:hover {
  background: transparent;
  box-shadow: 0 5px 12px rgba(229, 31, 156, 0.16);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: center;
}

.footer-social a {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.footer-social a.social-instagram:hover {
  background: linear-gradient(135deg, rgba(245, 96, 64, 0.35), rgba(193, 53, 132, 0.35), rgba(131, 58, 180, 0.35));
}

.footer-social a.social-tiktok:hover {
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.22), rgba(254, 44, 85, 0.28));
}

.footer-social a.social-linkedin:hover {
  background: rgba(10, 102, 194, 0.34);
}

.footer-social a.social-youtube:hover {
  background: rgba(255, 0, 0, 0.28);
}

.footer-legal {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* Blog */
.blog-post {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 24px;
  border: 1px solid rgba(188, 188, 188, 0.4);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
}

.post-header {
  margin-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-xl);
}

.post-header h1 {
  margin-top: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  color: var(--color-secondary);
  font-size: 0.95rem;
  margin-top: var(--spacing-md);
}

.post-tags {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.tag {
  background-color: rgba(87, 21, 255, 0.12);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 999px;
  font-size: 0.85rem;
}

.post-content {
  margin-bottom: var(--spacing-2xl);
}

.post-content > * + * {
  margin-top: var(--spacing-md);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.nav-prev,
.nav-next {
  flex: 1;
  padding: var(--spacing-md);
  background-color: rgba(87, 21, 255, 0.09);
  border-radius: var(--radius-md);
}

.nav-prev:hover,
.nav-next:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.nav-next {
  text-align: right;
}

.blog-list {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.post-card {
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(188, 188, 188, 0.45);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.post-card h2 {
  margin-top: 0;
}

.post-card a {
  color: var(--color-text);
}

.post-card a:hover {
  color: var(--color-primary);
}

.post-excerpt {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .navbar {
    padding: 0.7rem 0.9rem;
  }

  .navbar-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.7rem;
    right: 0.7rem;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 16px;
    border: 1px solid rgba(188, 188, 188, 0.52);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.4rem;
    display: none;
    z-index: 1300;
    box-shadow: 0 18px 30px rgba(28, 25, 25, 0.15);
  }

  .navbar-nav.active {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .language-selector {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 0.75rem;
  }

  .logo {
    max-width: 190px;
  }

  .logo-image {
    height: 32px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.8rem;
  }

  .footer-social {
    justify-self: start;
  }

  .footer-legal {
    justify-content: flex-start;
  }
}
