/* Nippongaku Events — Landing page styles */

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

:root {
  --color-bg: #0e0e10;
  --color-surface: #1a1a1d;
  --color-surface-2: #242429;
  --color-text: #f3f3f7;
  --color-muted: #b5b5bd;
  --color-accent: #ff4d6d;
  --color-accent-hover: #ff6b8a;
  --font: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

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

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

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

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero */
.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255, 77, 109, 0.18), transparent 55%),
              linear-gradient(180deg, rgba(255, 77, 109, 0.05), transparent 60%),
              var(--color-bg);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-sub {
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 77, 109, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--color-surface);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.narrow p,
.section-dark p {
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-logo-wrapper {
  display: block;
  text-align: center;
  margin: 2rem 0 1rem;
}

.brand-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.main-site-link {
  font-weight: 600;
  margin-bottom: 0;
}

/* Events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.event-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.event-image {
  height: 220px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}

.event-card.featured .event-image {
  height: 100%;
  min-height: 320px;
}

.event-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.event-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.event-location {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.event-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.event-body p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.event-link {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Past events list */
.events-list {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-surface-2);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-row-date {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--color-accent);
  min-width: 60px;
}

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

.event-row-info p {
  margin: 0;
  text-align: left;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: #08080a;
  padding: 2rem 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  color: var(--color-muted);
  transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
  color: var(--color-accent);
  transform: translateY(-3px);
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-card.featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .event-card.featured .event-image {
    min-height: 220px;
  }
}

@media (max-width: 700px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1rem 4%;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  .brand-logo-wrapper {
    margin: 1.5rem 0 1rem;
  }

  .brand-logo {
    max-width: 160px;
  }

  .narrow p {
    font-size: 0.95rem;
  }

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

  .event-card.featured {
    grid-column: span 1;
  }

  .event-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .brand-logo {
    max-width: 140px;
  }

  .social-links svg {
    width: 20px;
    height: 20px;
  }
}
