/* ============================================
   Base Styles - Global Resets and Typography
   ============================================ */

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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, 
               "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans CN", 
               sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Button base styles */
button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  background: rgba(0, 0, 0, 0.7);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
   Language Switcher & Login Button
   ============================================ */

.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.language-switcher button,
.login-button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  cursor: pointer;
}

.login-button-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}

/* ============================================
   Common Section Styles
   ============================================ */

section {
  padding: 2rem;
  margin: 0 auto;
}

section p {
  margin-bottom: 0.5rem;
}

.no-data {
  text-align: center;
  padding: 2rem;
  opacity: 0.7;
}

/* ============================================
   Loading States
   ============================================ */

.loading,
.events-loading,
.schools-loading {
  text-align: center;
  padding: 2rem;
  opacity: 0.8;
}

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

/* Text utilities */
.text-center {
  text-align: center;
}

/* Visibility utilities */
.hidden {
  display: none !important;
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.gap-1rem {
  gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  section {
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .language-switcher {
    top: 10px;
    right: 10px;
  }

  .login-button-container {
    top: 10px;
    left: 10px;
  }
}
