/* ============================================
   Dover & District Skittles Association
   Clean White & Blue Color Scheme
   ============================================ */

:root {
  --primary-blue: #2292fe;
  --mid-blue: #029be5;
  --pale-blue: #e8f0f7;
  --light-blue: #d4e4f0;
  --white: #ffffff;
  --dark-text: #1a1a1a;
  --light-text: #666666;
  --border-color: #d0d0d0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--white);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--light-text);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--mid-blue);
  text-decoration: underline;
}

/* ============================================
   Navigation
   ============================================ */

nav {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: bold;
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--pale-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-blue);
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--white);
}

.logo-text p {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.9;
  color: var(--white);
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-menu a {
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.nav-menu a.active {
  background-color: var(--mid-blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   Responsive Navigation
   ============================================ */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--primary-blue);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 1rem 2rem;
    border-radius: 0;
  }

  .menu-toggle {
    display: block;
  }

  .logo-text p {
    display: none;
  }
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--mid-blue) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--pale-blue);
  color: var(--primary-blue);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: var(--mid-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
}

/* ============================================
   Cards & Content
   ============================================ */

.card {
  background-color: var(--white);
  border: 1px solid var(--light-blue);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(44, 90, 160, 0.1);
  border-color: var(--mid-blue);
}

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

.section {
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--mid-blue);
}

/* ============================================
   Tables
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--white);
}

thead {
  background-color: var(--primary-blue);
  color: var(--white);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--light-blue);
}

tbody tr:hover {
  background-color: var(--pale-blue);
}

tbody tr:nth-child(even) {
  background-color: rgba(232, 240, 247, 0.5);
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-blue);
}

input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--pale-blue);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.highlight {
  color: var(--mid-blue);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--pale-blue);
  color: var(--primary-blue);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
