@import url('https://fonts.googleapis.com/css2?family=Anton&family=Karla:wght@300;400;600;700&display=swap');

:root {
  --bg: #0a0c12;
  --surface: #14161f;
  --surface-2: #1e212e;
  --surface-3: #2a2d3d;
  --accent: #ff66aa;
  --accent-2: #ff3388;
  --accent-glow: rgba(255, 102, 170, 0.25);
  --text: #f0f0f5;
  --text-dim: #a0a5b8;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Karla', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

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

a:hover {
  color: var(--text);
  text-shadow: 0 0 12px var(--accent-glow);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 102, 170, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  color: var(--text);
}

.logo .favicon {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
  padding: 0.5rem;
}

.burger span {
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
  box-shadow: 0 0 8px var(--accent-glow);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Decorative background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 102, 170, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 51, 136, 0.08) 0%, transparent 45%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 102, 170, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 102, 170, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 102, 170, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

.hero-grid {
  max-width: 1280px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-text p {
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-2);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255, 102, 170, 0.5);
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

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

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 102, 170, 0.25);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
  aspect-ratio: 4/5;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hero-image:hover img {
  transform: scale(1.05);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(10, 12, 18, 0.95), transparent);
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Sections common */
.section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Fan Art Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  background: var(--surface);
  border: 1px solid rgba(255, 102, 170, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(2) {
  grid-column: span 2;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.gallery-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  position: relative;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.gallery-meta {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-meta h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.gallery-meta .artist {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-meta p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 102, 170, 0.1);
  padding-top: 0.75rem;
}

.technique {
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.rating {
  color: var(--accent);
  font-weight: 700;
}

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

.cosplay-card {
  background: var(--surface);
  border: 1px solid rgba(255, 102, 170, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.cosplay-card:nth-child(1) {
  grid-column: span 2;
}

.cosplay-card:nth-child(4) {
  grid-column: span 2;
}

.cosplay-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.cosplay-image {
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  position: relative;
  overflow: hidden;
}

.cosplay-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: var(--transition);
}

.cosplay-card:hover .cosplay-image img {
  transform: scale(1.08);
}

.cosplay-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cosplay-content {
  padding: 1.5rem;
}

.cosplay-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.cosplay-content .cosplayer {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.cosplay-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Stories Section */
.stories-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.story-card {
  background: var(--surface);
  border: 1px solid rgba(255, 102, 170, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  opacity: 0.5;
  transition: var(--transition);
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.story-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 20px var(--accent-glow);
}

.story-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.story-card .author {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.story-card p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
}

/* Contests Section */
.contests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.contest-card {
  background: var(--surface);
  border: 1px solid rgba(255, 102, 170, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1fr;
}

.contest-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.contest-image {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.contest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.contest-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.contest-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contest-meta span {
  background: var(--surface-2);
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contest-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 102, 170, 0.15);
  background: var(--surface);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-dim);
  max-width: 320px;
}

.footer-links h4 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

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

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

.footer-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 102, 170, 0.1);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Legal pages */
.legal-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

.legal-hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.legal-section {
  background: var(--surface);
  border: 1px solid rgba(255, 102, 170, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.legal-section:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.legal-section h2 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.legal-section p,
.legal-section ul {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.legal-section ul {
  padding-left: 1.5rem;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2) {
    grid-column: span 1;
  }
  .cosplay-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cosplay-card:nth-child(1),
  .cosplay-card:nth-child(4) {
    grid-column: span 1;
  }
  .contest-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 12, 18, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: var(--transition);
    backdrop-filter: blur(20px);
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero {
    padding: 7rem 1.5rem 3rem;
  }
  .section {
    padding: 4rem 1.5rem;
  }
  .gallery-grid,
  .cosplay-grid,
  .stories-list,
  .contests-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
