/* Component Styles */

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 31, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 168, 75, 0.15);
  padding: 0 16px;
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--green-glow);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Add padding to body for fixed navbar */
body {
  padding-top: 64px;
}

/* Orbs - Floating background elements */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: orbFloat linear infinite;
}

.orb1 {
  width: 300px;
  height: 300px;
  background: rgba(34, 160, 79, 0.07);
  top: -100px;
  left: -80px;
  animation-duration: 20s;
}

.orb2 {
  width: 200px;
  height: 200px;
  background: rgba(200, 168, 75, 0.06);
  bottom: 10%;
  right: -60px;
  animation-duration: 14s;
  animation-delay: -5s;
}

.orb3 {
  width: 150px;
  height: 150px;
  background: rgba(46, 204, 113, 0.05);
  top: 50%;
  left: 60%;
  animation-duration: 18s;
  animation-delay: -9s;
}

/* Container - Main content wrapper */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 36px;
  animation: slideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.header-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.9;
}

.header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 52px);
  letter-spacing: 0.08em;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 40px rgba(200, 168, 75, 0.3);
}

.header-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
  animation: expandLine 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Card - Main content card */
.card {
  background: rgba(18, 32, 25, 0.85);
  border: 1px solid rgba(200, 168, 75, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: fadeUp 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Search Bar */
.search-bar {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(200, 168, 75, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.search-icon {
  color: var(--muted);
  font-size: 16px;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
}

.search-bar input::placeholder {
  color: var(--muted);
}

/* Dot indicators */
.dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dot:hover {
  transform: scale(1.2);
}

.dot.green {
  background: var(--green-glow);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.dot.blue {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.dot.gold {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(200, 168, 75, 0.5);
}

.dot.red {
  background: var(--red);
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
}

/* Live indicator dot */
.live-dot {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-glow);
  box-shadow: 0 0 6px var(--green-glow);
  animation: livePulse 2s ease-in-out infinite;
}

/* Table Header */
.table-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 14px 28px;
  background: rgba(200, 168, 75, 0.1);
  border-bottom: 1px solid rgba(200, 168, 75, 0.15);
}

.table-head span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
}

.table-head span:last-child {
  text-align: center;
}

/* Table Row */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  height: 64px;
  opacity: 0;
  transform: translateX(-20px);
  animation: rowIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.row:hover {
  background: rgba(34, 160, 79, 0.08);
}

.row:hover .country-name {
  color: var(--green-glow);
}

.row:last-child {
  border-bottom: none;
}

.row.visa-free {
  background: rgba(26, 122, 60, 0.18);
}

.row.visa-free:hover {
  background: rgba(26, 122, 60, 0.3);
}

/* Country cell */
.country-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flag {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-base);
}

.row:hover .flag {
  transform: scale(1.15) rotate(-3deg);
}

.country-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition-fast);
}

/* Badge styles */
.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.row:hover .badge {
  transform: translateY(-2px);
}

.badge-free {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.badge-free::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

.badge-days {
  color: #e8f5ec;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  min-width: 38px;
  justify-content: center;
}

/* Stats Bar */
.stat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 28px 0;
  margin-bottom: -4px;
  animation: slideDown 0.8s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  opacity: 0;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--green-glow);
  line-height: 1;
  text-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(200, 168, 75, 0.2);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
  letter-spacing: 0.03em;
}

/* Utilities */
.row.hidden {
  display: none;
}

mark {
  background: rgba(200, 168, 75, 0.3);
  color: inherit;
  border-radius: var(--radius-sm);
  padding: 0 1px;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
}
