/* 
   MTV Meggerdorf - Minimalist White Design 
   Mobile-First Approach
*/

:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --accent-color: #000000;
  --secondary-text: #666666;
  --border-color: #e5e5e5;
  --hover-bg: #f5f5f5;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

p {
  margin-bottom: 1rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-child {
  border-bottom: none;
}

/* Header & Nav */
header {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--spacing-md) 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-links a {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

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

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 0;
}

.hero-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto var(--spacing-lg);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
}

.hero p {
  color: var(--secondary-text);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards & Grid */
.grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  border: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-color);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
}

/* Team Cards (New) */
.team-card {
  border: 1px solid var(--border-color);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-radius: 4px;
  background: #fff;
}

.team-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.social-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
}


/* Events List */
.event-item {
  display: flex;
  align-items: flex-start;
  /* Align to top in case of multi-line */
  gap: 2rem;
  /* Consistent spacing between date and text */
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.event-item:last-child {
  border-bottom: none;
}

.event-date {
  font-weight: 700;
  min-width: 100px;
  flex-shrink: 0;
  /* Prevent date from squishing */
  color: var(--accent-color);
}

.event-details {
  flex-grow: 1;
  /* Take remaining space */
}

.event-details h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.event-details p {
  color: var(--secondary-text);
  font-size: 0.9rem;
  margin: 0;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--secondary-text);
}

/* Footer */
footer {
  background: var(--bg-color);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  overflow: hidden;
  /* Important for marquee */
}

/* Marquee / Scrolling Sponsors */
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: var(--spacing-lg) 0;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  gap: 4rem;
  /* Spacing between items */
  animation: scroll 20s linear infinite;
}

.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--secondary-text);
  font-weight: 500;
}

.sponsor-item i {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.sponsor-item img {
  height: 50px;
  width: auto;
  max-width: none;
  /* Prevent SVG collapse in flex container */
}

.sponsor-item:hover {
  color: var(--accent-color);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Moves halfway because content is duplicated */
}

/* Pause animation on hover for better UX */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.footer-links {
  text-align: center;
  color: var(--secondary-text);
  font-size: 0.9rem;
  margin-top: var(--spacing-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--text-color);
  color: var(--bg-color);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  margin-top: var(--spacing-md);
}

.btn:hover {
  background: #333;
  opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-color);
    flex-direction: column;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
  }

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

  .mobile-menu-btn {
    display: block;
  }

  /* Global Mobile H1 resizing */
  h1 {
    font-size: 2rem;
    hyphens: auto;
    word-wrap: break-word;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}