/**
 * VietAZ Front Page Styles - Production Ready
 * 
 * Clean, minimal, professional design for Vietnamese community
 * Mobile-first, no frameworks, pure CSS
 * 
 * @package VietAZ
 * @version 3.0.0
 * @since 2025
 */

/* ============================================
   CSS VARIABLES - VietAZ Design Tokens
   ============================================ */

:root {
  /* Primary Colors - Soft, trustworthy, professional */
  --vz-primary: #2563eb;
  --vz-primary-dark: #1d4ed8;
  --vz-primary-light: #3b82f6;
  --vz-primary-muted: #eff6ff;

  /* Secondary - Warm accent */
  --vz-accent: #0891b2;
  --vz-accent-muted: #ecfeff;

  /* Neutrals */
  --vz-white: #ffffff;
  --vz-gray-50: #f9fafb;
  --vz-gray-100: #f3f4f6;
  --vz-gray-200: #e5e7eb;
  --vz-gray-300: #d1d5db;
  --vz-gray-400: #9ca3af;
  --vz-gray-500: #6b7280;
  --vz-gray-600: #4b5563;
  --vz-gray-700: #374151;
  --vz-gray-800: #1f2937;
  --vz-gray-900: #111827;

  /* Module Colors - VietAZ Arizona Theme */
  --vz-forum: var(--vz-sky-600, #0284c7);
  --vz-forum-hover: var(--vz-sky-700, #0369a1);
  --vz-forum-bg: var(--vz-sky-50, #f0f9ff);

  --vz-adverts: var(--vz-sunset-500, #f97316);
  --vz-adverts-hover: var(--vz-sunset-600, #ea580c);
  --vz-adverts-bg: #fff7ed;

  --vz-jobs: var(--vz-navy-600, #1e40af);
  --vz-jobs-hover: var(--vz-navy-700, #1e3a8a);
  --vz-jobs-bg: #eff6ff;

  /* Typography */
  --vz-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  --vz-text-xs: 0.8125rem; /* 13px */
  --vz-text-sm: 0.9375rem; /* 15px */
  --vz-text-base: 1rem; /* 16px */
  --vz-text-lg: 1.125rem; /* 18px */
  --vz-text-xl: 1.25rem; /* 20px */
  --vz-text-2xl: 1.5rem; /* 24px */
  --vz-text-3xl: 2rem; /* 32px */
  --vz-text-4xl: 2.5rem; /* 40px */

  /* Spacing */
  --vz-space-1: 0.25rem; /* 4px */
  --vz-space-2: 0.5rem; /* 8px */
  --vz-space-3: 0.75rem; /* 12px */
  --vz-space-4: 1rem; /* 16px */
  --vz-space-5: 1.25rem; /* 20px */
  --vz-space-6: 1.5rem; /* 24px */
  --vz-space-8: 2rem; /* 32px */
  --vz-space-10: 2.5rem; /* 40px */
  --vz-space-12: 3rem; /* 48px */
  --vz-space-16: 4rem; /* 64px */

  /* Border & Radius */
  --vz-radius-sm: 6px;
  --vz-radius: 10px;
  --vz-radius-lg: 14px;
  --vz-radius-xl: 20px;
  --vz-border: 1px solid var(--vz-gray-200);

  /* Shadows */
  --vz-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --vz-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --vz-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --vz-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --vz-duration: 200ms;

  /* Layout */
  --vz-container: 1100px;
  --vz-gutter: 20px;
}

/* ============================================
   BASE LAYOUT
   ============================================ */

.vz-home {
  background: var(--vz-white);
  min-height: 100vh;
}

.vz-container {
  width: 100%;
  max-width: var(--vz-container);
  margin: 0 auto;
  padding-left: var(--vz-gutter);
  padding-right: var(--vz-gutter);
}

/* Section Title */
.vz-section__title {
  font-size: var(--vz-text-xl);
  font-weight: 700;
  color: var(--vz-gray-900);
  text-align: center;
  margin: 0 0 var(--vz-space-8);
  letter-spacing: -0.02em;
}

/* ============================================
   SECTION 1: HERO
   ============================================ */

.vz-hero {
  background: linear-gradient(
    180deg,
    var(--vz-gray-50) 0%,
    var(--vz-white) 100%
  );
  padding: var(--vz-space-10) 0 var(--vz-space-12);
  text-align: center;
}

.vz-hero__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--vz-gutter);
}

/* Title */
.vz-hero__title {
  font-size: var(--vz-text-2xl);
  font-weight: 800;
  color: var(--vz-gray-900);
  margin: 0 0 var(--vz-space-3);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Description */
.vz-hero__desc {
  font-size: var(--vz-text-sm);
  color: var(--vz-gray-500);
  margin: 0 0 var(--vz-space-8);
  line-height: 1.5;
}

/* Action Buttons */
.vz-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--vz-space-3);
}

.vz-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vz-space-2);
  padding: var(--vz-space-4) var(--vz-space-6);
  font-size: var(--vz-text-base);
  font-weight: 600;
  color: var(--vz-white);
  background: var(--vz-primary);
  border-radius: var(--vz-radius-lg);
  text-decoration: none;
  transition: all var(--vz-duration) var(--vz-ease);
  min-height: 54px;
}

.vz-hero__btn:hover {
  background: var(--vz-primary-dark);
  transform: translateY(-1px);
}

.vz-hero__btn:active {
  transform: translateY(0);
}

/* Button Variants */
.vz-hero__btn--forum {
  background: var(--vz-forum);
}
.vz-hero__btn--forum:hover {
  background: var(--vz-forum-hover);
}

.vz-hero__btn--adverts {
  background: var(--vz-adverts);
}
.vz-hero__btn--adverts:hover {
  background: var(--vz-adverts-hover);
}

.vz-hero__btn--jobs {
  background: var(--vz-jobs);
}
.vz-hero__btn--jobs:hover {
  background: var(--vz-jobs-hover);
}

/* Button Icon */
.vz-hero__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============================================
   SECTION 2: MODULES GRID
   ============================================ */

.vz-modules {
  padding: var(--vz-space-12) 0;
  background: var(--vz-white);
}

.vz-modules__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vz-space-4);
}

/* Module Card */
.vz-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--vz-space-6);
  background: var(--vz-gray-50);
  border: var(--vz-border);
  border-radius: var(--vz-radius-lg);
  text-decoration: none;
  transition: all var(--vz-duration) var(--vz-ease);
}

.vz-module:hover {
  background: var(--vz-white);
  border-color: var(--vz-gray-300);
  box-shadow: var(--vz-shadow-md);
  transform: translateY(-2px);
}

/* Module Icon */
.vz-module__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--vz-radius);
  margin-bottom: var(--vz-space-4);
}

.vz-module__icon svg {
  width: 28px;
  height: 28px;
}

.vz-module__icon--forum {
  background: var(--vz-forum-bg);
  color: var(--vz-forum);
}

.vz-module__icon--adverts {
  background: var(--vz-adverts-bg);
  color: var(--vz-adverts);
}

.vz-module__icon--jobs {
  background: var(--vz-jobs-bg);
  color: var(--vz-jobs);
}

/* Module Text */
.vz-module__title {
  font-size: var(--vz-text-lg);
  font-weight: 700;
  color: var(--vz-gray-900);
  margin: 0 0 var(--vz-space-1);
}

.vz-module__desc {
  font-size: var(--vz-text-sm);
  color: var(--vz-gray-500);
  margin: 0;
  line-height: 1.4;
}

/* ============================================
   SECTION 3: VALUES
   ============================================ */

.vz-values {
  padding: var(--vz-space-12) 0;
  background: var(--vz-gray-50);
}

.vz-values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vz-space-6);
}

/* Value Card */
.vz-value {
  text-align: center;
  padding: var(--vz-space-6);
  background: var(--vz-white);
  border-radius: var(--vz-radius-lg);
  border: var(--vz-border);
}

/* Value Icon */
.vz-value__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--vz-primary-muted);
  color: var(--vz-primary);
  border-radius: var(--vz-radius);
  margin-bottom: var(--vz-space-4);
}

.vz-value__icon svg {
  width: 24px;
  height: 24px;
}

/* Value Text */
.vz-value__title {
  font-size: var(--vz-text-base);
  font-weight: 700;
  color: var(--vz-gray-900);
  margin: 0 0 var(--vz-space-2);
}

.vz-value__desc {
  font-size: var(--vz-text-sm);
  color: var(--vz-gray-600);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   SECTION 4: CTA
   ============================================ */

.vz-cta {
  padding: var(--vz-space-12) 0 var(--vz-space-16);
  background: var(--vz-white);
  text-align: center;
}

.vz-cta__title {
  font-size: var(--vz-text-xl);
  font-weight: 800;
  color: var(--vz-gray-900);
  margin: 0 0 var(--vz-space-2);
  letter-spacing: -0.02em;
}

.vz-cta__desc {
  font-size: var(--vz-text-sm);
  color: var(--vz-gray-500);
  margin: 0 0 var(--vz-space-8);
}

/* CTA Actions */
.vz-cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--vz-space-3);
  max-width: 340px;
  margin: 0 auto;
}

.vz-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vz-space-2);
  padding: var(--vz-space-4) var(--vz-space-6);
  font-size: var(--vz-text-base);
  font-weight: 600;
  border-radius: var(--vz-radius-lg);
  text-decoration: none;
  transition: all var(--vz-duration) var(--vz-ease);
  min-height: 54px;
}

.vz-cta__btn--primary {
  background: var(--vz-primary);
  color: var(--vz-white);
}

.vz-cta__btn--primary:hover {
  background: var(--vz-primary-dark);
  transform: translateY(-1px);
}

.vz-cta__btn--secondary {
  background: var(--vz-gray-100);
  color: var(--vz-gray-700);
  border: 1px solid var(--vz-gray-200);
}

.vz-cta__btn--secondary:hover {
  background: var(--vz-gray-200);
  border-color: var(--vz-gray-300);
}

.vz-cta__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE: TABLET (768px+)
   ============================================ */

@media (min-width: 768px) {
  :root {
    --vz-gutter: 32px;
  }

  /* Hero */
  .vz-hero {
    padding: var(--vz-space-16) 0;
  }

  .vz-hero__title {
    font-size: var(--vz-text-3xl);
  }

  .vz-hero__desc {
    font-size: var(--vz-text-base);
  }

  .vz-hero__actions {
    flex-direction: row;
    justify-content: center;
    gap: var(--vz-space-4);
  }

  .vz-hero__btn {
    min-width: 160px;
  }

  /* Modules */
  .vz-modules {
    padding: var(--vz-space-16) 0;
  }

  .vz-modules__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--vz-space-6);
  }

  .vz-section__title {
    font-size: var(--vz-text-2xl);
    margin-bottom: var(--vz-space-10);
  }

  /* Values */
  .vz-values {
    padding: var(--vz-space-16) 0;
  }

  .vz-values__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--vz-space-6);
  }

  /* CTA */
  .vz-cta {
    padding: var(--vz-space-16) 0;
  }

  .vz-cta__title {
    font-size: var(--vz-text-2xl);
  }

  .vz-cta__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .vz-cta__btn {
    min-width: 200px;
  }
}

/* ============================================
   RESPONSIVE: DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  :root {
    --vz-gutter: 40px;
  }

  /* Hero */
  .vz-hero__title {
    font-size: var(--vz-text-4xl);
  }

  .vz-hero__desc {
    font-size: var(--vz-text-lg);
  }

  /* Modules */
  .vz-module {
    padding: var(--vz-space-8);
  }

  .vz-module__icon {
    width: 64px;
    height: 64px;
  }

  .vz-module__icon svg {
    width: 32px;
    height: 32px;
  }

  /* Values */
  .vz-value {
    padding: var(--vz-space-8);
  }

  .vz-value__icon {
    width: 56px;
    height: 56px;
  }

  .vz-value__icon svg {
    width: 28px;
    height: 28px;
  }

  .vz-value__title {
    font-size: var(--vz-text-lg);
  }
}

/* ============================================
   ACCESSIBILITY - Focus States
   ============================================ */

.vz-hero__btn:focus-visible,
.vz-module:focus-visible,
.vz-cta__btn:focus-visible {
  outline: 2px solid var(--vz-primary);
  outline-offset: 2px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .vz-hero__btn,
  .vz-module,
  .vz-cta__btn {
    transition: none;
  }

  .vz-hero__btn:hover,
  .vz-module:hover,
  .vz-cta__btn:hover {
    transform: none;
  }
}
