/* ----------------------------------------
   Rock-Band Palette & Base Styles
   ---------------------------------------- */
:root {
  --bg-primary:   #1a1a1a;
  --bg-secondary: #333333;
  --accent-red:   #c62828;
  --text-main:    #ffffff;
  --highlight:    #ffc107;
}

/* avoid content being hidden under fixed header/footer */
body {
  margin: 0;
  padding-top: 56px;
  padding-bottom: 70px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: Arial, sans-serif;
}

/* ----------------------------------------
   Navbar
   ---------------------------------------- */
.navbar {
  background-color: var(--bg-secondary) !important;
  z-index: 1000;  /* sits above jumbotron */
}

.navbar-brand,
.navbar-nav .nav-link {
  color: var(--text-main) !important;
  transition: color .2s;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-red) !important;
}

/* Optional: adjust navbar padding on small screens */
@media (max-width: 767.98px) {
  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .navbar-brand {
    font-size: 1.25rem;
  }
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* ----------------------------------------
   Links & Buttons
   ---------------------------------------- */
a {
  color: var(--accent-red);
}
a:hover {
  color: var(--highlight);
  text-decoration: none;
}

.btn-accent {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--text-main);
}
.btn-accent:hover {
  background-color: var(--highlight);
  border-color: var(--highlight);
  color: var(--bg-primary);
}

/* ----------------------------------------
   Tables & Lists
   ---------------------------------------- */
.table thead {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}
.table tbody tr:hover {
  background-color: rgba(198,40,40,0.1);
}
.table {
  width: 100%;
}

.list-group-item {
  color: black;
}
td {
  color: white;
}

/* ----------------------------------------
   Jumbotron / Hero
   ---------------------------------------- */
.jumbotron {
  position: relative;
  margin-top: 0;  /* body padding handles header offset */
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 60vh;   /* default for large screens */
}

.jumbotron .container {
  position: relative;
  z-index: 3;
}

/* Social icon container */
.social-links {
  margin-top: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-red);
  color: var(--text-main);
  border-radius: 50%;
  margin: 0 0.25rem;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
  background: var(--highlight);
  color: var(--bg-primary);
}

/* ----------------------------------------
   Responsive Tweaks
   ---------------------------------------- */
/* Extra-small devices (portrait phones, <576px) */
@media (max-width: 575.98px) {
  .jumbotron {
    height: 40vh;
    background-position: center top;
  }
  .jumbotron h1.display-4 {
    font-size: 2rem;
  }
  .jumbotron p.lead {
    font-size: 1rem;
  }

  /* Reduce container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Band list → 2 columns */
  .list-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .list-group-item {
    text-align: center;
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  /* Tables scroll horizontally */
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table th,
  .table td {
    white-space: nowrap;
    font-size: 0.85rem;
  }
}

/* Small devices (landscape phones, 576px–767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .jumbotron {
    height: 50vh;
  }
  .jumbotron h1.display-4 {
    font-size: 2.5rem;
  }
  .jumbotron p.lead {
    font-size: 1.1rem;
  }

  /* Band list → 3 columns */
  .list-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium devices (tablets, 768px–991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .jumbotron {
    height: 55vh;
  }
  .jumbotron h1.display-4 {
    font-size: 3rem;
  }
  .jumbotron p.lead {
    font-size: 1.25rem;
  }

  /* Larger list-group items */
  .list-group-item {
    font-size: 1rem;
    padding: 1rem;
  }
}

/* Large devices (992px+) */
@media (min-width: 992px) {
  .jumbotron {
    height: calc(100vh - 56px);
    min-height: 900px;
  }
}

/* let the hero size itself to a 16:9 ratio, rather than a fixed viewport height */
.jumbotron {
  height: auto;            /* override any previous vh */
  aspect-ratio: 16 / 9;    /* modern browsers will size height based on width */
  min-height: 200px;        /* fallback minimum so it never collapses too small */
}

/* further shrink on tiny phones */
@media (max-width: 575.98px) {
  .jumbotron {
    aspect-ratio: auto;     /* turn off ratio so you can control height directly */
    height: 30vh;           /* just 30% of viewport height on the smallest screens */
  }
}

/* ==========================================================================
   Gallery Grid (auto-sized like table cells)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* ensure every image fills its “cell” responsively */
.gallery-grid img {
  width: 100%;
  /* pick whatever ratio you like: 1/1 for square, 16/9 for widescreen, etc. */
  aspect-ratio: 1 / 1;    
  object-fit: cover;      
  object-position: center;
  border-radius: 0.25rem; /* optional rounding */
}

/* Bootstrap form overrides */
.container form {
  max-width: 500px;
  margin: 0 auto;
}

.container form .form-control {
  background: #222;
  border-color: #444;
  color: #fff;
}
.container form .form-control::placeholder {
  color: #bbb;
}

/* Center the heading above the form */
.container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}
.embed-responsive::before {
  display: block;
  content: '';
}
.embed-responsive-16by9::before {
  padding-top: 56.25%;  /* 16:9 aspect ratio */
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video cards styling for dark theme */
.video-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid #2a2a2a;
  border-radius: .5rem;
  padding: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.video-title {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.3;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem;
}

/* Uniform thumbs */
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* square thumbs */
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: .25rem;
}

/* Lightbox aesthetics */
.modal-backdrop.show { opacity: 0.9; }
.modal-content { background: rgba(0,0,0,0.85); }
.close { text-shadow: none; opacity: 1; }



