/* ============================================
   FLIGHT WINE BAR - HOMEPAGE STYLES
   Inspired by GiangisKitchen.com
   Clean, elegant, content-focused
   ============================================ */

/* --- Container --- */
.fwb-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Hero Section --- */
.fwb-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--fwb-primary) 0%, var(--fwb-primary-dark) 60%, #3D1A1E 100%);
  overflow: hidden;
}

.fwb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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.03'%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.5;
}

.fwb-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
  max-width: 680px;
}

.fwb-hero__tagline {
  font-family: 'Lora', serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fwb-gold-light);
  margin-bottom: 16px;
}

.fwb-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  line-height: 1.15;
}

.fwb-hero__subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 32px;
}

.fwb-hero__search {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--fwb-transition);
}

.fwb-hero__search:focus-within {
  background: rgba(255,255,255,0.18);
  border-color: var(--fwb-gold);
  box-shadow: 0 0 0 3px rgba(197,165,90,0.2);
}

.fwb-hero__search input {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 24px;
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 15px;
  outline: none;
}

.fwb-hero__search input::placeholder {
  color: rgba(255,255,255,0.55);
}

.fwb-hero__search button {
  background: none;
  border: none;
  padding: 14px 20px;
  color: var(--fwb-gold-light);
  cursor: pointer;
  transition: var(--fwb-transition);
}

.fwb-hero__search button:hover {
  color: #fff;
}

/* --- Section Titles --- */
.fwb-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--fwb-dark);
  text-align: center;
  margin: 0 0 8px 0;
}

.fwb-section-subtitle {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--fwb-gray);
  text-align: center;
  margin: 0 0 40px 0;
}

/* --- Category Grid --- */
.fwb-categories {
  padding: 70px 0;
  background: var(--fwb-white);
}

.fwb-categories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.fwb-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  background: var(--fwb-cream);
  border-radius: var(--fwb-radius);
  border: 1px solid var(--fwb-border);
  text-decoration: none;
  transition: var(--fwb-transition);
}

.fwb-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--fwb-shadow);
  border-color: var(--fwb-gold);
}

.fwb-cat-card__icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.fwb-cat-card__title {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--fwb-dark);
  margin: 0 0 4px 0;
  text-align: center;
}

.fwb-cat-card__count {
  font-family: 'Lora', serif;
  font-size: 12px;
  color: var(--fwb-gray);
}

/* --- Post Cards Grid --- */
.fwb-latest,
.fwb-popular {
  padding: 70px 0;
}

.fwb-latest {
  background: var(--fwb-cream);
}

.fwb-popular {
  background: var(--fwb-white);
}

.fwb-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.fwb-posts-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.fwb-post-card {
  background: var(--fwb-white);
  border-radius: var(--fwb-radius);
  overflow: hidden;
  border: 1px solid var(--fwb-border);
  transition: var(--fwb-transition);
}

.fwb-latest .fwb-post-card {
  background: var(--fwb-white);
}

.fwb-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.fwb-post-card__image {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.fwb-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fwb-post-card:hover .fwb-post-card__image img {
  transform: scale(1.05);
}

.fwb-post-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--fwb-cream), var(--fwb-gray-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.fwb-post-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--fwb-primary);
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 4px;
}

.fwb-post-card__body {
  padding: 20px;
}

.fwb-post-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px 0;
  color: var(--fwb-dark);
}

.fwb-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.fwb-post-card__title a:hover {
  color: var(--fwb-primary);
}

.fwb-post-card__excerpt {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--fwb-dark-soft);
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.fwb-post-card__meta {
  font-family: 'Lora', serif;
  font-size: 12px;
  color: var(--fwb-gray);
}

/* --- Compact Post Card --- */
.fwb-post-card--compact .fwb-post-card__image {
  aspect-ratio: 4/3;
}

.fwb-post-card--compact .fwb-post-card__body {
  padding: 16px;
}

.fwb-post-card--compact .fwb-post-card__title {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* --- Tabs --- */
.fwb-tabs__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.fwb-tabs__btn {
  font-family: 'Lora', serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border: 2px solid var(--fwb-border);
  border-radius: 50px;
  background: transparent;
  color: var(--fwb-dark-soft);
  cursor: pointer;
  transition: var(--fwb-transition);
}

.fwb-tabs__btn:hover {
  border-color: var(--fwb-primary);
  color: var(--fwb-primary);
}

.fwb-tabs__btn.active {
  background: var(--fwb-primary);
  border-color: var(--fwb-primary);
  color: #fff;
}

.fwb-tabs__panel {
  display: none;
}

.fwb-tabs__panel.active {
  display: block;
  animation: fwbFadeIn 0.3s ease;
}

@keyframes fwbFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- About / CTA Section --- */
.fwb-about-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--fwb-primary) 0%, var(--fwb-primary-dark) 100%);
  color: #fff;
}

.fwb-about-cta__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.fwb-about-cta__icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.fwb-about-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin: 0 0 16px 0;
}

.fwb-about-cta p {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 32px;
}

.fwb-about-cta__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}

.fwb-stat {
  text-align: center;
}

.fwb-stat__number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fwb-gold-light);
}

.fwb-stat__label {
  display: block;
  font-family: 'Lora', serif;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* --- Buttons --- */
.fwb-btn {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--fwb-transition);
  background: var(--fwb-primary);
  color: #fff;
  border: 2px solid var(--fwb-primary);
}

.fwb-btn:hover {
  background: var(--fwb-primary-dark);
  border-color: var(--fwb-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  color: #fff;
}

.fwb-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.fwb-btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.fwb-section-cta {
  text-align: center;
  margin-top: 40px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .fwb-posts-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .fwb-hero {
    min-height: 360px;
  }
  
  .fwb-hero__content {
    padding: 40px 20px;
  }
  
  .fwb-categories,
  .fwb-latest,
  .fwb-popular {
    padding: 50px 0;
  }
  
  .fwb-categories__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .fwb-cat-card {
    padding: 20px 12px;
  }
  
  .fwb-cat-card__icon {
    font-size: 1.8rem;
  }
  
  .fwb-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .fwb-posts-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fwb-about-cta__stats {
    gap: 24px;
  }
  
  .fwb-stat__number {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .fwb-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fwb-posts-grid,
  .fwb-posts-grid--4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .fwb-tabs__nav {
    gap: 6px;
  }
  
  .fwb-tabs__btn {
    font-size: 12px;
    padding: 8px 16px;
  }
  
  .fwb-about-cta__stats {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- Remove default GP content area padding for this template --- */
.page-template-fwb-homepage .site-content {
  padding: 0 !important;
}

.page-template-fwb-homepage .inside-article,
.page-template-fwb-homepage .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.page-template-fwb-homepage .content-area {
  width: 100% !important;
  max-width: 100% !important;
}

/* Remove sidebar on homepage template */
.page-template-fwb-homepage #right-sidebar,
.page-template-fwb-homepage #left-sidebar {
  display: none !important;
}

/* Full width the article */
.page-template-fwb-homepage .site-main > .hentry {
  max-width: 100%;
}

.page-template-fwb-homepage .entry-header {
  display: none;
}

/* --- GP Overrides (fallback selectors) --- */
.fwb-homepage-active .site-content,
.page-template-fwb-homepage .site-content {
  padding: 0 !important;
}

.fwb-homepage-active .inside-article,
.fwb-homepage-active .entry-content,
.fwb-homepage-active .content-area,
.page-template-fwb-homepage .inside-article,
.page-template-fwb-homepage .entry-content,
.page-template-fwb-homepage .content-area {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
}

.fwb-homepage-active #right-sidebar,
.fwb-homepage-active #left-sidebar {
  display: none !important;
}

.fwb-homepage-active .entry-header,
.fwb-homepage-active .page-header {
  display: none !important;
}

/* GP container override for homepage */
.fwb-homepage-active .site-main .no-sidebar,
.fwb-homepage-active .separate-containers .inside-article {
  padding: 0 !important;
}

.fwb-homepage-active #primary {
  width: 100% !important;
  max-width: 100% !important;
}

/* ============================================
   DATE VISIBILITY FIX - Homepage
   Added: 2026-04-07
   ============================================ */

/* Latest Articles date meta */
.fwb-post-card__meta {
  color: var(--fwb-dark-soft) !important;
  font-weight: 500;
}

/* Popular Reads (compact cards) - time element */
.fwb-post-card--compact time {
  display: block;
  font-family: 'Lora', serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--fwb-dark-soft);
  margin-top: 6px;
}
