/* css/styles.css */

/* === Root Variables === */
:root {
  --darkblue: #1e3a5f;
  --royal: #275dff;
  --charcoal: #757575;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --orange: #EBA41D;
  --accent: #FFD700;
}

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

/* === Fonts === */
@font-face {
  font-family: 'Overlock Bold';
  src: url('../fonts/Overlock-Black.ttf') format('truetype');
}
@font-face {
  font-family: 'Sedgwick Ave Display';
  src: url('../fonts/SedgwickAveDisplay-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Overlock';
  src: url('../fonts/Overlock-Regular.ttf') format('truetype');
}

/* === Base Styles === */
html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Overlock', sans-serif;
  background-color: var(--darkblue);
  color: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* === Header & Nav === */
header {
  width: 100%;
  background-color: var(--royal);
  color: var(--orange);
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1000;
}

.club-title {
  font-size: 2rem;
  font-family: 'Overlock Bold', cursive;
  font-weight: bold;
  margin-top: 0.5rem;
  animation: fadeSlideDown 1.2s ease-out;
}

/* Mobile hamburger */
.menu-toggle {
  position: absolute;
  top: 3.5rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--orange);
  cursor: pointer;
  z-index: 1100;
}

/* Mobile Nav (hidden off-screen by default) */
nav {
  position: absolute;
  top: 100%;
  right: 0;
  transform: translateX(100%);
  background-color: var(--orange);
  display: flex;
  flex-direction: column;
  width: 200px;
  box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
}

nav.show {
  transform: translateX(0);
}

nav a {
  color: var(--darkblue);
  text-decoration: none;
  padding: 1rem;
  border-bottom: 1px solid var(--darkblue);
  text-align: center;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: var(--accent);
  color: var(--royal);
}

nav.show a {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: calc(var(--i) * 0.1s);
}

/* === Hero Section === */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(135deg, var(--darkblue) 0%, var(--royal) 70%);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-family: 'Overlock Bold', cursive;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--orange);
}

.hero-background {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.hero-logo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === Divider === */
.section-divider {
  border: none;
  height: 6px;
  width: 100vw;
  background: linear-gradient(to right, var(--orange), var(--white), var(--orange));
  opacity: 0.7;
  animation: slideIn 1s ease-in-out;
}

/* === Buttons === */
.btn-primary {
  padding: 0.75rem 1.5rem;
  background-color: var(--orange);
  color: var(--darkblue);
  font-family: 'Overlock', cursive;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

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

/* === Footer === */
/* Footer styling */
footer {
  background-color: var(--darkblue);
  color: var(--orange);
  text-align: center;
  padding: 2rem 1rem;       /* more padding for spacing */
  display: flex;
  flex-direction: column;   /* stack children vertically */
  align-items: center;
  gap: 1rem;                /* space between elements */
}

/* Shopify store button */
footer .shop-link {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

footer .shop-link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Optional: adjust copyright text */
footer .copyright {
  font-size: 0.9rem;
  color: var(--off-white);
}


/* === Animations === */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* === Media Queries === */
@media (max-width: 599px) {
  header {
    padding: 1rem;
  }

  nav {
    width: 90%;
  }

  .container {
    padding: 1rem;
  }

  h2, p {
    text-align: center;
  }

  .section-divider {
    height: 5px;
  }

  .hero-logo {
    width: 100%;         /* Make container full width */
    max-width: 100%;      /* Let image fully scale */
    min-width: unset;     /* Remove min-width restriction */
  }

  .hero-logo img {
    width: 90%;           /* Let image take 90% of screen */
    max-width: 100%;
    height: auto;
  }
}


@media (min-width: 600px) and (max-width: 991px) {
  .container {
    padding: 2rem;
  }

  nav {
    width: 250px;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-logo {
    width: 50vw;
    max-width: 500px;
  }
}

/* === Desktop Nav === */
@media (min-width: 992px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .club-title {
    margin: 0;
  }

  nav {
    position: static;
    transform: none;
    flex-direction: row;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: none;
    box-shadow: none;
    width: auto;
  }

  nav a {
    border-bottom: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    color: var(--off-white);
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
  }

  nav a:hover {
    background-color: var(--off-white);
    color: var(--orange);
  }

  .menu-toggle {
    display: none;
  }

  .hero-logo {
    width: 65vw;
    max-width: 600px;
  }
}

/* === Schedule Board Styles === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

h1 {
  font-family: 'Overlock Bold';
  color: var(--orange);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--accent);
}

/* Navigation arrows for weekly scroll */
.week-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.week-nav a {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px var(--royal);
}

.week-nav a:hover {
  background: var(--accent);
  color: var(--darkblue);
  box-shadow: 0 0 20px var(--accent);
}

/* Weekly Grid */
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.day-card {
  background: linear-gradient(180deg, var(--royal), var(--darkblue));
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.3s ease;
}

.day-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--accent);
}

.day-card h3 {
  font-family: 'Overlock Bold';
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.day-card p {
  color: var(--off-white);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Slot Forms */
.day-card form {
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.05);
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.day-card form:hover {
  background: rgba(255,255,255,0.15);
}

.day-card input[type="text"],
.day-card input[type="email"] {
  width: 100%;
  padding: 0.3rem;
  margin: 0.2rem 0;
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  text-align: center;
}

.day-card button {
  width: 100%;
  padding: 0.4rem;
  margin-top: 0.3rem;
  background: var(--orange);
  border: none;
  border-radius: 6px;
  color: var(--darkblue);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.day-card button:hover {
  background: var(--accent);
  color: var(--royal);
  box-shadow: 0 0 15px var(--accent);
}

/* Full day message */
.full {
  color: var(--accent);
  font-style: italic;
  margin-top: 1rem;
}

/* Confirmation Screen */
.confirmation {
  margin-top: 5rem;
  background: linear-gradient(145deg, var(--royal), var(--darkblue));
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 0 30px var(--accent);
  max-width: 600px;
  width: 90%;
}

.confirmation h2 {
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent);
  margin-bottom: 1rem;
}

.confirmation p {
  color: var(--off-white);
  margin-bottom: 1rem;
}

.confirmation .button {
  display: inline-block;
  background: var(--orange);
  color: var(--darkblue);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.confirmation .button:hover {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

/* === Admin Panel === */
.admin-panel {
  max-width: 600px;
  margin: 2rem auto;
  background: linear-gradient(145deg, var(--royal), var(--darkblue));
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.admin-panel h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.admin-panel form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-panel input {
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  text-align: center;
}

.admin-panel button {
  margin-top: 1rem;
  padding: 0.5rem;
  background: var(--orange);
  color: var(--darkblue);
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.admin-panel button:hover {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

