/* ========================================
   ZARGES Case Configurator – Landing Page
   ======================================== */

:root {
  /* ZARGES palette */
  --color-bg: #ffffff;
  --color-text: rgba(0, 0, 0, 0.8);
  --color-text-dark: #000000;
  --color-gray: #9b9b9b;
  --color-gray-light: #e8e8e8;
  --color-cyan: #00aeef;
  --color-cyan-hover: #009ad6;
  --color-orange: #ff921c;

  /* Typography */
  --font-primary: 'Roboto', Arial, sans-serif;
  --font-condensed: 'Roboto Condensed', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;

  /* Layout */
  --max-width: 960px;
  --card-radius: 8px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}

body {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: center;
  animation: fadeInDown 600ms ease-out both;
}

.logo {
  width: 180px;
  height: auto;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--space-md) var(--space-lg);
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 600ms ease-out both;
}

.headline {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 3.6rem;
  color: var(--color-cyan);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.subline {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-cyan);
  margin-bottom: var(--space-md);
}

.accent-line {
  width: 48px;
  height: 3px;
  background: var(--color-cyan);
  margin: 0 auto;
  border-radius: 2px;
}

/* Country Grid */
.country-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
  max-width: var(--max-width);
}

@media (min-width: 480px) {
  .country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .country-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
  }
}

@media (min-width: 1100px) {
  .country-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Country Card */
.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 2.4rem var(--space-md);
  background: #ffffff;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--color-text-dark);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  animation: fadeInUp 500ms ease-out both;
}

/* Staggered card entrance */
.country-card:nth-child(1)  { animation-delay: 0.1s; }
.country-card:nth-child(2)  { animation-delay: 0.15s; }
.country-card:nth-child(3)  { animation-delay: 0.2s; }
.country-card:nth-child(4)  { animation-delay: 0.25s; }
.country-card:nth-child(5)  { animation-delay: 0.3s; }
.country-card:nth-child(6)  { animation-delay: 0.35s; }
.country-card:nth-child(7)  { animation-delay: 0.4s; }
.country-card:nth-child(8)  { animation-delay: 0.45s; }
.country-card:nth-child(9)  { animation-delay: 0.5s; }
.country-card:nth-child(10) { animation-delay: 0.55s; }

.country-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--color-cyan);
}

.country-card:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
}

.country-card:active {
  transform: translateY(-1px);
}

/* Disabled / Coming Soon */
.country-card--disabled {
  filter: grayscale(100%);
  cursor: default;
  pointer-events: none;
}

.country-card--disabled .country-flag {
  opacity: 0.35;
}

.country-card--disabled .country-name {
  color: var(--color-gray);
}

.country-card--disabled:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--color-gray-light);
}

/* Flag */
.country-flag {
  width: 48px;
  height: 34px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Country Name */
.country-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dark);
}

/* Coming Soon Label */
.coming-soon {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1.2rem;
  color: #666666;
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
}

/* Footer */
.footer {
  padding: var(--space-md);
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-gray);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xs);
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-cyan);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 479px) {
  .header {
    padding: var(--space-md) var(--space-sm) var(--space-sm);
  }

  .logo {
    width: 140px;
  }

  .headline {
    font-size: 2.8rem;
  }

  .main {
    padding: 0 var(--space-sm) var(--space-md);
  }
}

@media (min-width: 768px) {
  .headline {
    font-size: 4.2rem;
  }
}
