/* Component Styles - Festival cards, buttons, notifications, and interactive elements */

/* Festival Cards */
.festival-card {
  position: relative;
  width: 45%;
  margin: 1rem 0;
  padding: 1rem;
  background: rgb(45 45 45 / 90%);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.festival-card:hover {
  border-color: #ff6b00;
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgb(255 107 0 / 20%);
}

.festival-card.left {
  align-self: flex-start;
  margin-right: 50%;
  margin-right: calc(50% + 20px);
}

.festival-card.right {
  align-self: flex-end;
  margin-left: 50%;
  margin-left: calc(50% + 20px);
}

.festival-card::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #ff6b00;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 15px rgb(255 107 0 / 70%);
}

.festival-card.left::before {
  right: -80px;
}

.festival-card.right::before {
  left: -80px;
}

/* Festival Content */
.festival-header {
  position: relative;
  margin-bottom: 1rem;
}

.festival-poster {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid #555;
}

.festival-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff6b00;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgb(0 0 0 / 70%);
}

.festival-dates {
  font-size: 1rem;
  color: #fc0;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.festival-location {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.festival-bands h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.festival-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #555;
}

.festival-card.collapsed {
  opacity: 0.4;
  transform: scale(0.95);
  height: auto;
  min-height: auto;
  pointer-events: none;
  transition: all 0.4s ease;
}

.festival-card.collapsed .festival-header,
.festival-card.collapsed .festival-dates,
.festival-card.collapsed .festival-location,
.festival-card.collapsed .festival-bands,
.festival-card.collapsed .festival-info {
  display: none;
}

.festival-card.collapsed .festival-name {
  margin-bottom: 0;
  font-size: 1.2rem;
  text-align: center;
  padding: 0.5rem 0;
}

.festival-card.collapsed::before {
  display: none;
}

.bands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.band-tag {
  background: rgb(255 107 0 / 20%);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgb(255 107 0 / 40%);
  transition: all 0.3s ease;
}

.band-tag.highlighted {
  background: rgb(255 107 0 / 80%);
  color: black;
  font-weight: bold;
  border: 2px solid #ff6b00;
  box-shadow: 0 2px 8px rgb(255 107 0 / 50%);
  transform: scale(1.05);
}

.ticket-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fc0;
}

.festival-website {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, #ff6b00, #c50);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgb(255 107 0 / 30%);
}

.festival-website:hover {
  background: linear-gradient(45deg, #c50, #ff6b00);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(255 107 0 / 40%);
}

/* Favorites */
.favorite-container {
  position: absolute;
  top: 10px;
  right: 10px;
}

.star-icon {
  display: inline-block;
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  user-select: none;
  line-height: 1;
}

.star-icon:hover {
  transform: scale(1.2);
}

.star-icon:focus {
  outline: 2px solid #ff6b00;
  outline-offset: 2px;
}

.star-icon.favorite {
  color: #ff6b00;
  text-shadow: 0 0 10px rgb(255 107 0 / 80%);
}

.star-icon.favorite:hover {
  color: #fa0;
}

/* Filter Button */
.filter-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgb(45 45 45 / 90%);
  color: #ccc;
  border: 2px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgb(0 0 0 / 30%);
}

.filter-button:hover {
  background: rgb(60 60 60 / 90%);
  border-color: #ff6b00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(255 107 0 / 30%);
}

.filter-button:focus {
  outline: 2px solid #ff6b00;
  outline-offset: 2px;
}

.filter-button.active {
  background: rgb(255 107 0 / 90%);
  color: white;
  border-color: #ff6b00;
  box-shadow: 0 4px 15px rgb(255 107 0 / 50%);
}

.filter-button.active:hover {
  background: rgb(255 130 30 / 90%);
  box-shadow: 0 6px 20px rgb(255 107 0 / 60%);
}

.filter-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.filter-text {
  font-family: inherit;
}

/* Bands Filter */
.filter-container {
  position: relative;
  margin-right: 1rem;
  z-index: 9999;
}

.bands-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgb(45 45 45 / 90%);
  color: #ccc;
  border: 2px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgb(0 0 0 / 30%);
  min-width: 200px;
}

.bands-filter-toggle:hover {
  background: rgb(60 60 60 / 90%);
  border-color: #ff6b00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(255 107 0 / 30%);
}

.bands-filter-toggle:focus {
  outline: 2px solid #ff6b00;
  outline-offset: 2px;
}

.bands-filter-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.bands-filter-text {
  font-family: inherit;
  flex: 1;
  text-align: left;
}

.bands-filter-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.bands-filter-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 100%;
  width: 280px;
  background: rgb(25 25 25 / 95%);
  border: 2px solid #ff6b00;
  border-radius: 15px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgb(0 0 0 / 50%);
  z-index: 10000;
  max-height: 400px;
  overflow-y: auto;
}

.bands-filter-clear-all {
  display: block;
  width: 100%;
  padding: 0.7rem;
  background: rgb(239 68 68 / 80%);
  color: white;
  border: none;
  border-bottom: 1px solid #555;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.bands-filter-clear-all:hover {
  background: rgb(239 68 68 / 100%);
}

.bands-filter-search {
  width: 100%;
  padding: 0.7rem;
  background: rgb(45 45 45 / 90%);
  color: white;
  border: none;
  border-bottom: 1px solid #555;
  font-size: 0.9rem;
}

.bands-filter-search::placeholder {
  color: #ccc;
}

.bands-filter-search:focus {
  outline: none;
  background: rgb(60 60 60 / 90%);
}

.bands-filter-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.bands-filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.bands-filter-item:hover {
  background: rgb(255 107 0 / 10%);
}

.bands-filter-item input[type="checkbox"] {
  accent-color: #ff6b00;
  transform: scale(1.1);
  flex-shrink: 0;
  margin-right: 0.2rem;
}

.bands-filter-item span {
  color: white;
  font-size: 0.9rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  padding-left: 0;
}

.bands-filter-item.selected {
  background: rgb(255 107 0 / 20%);
  border-left: 3px solid #ff6b00;
  font-weight: bold;
}

.bands-filter-selected-section {
  border-bottom: 1px solid #555;
  background: rgb(255 107 0 / 5%);
}

.bands-filter-selected-section .bands-filter-section-header {
  padding: 0.4rem 0.8rem;
  color: #ff6b00;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgb(255 107 0 / 10%);
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid;
  box-shadow: 0 4px 15px rgb(0 0 0 / 30%);
}

.notification-success {
  background: rgb(34 197 94 / 90%);
  color: white;
  border-color: #22c55e;
}

.notification-info {
  background: rgb(59 130 246 / 90%);
  color: white;
  border-color: #3b82f6;
}

.notification-error {
  background: rgb(239 68 68 / 90%);
  color: white;
  border-color: #ef4444;
}
