/*
Theme Name: WiField WiFi Solutions
Description: Professional WiFi solutions for UK showgrounds - custom theme
Version: 1.0
Author: WiField
*/

/* Import Tailwind CSS */
@import "tailwindcss";

/* Custom CSS Variables - Exact same as Next.js site */
:root {
  --background: oklch(1 0 0); /* #ffffff */
  --foreground: oklch(0.25 0 0); /* #374151 */
  --card: oklch(0.99 0.01 15); /* #fef2f2 */
  --card-foreground: oklch(0.25 0 0); /* #374151 */
  --popover: oklch(0.99 0.01 15); /* #fef2f2 */
  --popover-foreground: oklch(0.25 0 0); /* #374151 */
  --primary: oklch(0.55 0.22 25); /* #dc2626 */
  --primary-foreground: oklch(1 0 0); /* #ffffff */
  --secondary: oklch(0.75 0.15 85); /* #f59e0b */
  --secondary-foreground: oklch(1 0 0); /* #ffffff */
  --muted: oklch(0.99 0.01 15); /* #fef2f2 */
  --muted-foreground: oklch(0.25 0 0); /* #374151 */
  --accent: oklch(0.75 0.15 85); /* #f59e0b */
  --accent-foreground: oklch(1 0 0); /* #ffffff */
  --destructive: oklch(0.55 0.22 25); /* #dc2626 */
  --destructive-foreground: oklch(1 0 0); /* #ffffff */
  --border: oklch(0.25 0 0); /* #374151 */
  --input: oklch(1 0 0); /* #ffffff */
  --ring: oklch(0.75 0.15 85); /* #f59e0b */
  --radius: 0.5rem;
}

.dark {
  --background: oklch(0.1 0 0);
  --foreground: oklch(0.95 0 0);
  --card: oklch(0.15 0 0);
  --card-foreground: oklch(0.95 0 0);
  --popover: oklch(0.15 0 0);
  --popover-foreground: oklch(0.95 0 0);
  --primary: oklch(0.65 0.22 25);
  --primary-foreground: oklch(0.1 0 0);
  --secondary: oklch(0.85 0.15 85);
  --secondary-foreground: oklch(0.1 0 0);
  --muted: oklch(0.2 0 0);
  --muted-foreground: oklch(0.7 0 0);
  --accent: oklch(0.85 0.15 85);
  --accent-foreground: oklch(0.1 0 0);
  --destructive: oklch(0.65 0.22 25);
  --destructive-foreground: oklch(0.95 0 0);
  --border: oklch(0.2 0 0);
  --input: oklch(0.15 0 0);
  --ring: oklch(0.85 0.15 85);
}

/* Base styles */
* {
  border-color: var(--border);
  outline-color: var(--ring);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Calibri", ui-sans-serif, system-ui, sans-serif;
}

/* Utility classes */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }
.bg-muted { background-color: var(--muted); }

.text-foreground { color: var(--foreground); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary-foreground { color: var(--primary-foreground); }

.border-border { border-color: var(--border); }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

/* Layout */
.min-h-screen { min-height: 100vh; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

/* Grid */
.grid { display: grid; }
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.md\:flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.hidden { display: none; }
.md\:flex { display: flex; }

/* Typography */
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }
.font-bold { font-weight: 700; }
.font-serif { font-family: "Calibri", ui-serif, Georgia, serif; }
.font-semibold { font-weight: 600; }

/* Spacing */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, transparent);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--card);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* Icons */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.icon-xl {
  width: 3rem;
  height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .text-4xl {
    font-size: 2rem;
  }
  
  .text-6xl {
    font-size: 3rem;
  }
  
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .py-32 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Sticky header */
.sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Hero section background */
.hero-bg {
  background-image: url('/wp-content/uploads/uk-agri-showground.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  background-color: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(4px);
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background-color: var(--input);
  color: var(--foreground);
}

.form-input:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--ring);
}

.form-textarea {
  resize: none;
  min-height: 6rem;
}

/* Star rating */
.star-rating {
  display: flex;
  gap: 0.25rem;
}

.star {
  width: 1rem;
  height: 1rem;
  fill: var(--accent);
  color: var(--accent);
}

/* Transitions */
.transition-colors {
  transition: color 0.2s;
}

.transition-shadow {
  transition: box-shadow 0.2s;
}

/* Hover effects */
.hover\:text-primary:hover {
  color: var(--primary);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}
