/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* =============================================
   PREMIUM VISUAL ENHANCEMENTS
   ============================================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Color Palette */
:root {
  --amber-accent: #a15c1a;
  --dark-slate: #1e1e1e;
  --warm-white: #fff8f3;
  --gold-highlight: #f8c24e;
  --deep-amber: #d97706;
  --light-tan: #f5f5dc;
  --medium-gray: #666;
  --border-gray: #e5e5e5;
}

/* Typography */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--warm-white);
  color: var(--dark-slate);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--dark-slate);
  font-weight: 700;
}

/* Hero Section Styles */
.brewing-hero {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 48px;
}

.brewing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(161, 92, 26, 0.85) 0%, rgba(30, 30, 30, 0.75) 100%);
  z-index: 1;
}

.brewing-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 0 24px;
}

.brewing-hero-content h1 {
  font-size: 64px;
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.brewing-hero-content p {
  font-size: 24px;
  margin-bottom: 32px;
  font-weight: 300;
  opacity: 0.95;
}

.brewing-hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.brewing-hero-btn {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brewing-hero-btn-primary {
  background: var(--gold-highlight);
  color: var(--dark-slate);
}

.brewing-hero-btn-primary:hover {
  background: #ffd266;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(248, 194, 78, 0.4);
}

.brewing-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid white;
}

.brewing-hero-btn-secondary:hover {
  background: white;
  color: var(--dark-slate);
  transform: translateY(-2px);
}

/* Enhanced Button Styles */
button, .button, input[type="submit"] {
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

button:hover, .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Featured Breweries Section */
.featured-breweries {
  margin: 48px 0;
  padding: 48px 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.featured-breweries h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 16px;
  color: var(--amber-accent);
}

.featured-breweries > p {
  text-align: center;
  color: var(--medium-gray);
  font-size: 18px;
  margin-bottom: 40px;
}

.brewery-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.brewery-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-gray);
}

.brewery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(161, 92, 26, 0.15);
}

.brewery-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #f5f5dc 0%, #e5e5d0 100%);
}

.brewery-card-content {
  padding: 20px;
}

.brewery-card-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--dark-slate);
}

.brewery-card-location {
  color: var(--medium-gray);
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brewery-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.brewery-card-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--amber-accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.brewery-card-btn:hover {
  background: var(--dark-slate);
  color: white;
}

/* Feeling Lucky Section Enhancement */
.feeling-lucky-section {
  position: relative;
  margin: 48px 0;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--amber-accent) 0%, #8b4513 100%);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
}

.feeling-lucky-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.feeling-lucky-section h2 {
  position: relative;
  font-size: 48px;
  color: white;
  margin-bottom: 16px;
  z-index: 1;
}

.feeling-lucky-section p {
  position: relative;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  z-index: 1;
}

.lucky-btn {
  position: relative;
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 600;
  background: var(--gold-highlight);
  color: var(--dark-slate);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lucky-btn:hover {
  background: white;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Footer CTA Section */
.footer-cta {
  margin: 64px 0 32px;
  padding: 64px 24px;
  background: linear-gradient(135deg, var(--dark-slate) 0%, #2d2d2d 100%);
  border-radius: 16px;
  text-align: center;
  color: white;
}

.footer-cta h2 {
  font-size: 42px;
  color: white;
  margin-bottom: 16px;
}

.footer-cta p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta-btn {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  background: var(--gold-highlight);
  color: var(--dark-slate);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-cta-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(248, 194, 78, 0.4);
}

/* Icon Enhancements */
.location-list-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.location-list-icon::before {
  content: '🍺';
  font-size: 18px;
}

/* Animated Background Bubbles */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 0.8; }
}

.bubble-decoration {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 4s ease-in-out infinite;
}

.bubble-decoration:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.bubble-decoration:nth-child(2) { left: 80%; top: 40%; animation-delay: 1s; width: 60px; height: 60px; }
.bubble-decoration:nth-child(3) { left: 50%; top: 60%; animation-delay: 2s; width: 30px; height: 30px; }

/* Mobile-First Responsive Design */

/* Tablet and below (768px) */
@media (max-width: 768px) {
	/* Hero Section Mobile */
	.brewing-hero {
		height: 500px;
	}

	.brewing-hero-content h1 {
		font-size: 42px;
	}

	.brewing-hero-content p {
		font-size: 18px;
	}

	.brewery-carousel {
		grid-template-columns: 1fr;
	}

	.feeling-lucky-section {
		padding: 60px 16px;
	}

	.feeling-lucky-section h2 {
		font-size: 36px;
	}

	.footer-cta {
		padding: 48px 16px;
	}

	.footer-cta h2 {
		font-size: 32px;
	}

	/* Brewery Finder - Stack search controls */
	div[style*="display: flex"][style*="gap: 8px"] {
		flex-direction: column !important;
	}

	div[style*="display: flex"][style*="gap: 8px"] button,
	div[style*="display: flex"][style*="gap: 8px"] input {
		width: 100% !important;
	}

	/* State grids - reduce minimum width */
	.state-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
		gap: 6px !important;
	}

	.state-link {
		padding: 8px 10px !important;
		font-size: 12px !important;
	}

	/* Category navigation at top */
	div[style*="background:#f9fafb"] a {
		padding: 8px 12px !important;
		font-size: 13px !important;
		margin: 0 2px !important;
	}

	/* City/State listing cards - 2 columns on tablet */
	div[style*="grid-template-columns:repeat(3,1fr)"] {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px !important;
	}

	/* Reduce card padding */
	div[style*="padding:24px"] {
		padding: 16px !important;
	}

	div[style*="padding:40px"] {
		padding: 20px !important;
	}

	/* Smaller fonts in cards */
	div[style*="padding:24px"] h3 {
		font-size: 16px !important;
	}

	/* Action button grids */
	div[style*="grid-template-columns:repeat(3,1fr)"] {
		grid-template-columns: 1fr !important;
		gap: 8px !important;
	}
}

/* Mobile (640px and below) */
@media (max-width: 640px) {
	/* Single column for all grids */
	div[style*="grid-template-columns:repeat(3,1fr)"],
	div[style*="grid-template-columns:repeat(2,1fr)"] {
		grid-template-columns: 1fr !important;
	}

	/* Reduce all gaps */
	div[style*="gap:24px"],
	div[style*="gap:20px"] {
		gap: 12px !important;
	}

	/* Smaller country headers */
	.country-header {
		font-size: 20px !important;
	}

	/* Welcome modal - better mobile fit */
	div[style*="max-width:600px"] {
		max-width: 95% !important;
		padding: 25px !important;
	}

	/* Welcome modal buttons */
	div[style*="grid-template-columns:repeat(2,1fr)"] button {
		padding: 16px !important;
	}

	button[style*="font-size:48px"] div:first-child {
		font-size: 36px !important;
	}
}

/* Very small mobile (480px) */
@media (max-width: 480px) {
	/* State grid - 1 column on very small screens */
	.state-grid {
		grid-template-columns: 1fr !important;
	}

	/* Hide emoji in category nav to save space */
	a[href*="category_name"] {
		font-size: 12px !important;
		padding: 6px 10px !important;
	}

	/* Compact navigation */
	div[style*="background:#f9fafb"] {
		padding: 8px 0 !important;
	}
}
