/* =========================================
   Components: Buttons, Cards, Badges, Header, Footer
   ========================================= */

/* Glass Cards & Containers */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-light);
}

.interactive-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-mint);
  color: #05080E;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.4);
}

.btn-primary:hover {
  background: #15ff8c;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.btn-playstore {
  background: #11151F;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-playstore::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn-playstore:hover::before {
  left: 100%;
}

.btn-playstore:hover {
  border-color: var(--accent-mint);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.35);
  transform: translateY(-2px);
}

.btn-playstore-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.1;
}

.btn-playstore-small {
  font-size: 0.65rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-playstore-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

/* Badges & Chips */
.badge-version {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent-mint);
  font-family: var(--font-retro);
  font-size: 0.68rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-mint);
  animation: pulse-glow 2s infinite ease-in-out;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  background: var(--bg-header, rgba(9, 11, 16, 0.82));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-surface-elevated, #090B10);
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.25);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-app-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.hero-app-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-app-icon-img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 230, 118, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.hero-app-icon-img:hover {
  transform: scale(1.05) rotate(-2deg);
}

.cta-app-icon-img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 230, 118, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 18px;
  display: block;
}

.brand-name {
  font-family: var(--font-retro);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-name span {
  color: var(--accent-mint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-mint);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-light);
}

[data-theme="light"] .mobile-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border-light);
  color: var(--text-primary);
}

/* Theme Toggle Button */
.theme-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

/* Light Mode Overrides for Components */
[data-theme="light"] .theme-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border-light);
  color: var(--text-primary);
}

[data-theme="light"] .theme-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-mint);
}

/* Footer */
.site-footer {
  background: var(--bg-footer, #06080C);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 30px;
  color: var(--text-secondary);
  transition: background var(--transition-normal);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-mint);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}
