/* ============================================
   COUNTRY HOME PORTAL - CSS v1
   Design moderno, animado e responsivo
   Escopo: .wf-country-home (zero colisão)
   ============================================ */

/* Tokens base (CSS Variables) */
.wf-country-home {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --text: #1a1a1a;
  --muted: #6b7280;
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-hover: rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overrides por país - cores personalizadas */
.wf-country-home[data-country="br"] {
  --brand: #00a859;
  --brand-2: #00c96b;
}

.wf-country-home[data-country="mx"] {
  --brand: #006847;
  --brand-2: #00a859;
}

.wf-country-home[data-country="us"] {
  --brand: #1e40af;
  --brand-2: #3b82f6;
}

.wf-country-home[data-country="uk"] {
  --brand: #012169;
  --brand-2: #1e3a8a;
}

.wf-country-home[data-country="ca"] {
  --brand: #d52b1e;
  --brand-2: #ef4444;
}

.wf-country-home[data-country="au"] {
  --brand: #012169;
  --brand-2: #1e40af;
}

.wf-country-home[data-country="nz"] {
  --brand: #012169;
  --brand-2: #1e3a8a;
}

.wf-country-home[data-country="ie"] {
  --brand: #169b62;
  --brand-2: #22c55e;
}

.wf-country-home[data-country="sg"] {
  --brand: #ed2939;
  --brand-2: #ef4444;
}

.wf-country-home[data-country="fr"] {
  --brand: #002654;
  --brand-2: #1e40af;
}

.wf-country-home[data-country="de"] {
  --brand: #000000;
  --brand-2: #1f2937;
}

.wf-country-home[data-country="nl"] {
  --brand: #ae1c28;
  --brand-2: #dc2626;
}

.wf-country-home[data-country="be"] {
  --brand: #000000;
  --brand-2: #1f2937;
}

.wf-country-home[data-country="ch"] {
  --brand: #ff0000;
  --brand-2: #ef4444;
}

.wf-country-home[data-country="dk"] {
  --brand: #c8102e;
  --brand-2: #dc2626;
}

.wf-country-home[data-country="no"] {
  --brand: #ba0c2f;
  --brand-2: #dc2626;
}

.wf-country-home[data-country="se"] {
  --brand: #006aa7;
  --brand-2: #0284c7;
}

.wf-country-home[data-country="ae"] {
  --brand: #007a3d;
  --brand-2: #059669;
}

.wf-country-home[data-country="sa"] {
  --brand: #006c35;
  --brand-2: #059669;
}

.wf-country-home[data-country="jp"] {
  --brand: #bc002d;
  --brand-2: #dc2626;
}

.wf-country-home[data-country="kr"] {
  --brand: #0047a0;
  --brand-2: #2563eb;
}

.wf-country-home[data-country="il"] {
  --brand: #0038b8;
  --brand-2: #2563eb;
}

/* Reset e base */
.wf-country-home * {
  box-sizing: border-box;
}

.wf-country-home .wf-main {
  background: var(--bg);
  min-height: 60vh;
}

/* Hero Section */
.wf-country-home .wf-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wf-country-home .wf-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.wf-country-home .wf-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.wf-country-home .wf-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.wf-country-home .wf-hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.wf-country-home .wf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 1rem;
}

/* Search Section */
.wf-country-home .wf-search-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.wf-country-home .wf-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.wf-country-home .wf-search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}

.wf-country-home .wf-search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wf-country-home .wf-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.5;
  pointer-events: none;
}

/* Categories Grid */
.wf-country-home .wf-categories-section {
  padding: 2rem 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.wf-country-home .wf-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Category Card */
.wf-country-home .wf-category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.wf-country-home .wf-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.wf-country-home .wf-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--shadow-hover);
  border-color: var(--brand);
}

.wf-country-home .wf-category-card:hover::before {
  transform: scaleX(1);
}

.wf-country-home .wf-category-card.hidden {
  display: none;
}

.wf-country-home .wf-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.wf-country-home .wf-category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.wf-country-home .wf-category-description {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Featured Section (opcional) */
.wf-country-home .wf-featured-section {
  padding: 3rem 1rem;
  background: var(--surface);
  margin-top: 2rem;
}

.wf-country-home .wf-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.wf-country-home .wf-category-card.featured {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
  border-color: var(--brand);
}

/* Empty State */
.wf-country-home .wf-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.wf-country-home .wf-empty-state p {
  font-size: 1.125rem;
  margin: 0.5rem 0 0;
}

/* Responsive */
@media (max-width: 768px) {
  .wf-country-home .wf-hero {
    padding: 3rem 1rem;
  }

  .wf-country-home .wf-categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wf-country-home .wf-featured-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .wf-country-home *,
  .wf-country-home *::before,
  .wf-country-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Loading State */
.wf-country-home .wf-categories-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}

