/* === ALBUKARAOQUE WEBSITE - COMPONENTS === */
/* Reusable UI components and interactive elements */

/* === INTERACTIVE ELEMENTS === */
#btnControl {
  display: none;
}

#btnControl:checked + label > img {
  transform: rotate(720deg);
  width: 75%;
  opacity: 1;
  transition: all 0.7s;
}

#btnControl:not(:checked) + label > img {
  width: 33%;
  opacity: 1;
  transition: all 0.7s;
}

/* === BUTTONS (UNIFIED SYSTEM) === */
/* Base button style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 50px; /* Consistent rounded corners */
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Style Modifiers */
.btn--primary {
  background: linear-gradient(45deg, #40b5a3, #2c7a6c);
  color: white;
  box-shadow: 0 4px 15px rgba(64, 181, 163, 0.3);
}

.btn--secondary {
  background-color: transparent;
  color: white; /* Default for hero/dark backgrounds */
  border-color: white;
}

.btn--light {
  background-color: #f5f5f5;
  color: #333;
  border-color: #f5f5f5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Size Modifiers */
.btn--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn--small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Hover States */
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(64, 181, 163, 0.4);
}

.btn--secondary:hover {
  background-color: white;
  color: #333;
}

.btn--light:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Disabled State */
.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === CALL TO ACTION BUTTONS === */
/* This section is now replaced by the unified .btn system above */
/*
.cta-button {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.cta-button.primary {
  background: linear-gradient(45deg, #40B5A3, #2c7a6c);
  color: white;
}

.cta-button.secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button.large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}
*/

/* === HOME PAGE CTA === */
.home-cta-button {
  padding: 1rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  background: #f5f5f5;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.home-cta-button.accent {
  background: linear-gradient(45deg, #40B5A3, #78D5C7);
  color: white;
  box-shadow: 0 4px 10px rgba(64, 181, 163, 0.2);
}

.home-cta-button.accent:hover {
  box-shadow: 0 6px 18px rgba(64, 181, 163, 0.3);
}

/* === EVENT ACTION BUTTONS === */
/* These styles are being deprecated in favor of the new .btn system. */
/*
.btn-primary, .btn-secondary {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}
*/

/* === CTA BUTTONS === */
/* This section is now replaced by the unified .btn system above */
/*
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 0.9rem;
}

.cta-button.primary {
  background: linear-gradient(45deg, #40B5A3, #78D5C7);
  color: white;
  box-shadow: 0 4px 15px rgba(64, 181, 163, 0.3);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(64, 181, 163, 0.4);
  background: white;
  color: #40B5A3;
  border-color: #40B5A3;
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-button.secondary:hover {
  background: white;
  color: #333;
  transform: translateY(-3px);
}

.cta-button.large {
  padding: 1.2rem 2.5rem;
  font-size: 1.2rem;
}
*/

.hero-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* === SHOW CTA BUTTONS === */
.show-cta {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, #40B5A3, #78D5C7);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-align: center;
}

.show-cta:hover {
  background: linear-gradient(45deg, #e61f00, #f0c200);
  transform: translateY(-2px);
}

.show-cta.secondary {
  background: transparent;
  color: #40B5A3;
  border: 2px solid #40B5A3;
}

.show-cta.secondary:hover {
  background: #40B5A3;
  color: white;
}

.shows-cta-center {
  text-align: center;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
}

.shows-cta-center .cta-button {
  max-width: 200px;
  width: auto;
  white-space: nowrap;
  padding: 1rem 1.5rem;
}

/* === RETRY BUTTON === */
.retry-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}

.retry-button:hover {
  background: var(--primary-dark);
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
  padding: 4rem 2rem;
  background: #f9f9f9;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.testimonial-card .quote {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card .attribution {
  font-weight: bold;
  color: #40B5A3;
}

/* === SOCIAL MEDIA ICONS === */
.social-media-section {
  padding: 4rem 2rem;
  background: white;
  text-align: center;
}

.social-media-section h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  font-weight: 700;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  opacity: 1;
}

.social-icons a {
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons .fa {
  font-size: 4.5em;
  color: #40B5A3;
  transition: color 0.3s ease;
}

.social-icons .fa-facebook-square:hover {
  color: #1877F2;
}

.social-icons .fa-instagram:hover {
  color: #E4405F;
}

.socialmedia img {
  width: 3em; 
  height: 3em; 
}

/* Social media icons - make FontAwesome icons bigger too */
.social-icons .fa {
  font-size: 2.5em;
}

/* === SOCIAL LINKS === */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

.social-link:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* === TABLE STYLES === */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}

.table tr:hover {
  background-color: #f9f9f9;
}

/* === UTILITIES === */
.hidden {
  opacity: 0.25;
}

#CSVTable {
  justify-content: center;
}

/* === ERROR STATES === */
.error-state {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.error-state .error-icon {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 1rem;
}

/* === MOBILE TABLE STYLES === */
/* CLEAN MOBILE TABLE CSS */
@media screen and (max-width: 768px) {
  .table {
    border: 0;
  }
  
  .table caption {
    font-size: 1.3em;
  }
  
  .table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  .table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
    cursor: pointer; /* Make rows feel clickable */
    transition: background-color 0.2s ease-in-out;
  }

  .table tr:hover {
    background-color: rgba(64, 181, 163, 0.1);
  }
  
  .table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    text-align: right;
    padding: 8px 0 8px 90px; /* Content starts 90px from left */
  }
  
  .table td::before {
    /* `data-label` becomes a pseudo-element */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
    width: 80px; /* Fixed 80px width for labels */
    left: 0;
    top: 8px;
  }
  
  .table td:last-child {
    border-bottom: 0;
  }

  /* Hide extra info by default on mobile */
  .table tr:not(.expanded) td.extra-info {
    display: none;
  }

  /* Add a visual indicator to tap for details */
  .table td[data-label="Song"]::after {
    content: ' (tap for details)';
    font-size: 0.9em;
    font-style: italic;
    color: #555;
    margin-left: 5px;
  }

  .table tr.expanded td[data-label="Song"]::after {
    content: ' (tap to hide)';
  }

  .table tr.expanded {
    background-color: #f5f5f5;
  }
}
