@import "tailwindcss";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

/* Design System: Minimalist Premium with Energy Red */
/* Color Palette: White + Energy Red (#E63946) + Dark Text */
/* Typography: Montserrat Bold for headers, Inter for body */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Poppins:wght@600;700&family=Inter:wght@400;500;600&display=swap');

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

/* Energy Red Theme for iPhone Promo */
:root {
  --primary: #E63946; /* Energy Red */
  --primary-foreground: #FFFFFF;
  --sidebar-primary: #E63946;
  --sidebar-primary-foreground: #FFFFFF;
  --chart-1: #E63946;
  --chart-2: #DC143C;
  --chart-3: #C1121F;
  --chart-4: #A4161A;
  --chart-5: #780000;
  --radius: 0.5rem;
  --background: #FFFFFF;
  --foreground: #1A1A1A;
  --card: #F8F9FA;
  --card-foreground: #1A1A1A;
  --popover: #FFFFFF;
  --popover-foreground: #1A1A1A;
  --secondary: #E5E7EB;
  --secondary-foreground: #374151;
  --muted: #D1D5DB;
  --muted-foreground: #6B7280;
  --accent: #E63946;
  --accent-foreground: #FFFFFF;
  --destructive: #DC2626;
  --destructive-foreground: #FFFFFF;
  --border: #E5E7EB;
  --input: #F3F4F6;
  --ring: #E63946;
  --sidebar: #FFFFFF;
  --sidebar-foreground: #1A1A1A;
  --sidebar-accent: #E63946;
  --sidebar-accent-foreground: #FFFFFF;
  --sidebar-border: #E5E7EB;
  --sidebar-ring: #E63946;
}

/* Dark mode not used for this project - light theme only */
.dark {
  --primary: #E63946;
  --primary-foreground: #FFFFFF;
  --background: #FFFFFF;
  --foreground: #1A1A1A;
  --card: #F8F9FA;
  --card-foreground: #1A1A1A;
  --border: #E5E7EB;
  --input: #F3F4F6;
  --ring: #E63946;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground font-sans;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  h1 {
    font-size: 3rem;
    font-weight: 900;
  }
  h2 {
    font-size: 2rem;
    font-weight: 800;
  }
  h3 {
    font-size: 1.5rem;
    font-weight: 700;
  }
  button:not(:disabled),
  [role="button"]:not([aria-disabled="true"]),
  [type="button"]:not(:disabled),
  [type="submit"]:not(:disabled),
  [type="reset"]:not(:disabled),
  a[href],
  select:not(:disabled),
  input[type="checkbox"]:not(:disabled),
  input[type="radio"]:not(:disabled) {
    @apply cursor-pointer;
  }
}

@layer components {
  /**
   * Custom container utility that centers content and adds responsive padding.
   *
   * This overrides Tailwind's default container behavior to:
   * - Auto-center content (mx-auto)
   * - Add responsive horizontal padding
   * - Set max-width for large screens
   *
   * Usage: <div className="container">...</div>
   *
   * For custom widths, use max-w-* utilities directly:
   * <div className="max-w-6xl mx-auto px-4">...</div>
   */
  .container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* 16px - mobile padding */
    padding-right: 1rem;
  }

  .flex {
    min-height: 0;
    min-width: 0;
  }

  /* Premium Button Styles */
  .btn-primary {
    @apply bg-primary text-primary-foreground font-semibold px-8 py-3 rounded-lg transition-all duration-300 hover:shadow-lg hover:scale-105 active:scale-95;
  }

  .btn-primary:hover {
    @apply bg-red-700;
  }

  /* Pulse animation for urgent CTAs */
  @keyframes pulse-red {
    0%, 100% {
      box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }
    50% {
      box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }
  }

  .pulse-urgent {
    animation: pulse-red 2s infinite;
  }

  /* Card with left red accent */
  .card-accent {
    @apply border-l-4 border-l-primary bg-card text-card-foreground rounded-lg shadow-sm hover:shadow-md transition-shadow duration-300;
  }

  /* Fade-in animation */
  @keyframes fade-in-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fade-in-up {
    animation: fade-in-up 0.6s ease-out;
  }

  @media (min-width: 640px) {
    .container {
      padding-left: 1.5rem; /* 24px - tablet padding */
      padding-right: 1.5rem;
    }
  }

  @media (min-width: 1024px) {
    .container {
      padding-left: 2rem; /* 32px - desktop padding */
      padding-right: 2rem;
      max-width: 1280px; /* Standard content width */
    }
  }
}
