/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Layout components */
.app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.app-header {
  background-color: #2c3e50;
  padding: 1rem;
  color: white;
  width: 100%;
  position: relative;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.title-container {
  display: flex;
  align-items: center;
  gap: 0;
}

.title-icon {
  height: 2rem;
  width: auto;
  margin: 0;
}

.app-title {
  margin: 0;
  font-size: 1.5rem;
  padding-left: 0.25rem;
}

.footer-link {
  color: #ffd700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffed4e;
}

/* Hamburger menu button - hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.hamburger-icon {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Navigation */
.nav-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: #34495e;
}

/* Ko-fi Button */
.kofi-button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #ff5e5b 0%, #ff4747 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 71, 71, 0.3);
  white-space: nowrap;
}

.kofi-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 71, 71, 0.4);
  background: linear-gradient(135deg, #ff4747 0%, #ff3333 100%);
}

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

.kofi-text {
  line-height: 1;
}

/* Promotional Banner */
.promo-banner {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  width: 100%;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 90;
}

.promo-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-icon {
  font-size: 1.3rem;
  line-height: 1;
}

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

.promo-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.promo-link {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.promo-link:hover {
  color: #fff;
  text-decoration: underline;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main content area */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* Map container styles */
.map-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 50vh !important;
  min-height: 400px;
  margin: 0 auto !important;
}

/* Footer styles */
.app-footer {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.footer-text {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.header-spacer {
  display: block;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
  }
  
  .app-header {
    padding: 1rem 0.5rem;
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: left;
    padding: 0 0.5rem;
    width: 100%;
  }
  
  .app-title {
    font-size: 1.2rem;
    margin: 0;
  }
  
  /* Hide spacer on mobile */
  .header-spacer {
    display: none;
  }
  
  /* Show hamburger menu on mobile */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    margin-right: 0.5rem;
  }
  
  .hamburger-icon {
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
  }
  
  /* Mobile navigation container */
  .nav-container {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 100%;
  }
  
  .nav-container.active {
    max-height: 500px;
  }
  
  /* Mobile navigation */
  .nav-links {
    position: static;
    flex-direction: column;
    gap: 0;
    width: 100%;
    box-shadow: none;
  }
  
  .nav-links.active {
    max-height: none;
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    box-sizing: border-box;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Ko-fi button on mobile */
  .kofi-button {
    width: calc(100% - 3rem);
    margin: 1rem 1.5rem;
    justify-content: center;
    box-sizing: border-box;
  }
  
  /* Promo banner mobile styles */
  .promo-banner {
    padding: 0.4rem 0.5rem;
  }
  
  .promo-content {
    padding: 0 0.5rem;
  }
  
  .promo-icon {
    font-size: 1.1rem;
  }
  
  .promo-heading {
    font-size: 0.85rem;
    flex-wrap: wrap;
  }
  
  .map-container {
    width: 100% !important;
    height: 50vh !important;
    min-height: 350px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Table scrolling */
  table {
    display: block;
    overflow-x: auto;
    width: 100% !important;
  }
  
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  
  .footer-text {
    font-size: 0.8rem;
  }
}