/* ==========================
   🎨 Theme Variables
========================== */
:root {
  --primary-light: rgba(255, 69, 0, 0.12);
  --primary-border: rgba(255, 69, 0, 0.3);
  --background: #ffffff;
  --surface: #f8f9fa;
  --text-primary: #1d1d1f;
  --text-secondary: #5d5d5d;
  --border-color: #d2d2d7;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --blur-bg: rgba(255, 255, 255, 0.8);
  --max-width: 1200px;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tableShadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

[data-theme="dark"] {
  --background: #0f1218;
  --surface: #1a1f28;
  --text-primary: #f0f4ff;
  --text-secondary: #a7b2c9;
  --border-color: #2d3447;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.2);
  --blur-bg: rgba(15, 18, 24, 0.9);
  --tableShadow: rgba(255, 255, 255, 0.16) 0px 1px 4px;
}

/* ==========================
   🌐 Navigation
========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--blur-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 9000;
  transition: var(--transition);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover {
  color: #ff5722;
}

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

/* ==========================
   🌙 Theme Toggle (Sun/Moon)
========================== */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover {
  background: var(--surface);
}

/* Icon Transition */
.sun-icon, .moon-icon {
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

/* ☀️ Sun (Light Mode) */
.sun-icon circle,
.sun-icon path {
  stroke: #facc15; /* Golden */
  fill: none;
}
[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: rotate(20deg);
  filter: drop-shadow(0 0 5px #facc15);
}

/* 🌙 Moon (Dark Mode) */
.moon-icon path {
  stroke: #60a5fa;
  fill: #1e293b;
}
[data-theme="dark"] .moon-icon {
  display: block;
  opacity: 1;
  transform: rotate(-20deg);
  filter: drop-shadow(0 0 6px #60a5fa);
}

/* Hide inactive */
.moon-icon { display: none; opacity: 0; }
[data-theme="dark"] .sun-icon { display: none; opacity: 0; }

/* Bounce Animation */
.theme-toggle svg {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
[data-theme="dark"] .moon-icon {
  animation: bounceIn 0.4s ease;
}
[data-theme="light"] .sun-icon {
  animation: bounceIn 0.4s ease;
}
@keyframes bounceIn {
  0%   { transform: scale(0.6) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* ==========================
   📱 Mobile Navigation
========================== */
.mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
}
.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  transform-origin: center;
}
.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blur-bg);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 500;
  }
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    background: var(--background);
  }
  .mobile-toggle { display: flex; }
  .nav-container { padding: 0 16px; }
}

/* ==========================
   🔥 Flame Logo Effect
========================== */
.flame span {
  color: #ff5722;
  animation: flame 2s infinite alternate;
}
@keyframes flame {
  0%   { text-shadow: 0 0 10px #ff5722, 0 0 20px #ff784e; }
  50%  { text-shadow: 0 0 20px #ff9800, 0 0 30px #ffcc00; color: #ff9800; }
  100% { text-shadow: 0 0 25px #ffcc00, 0 0 35px #ffeb3b; color: #ffd600; }
}

/* Logo Sizes */
.nav-logo span {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .nav-logo span { font-size: 20px; font-weight: 600; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-logo span { font-size: 26px; font-weight: 650; }
}

/* ==========================
   📢 Social Share
========================== */
.social-share {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 5px;
  max-width: 800px;
  margin: auto;
  padding-top: 5em;
}
.shareCounter {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  opacity: 0.8; margin-top: 5px; font-size: 12px;
}
.shareCounter span { font-size: 2.2em; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 8px 12px;
  border-radius: 5px; color: #fff; font-size: 14px;
  text-decoration: none; transition: 0.3s ease;
  min-width: 130px; cursor: pointer;
}
.share-btn svg { width: 30px; height: 30px; fill: currentColor; }
.share-btn span { font-weight: 500; }
.facebook { background-color: #3b5998; }
.twitter  { background-color: #1da1f2; }
.whatsapp { background-color: #25d366; }
.telegram { background-color: #0088cc; }
.native   { background-color: #65035a; }
.share-btn:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .social-share { margin: 0px 5px; justify-content: space-around; }
  .share-btn { min-width: auto; padding: 5px; }
  .share-btn span { display: none; }
}
/* ==========================
   ⚠️ Error Message Styles
========================== */
.error-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fdecea;         /* soft red background */
  border: 1px solid #f5c2c7;   /* subtle border */
  color: #b71c1c;              /* dark red text */
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: slideDown 0.4s ease, fadeIn 0.3s ease;
  position: relative;
}

/* Icon */
.error-message svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: #b71c1c;
}

/* Message Text */
.error-message .message-text {
  flex: 1;
}
.error-message strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

