/* Main Application Stylesheet (jQuery UI "Sunny" Theme Palette) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-dark: #fffdf0;
  --bg-card: rgba(254, 249, 231, 0.95);
  --bg-card-border: #e69f00;
  --primary: #f5a40c;
  --primary-hover: #d97706;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --text-main: #222222;
  --text-muted: #555555;
  --text-dim: #777777;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 10px 30px -10px rgba(245, 158, 11, 0.35);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fffdf0;
  background-image: 
    radial-gradient(at 0% 0%, rgba(254, 219, 87, 0.25) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(245, 164, 12, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(253, 224, 71, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  padding-bottom: 60px;
  line-height: 1.5;
}

/* App Header & Navbar in Sunny Theme */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #fedb57, #f5a40c);
  border-bottom: 2px solid #e69f00;
  padding: 16px 32px;
  box-shadow: 0 4px 20px rgba(230, 159, 0, 0.25);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 2px solid #e69f00;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  flex-shrink: 0;
}

.brand-icon:hover {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #383838;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.brand-text p {
  font-size: 0.82rem;
  color: #444444;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box-container {
  position: relative;
  width: 320px;
}

.search-box-container input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: #ffffff;
  border: 2px solid #e69f00;
  border-radius: 24px;
  color: #222222;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-box-container input:focus {
  border-color: #d97706;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.search-icon-inside {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #e69f00;
  pointer-events: none;
}

/* Main Container Layout */
.main-wrapper {
  max-width: 1400px;
  margin: 32px auto 0 auto;
  padding: 0 24px;
}

/* About SEARCH History Info Card with 2-Column Grid Layout */
.about-info-card {
  background: linear-gradient(135deg, #fffdf0, #feeebd);
  border: 2px solid #e69f00;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(230, 159, 0, 0.15);
}

.about-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(230, 159, 0, 0.3);
  padding-bottom: 12px;
}

.about-info-icon {
  font-size: 1.4rem;
}

.about-info-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #383838;
}

.about-card-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.about-info-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-info-body p {
  color: #383838;
  font-size: 0.94rem;
  line-height: 1.6;
  font-weight: 500;
}

/* Vertically Stacked Metric Cards Column on Right Side */
.stats-vertical-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  background: #fffdf0;
  border: 1px solid #e69f00;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(230, 159, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 159, 0, 0.25);
}

.stat-info h3 {
  font-size: 0.8rem;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-weight: 700;
}

.stat-info .stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #383838;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.icon-green { background: #feeebd; color: #d97706; border: 1px solid #e69f00; }
.icon-blue { background: #dbeafe; color: #2563eb; border: 1px solid #93c5fd; }
.icon-amber { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }

/* Control Panel Bar */
.control-panel {
  background: #fffdf0;
  border: 1px solid #e69f00;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 6px 18px rgba(230, 159, 0, 0.12);
}

.we-select-wrapper {
  width: 100%;
  max-width: 650px;
}

.we-nav-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 14px;
}

.we-nav-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #fedb57, #f5a40c);
  border: 1px solid #e69f00;
  border-radius: 12px;
  color: #383838;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 12px rgba(230, 159, 0, 0.2);
}

.we-nav-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #f5a40c, #d97706);
  border-color: #b45309;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

.we-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #9ca3af;
  box-shadow: none;
}

/* Weekend Hero Card */
.weekend-hero {
  background: linear-gradient(135deg, #fffdf0, #fef9e7);
  border: 2px solid #e69f00;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(230, 159, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.weekend-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(254, 219, 87, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e69f00;
  padding-bottom: 20px;
}

.hero-title-group h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #383838;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #444444;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.hero-subtitle .artist {
  color: #d97706;
  font-weight: 700;
}

.hero-dates {
  font-size: 0.95rem;
  color: #383838;
  background: #feeebd;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid #e69f00;
  font-weight: 600;
}

.hero-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.media-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.media-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid #e69f00;
  border-radius: 10px;
  color: #383838;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.media-btn:hover {
  background: #feeebd;
  border-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 159, 0, 0.2);
}

.btn-youtube {
  background: #fee2e2;
  border-color: #f87171;
  color: #dc2626;
}

.btn-youtube:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #b91c1c;
}

.btn-wiki {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1d4ed8;
}

.btn-wiki:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}

.btn-songfacts {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.btn-songfacts:hover {
  background: #f59e0b;
  color: #ffffff;
  border-color: #d97706;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.thumb-card {
  aspect-ratio: 4/3;
  background: #ffffff;
  border: 1px solid #e69f00;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumb-card:hover img {
  transform: scale(1.08);
}

.thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: rgba(254, 219, 87, 0.95);
  font-size: 0.72rem;
  color: #383838;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid #e69f00;
}

/* Modal Full Resolution Image Styling */
.full-res-modal-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid #e69f00;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.full-res-modal-img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(230, 159, 0, 0.3);
}

/* Status Role Badges in Sunny Theme */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-1 { background: #d1fae5; color: #047857; border: 1px solid #34d399; } /* Searchers */
.status-2 { background: #dbeafe; color: #1e40af; border: 1px solid #60a5fa; } /* Palanca */
.status-3 { background: #f3e8ff; color: #6b21a8; border: 1px solid #c084fc; } /* Presenting */
.status-4 { background: #fef3c7; color: #92400e; border: 1px solid #fbbf24; } /* Recruiting */
.status-5 { background: #fce7f3; color: #9d174d; border: 1px solid #f472b6; } /* Interpretor */
.status-6 { background: #ccfbf1; color: #115e59; border: 1px solid #2dd4bf; } /* Emmaus */

/* Table Layout inside Accordion */
.table-container {
  width: 100%;
  overflow-x: auto;
  background: #fffdf0;
  border: 1px solid #e69f00;
  border-radius: var(--radius-lg);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  padding: 16px 20px;
  background: #feeebd;
  color: #383838;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid #e69f00;
}

.custom-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(230, 159, 0, 0.2);
  font-size: 0.92rem;
  color: #222222;
}

.custom-table tbody tr {
  transition: var(--transition);
  cursor: pointer;
}

.custom-table tbody tr:hover {
  background: #fef3c7;
}

.attendee-name-cell {
  font-weight: 700;
  color: #222222;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fedb57, #f5a40c);
  border: 1px solid #e69f00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #383838;
}

/* Modal Searcher Profile Details in Sunny Theme */
.profile-modal-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.profile-card-left {
  background: #feeebd;
  border: 1px solid #e69f00;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fedb57, #f5a40c);
  border: 2px solid #e69f00;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #383838;
  box-shadow: 0 4px 14px rgba(230, 159, 0, 0.3);
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e69f00;
  border-radius: 12px;
}

/* Embedded YouTube Video Dialog Container */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #666666;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

/* Responsive / Mobile Styles */
@media (max-width: 850px) {
  .app-header {
    padding: 14px 18px;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .header-actions {
    width: 100%;
  }

  .search-box-container {
    width: 100%;
  }

  .about-card-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-info-card {
    padding: 20px 18px;
  }

  /* Navigation Buttons Responsive Layout: Previous & Next on top row, All Weekends List below */
  .we-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  #btn-prev-we {
    order: 1;
    flex: 1 1 calc(50% - 5px);
  }

  #btn-next-we {
    order: 2;
    flex: 1 1 calc(50% - 5px);
  }

  #btn-back-landing {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }

  .hero-body-grid {
    grid-template-columns: 1fr;
  }

  .main-wrapper {
    padding: 0 16px;
    margin-top: 20px;
  }

  /* Searcher Profile & History Modal: Drop Weekend Attendance History below Profile Card */
  .profile-modal-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ui-dialog {
    width: 92vw !important;
    max-width: 680px;
  }
}
