/* ========================================
   BIARRITZ EVENTS - PROFESSIONAL LAYOUT
   Black | Blue | Orange Color Scheme
   ======================================== */

:root {
  /* Biarritz Events: Clean Professional Palette */
  --bg: #f5f5f5;
  --panel: #ffffff;
  --panel-2: #f0f0f0;
  --text: #1a1a1a;
  --muted: #666666;
  --accent: #0891b2;       /* Professional teal */
  --accent2: #0f172a;      /* Dark slate */
  --accent3: #000000;      /* Black */
  --border: #e0e0e0;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

.bevt-events-grid * {
  box-sizing: border-box;
}

.bevt-events-grid {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}


/* ===== HEADER WITH LOGO ===== */
.bevt-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 20px;
  margin: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bevt-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0891b2 0%, #06b6d4 100%);
  z-index: 10;
}

.bevt-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.bevt-logo-section {
  flex-shrink: 0;
}

.bevt-logo {
  height: 60px;
  width: auto;
  max-width: 120px;
  filter: none;
  transition: opacity 0.2s ease;
}

.bevt-logo:hover {
  opacity: 0.8;
}

.bevt-header-text {
  color: #1a1a1a;
  text-align: left;
  flex: 1;
  min-width: 200px;
}

.bevt-header-text h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0891b2;
  letter-spacing: -0.5px;
  text-shadow: none;
}

.bevt-header-text p {
  margin: 6px 0 0 0;
  font-size: 0.9rem;
  color: #666666;
  text-shadow: none;
  font-weight: 400;
  letter-spacing: 0.2px;
}


/* ===== FILTERS SECTION ===== */
.bevt-filters {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  margin: 28px auto;
  max-width: 1400px;
  padding: 20px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bevt-input, .bevt-select {
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.bevt-input:focus, .bevt-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
  background: #f0fdfb;
}

.bevt-input::placeholder {
  color: #999;
}

/* ===== META INFO ===== */
.bevt-meta {
  color: var(--text);
  margin: 20px auto;
  max-width: 1400px;
  padding: 12px 18px;
  font-size: 0.94rem;
  font-weight: 500;
  background: white;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}


/* ===== GRID LAYOUT ===== */
.bevt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== EVENT CARD ===== */
.bevt-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bevt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.15);
  border-color: var(--accent);
}

/* ===== COVER IMAGE ===== */
.bevt-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
  display: block;
  border-bottom: 2px solid var(--accent);
  transition: transform 0.3s ease;
}

.bevt-card:hover .bevt-cover {
  transform: scale(1.03);
}

/* ===== CARD CONTENT ===== */
.bevt-content {
  padding: 20px;
  color: var(--text);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bevt-source-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  background: #dff5fb;
  border: 1px solid #9ad9e7;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.bevt-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--accent3);
  font-weight: 800;
  flex-grow: 0;
}

.bevt-line {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.bevt-line strong {
  color: var(--text);
  font-weight: 700;
}

.bevt-desc {
  margin: 14px 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}


/* ===== TAGS ===== */
.bevt-tag {
  color: var(--accent);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 107, 53, 0.12);
  border: 2px solid var(--accent);
  transition: all 0.25s ease;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 4px 6px 4px 0;
}

.bevt-tag:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.08);
}

/* ===== LINKS/BUTTONS ===== */
.bevt-links {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bevt-card a {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--accent);
  transition: all 0.2s ease;
  display: inline-block;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.bevt-card a:hover {
  background: #0d9488;
  transform: translateY(-2px);
  color: white;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .bevt-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .bevt-header-text h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .bevt-header {
    padding: 35px 16px;
  }

  .bevt-header-content {
    gap: 25px;
  }

  .bevt-header-text h1 {
    font-size: 1.8rem;
  }

  .bevt-header-text p {
    font-size: 0.95rem;
  }

  .bevt-logo {
    height: 70px;
  }

  .bevt-filters {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
    margin: 20px auto;
  }

  .bevt-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px;
  }

  .bevt-cover {
    aspect-ratio: 4 / 3;
  }

  .bevt-card a {
    flex: 1;
    min-width: auto;
  }
}

@media (max-width: 640px) {
  .bevt-header {
    padding: 25px 12px;
  }

  .bevt-header-content {
    flex-direction: column;
    gap: 15px;
  }

  .bevt-header-text h1 {
    font-size: 1.5rem;
  }

  .bevt-header-text p {
    font-size: 0.85rem;
  }

  .bevt-logo {
    height: 55px;
  }

  .bevt-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .bevt-cover {
    aspect-ratio: 4 / 3;
  }

  .bevt-content {
    padding: 14px;
  }

  .bevt-title {
    font-size: 1.1rem;
  }

  .bevt-card a {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .bevt-filters {
    margin: 15px auto;
  }
}

/* ===== EMPTY STATE ===== */
.bevt-grid > p {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ===== ACCESSIBILITY ===== */
.bevt-card a:focus,
.bevt-input:focus,
.bevt-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .bevt-filters {
    display: none;
  }
}
