/* ===== style.css – Shared styles for frenchgamer.info ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0f0a;
  --bg-card: #111711;
  --bg-input: #1a221a;
  --gold: #ffcc00;
  --gold-dim: #cc9900;
  --text-light: #f0f0f0;
  --text-muted: #b0b0b0;
  --border-color: #2a332a;
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  padding-top: 70px;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--gold-dim);
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 15, 10, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
}
.logo-icon {
  font-size: 1.6rem;
}
.logo-text {
  color: var(--text-light);
}
.logo-text .gold {
  color: var(--gold);
}
.info-dot {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== BURGER ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger .bar {
  width: 28px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: 0.3s;
}
.burger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active .bar:nth-child(2) {
  opacity: 0;
}
.burger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  color: var(--bg-dark);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--bg-dark);
  text-decoration: none;
}

/* ===== SECTIONS ===== */
section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}
section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 40px;
  text-align: center;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}
.gold {
  color: var(--gold);
}

/* ===== HERO ===== */
.hero {
  padding-top: 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-body p {
  margin-bottom: 16px;
  color: #ddd;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-image img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.hero-image-credit {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== EVENTS ===== */
.events-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.events-content p {
  margin-bottom: 16px;
  color: #ddd;
}
.events-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}
.events-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}
.events-table th {
  background: var(--bg-input);
  color: var(--gold);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}
.events-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}
.events-table tr:last-child td {
  border-bottom: none;
}
.date-badge {
  background: var(--gold);
  color: var(--bg-dark);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
}
.events-footer {
  margin-top: 12px;
  font-style: italic;
}
.events-image img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.image-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

/* ===== FAN ART ===== */
.fanart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.fanart-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}
.fanart-card:hover {
  transform: translateY(-4px);
}
.fanart-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.fanart-info {
  padding: 14px;
}
.fanart-info h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.fanart-info .artist {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.fanart-info p {
  font-size: 0.9rem;
  color: #ccc;
}
.fanart-collage {
  margin: 20px 0 12px;
}
.fanart-collage img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.fanart-cta {
  text-align: center;
  margin-top: 16px;
}

/* ===== FORUM ===== */
.forum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.forum-thread {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.thread-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.thread-topic {
  font-size: 1.4rem;
}
.thread-header h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}
.thread-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.thread-summary p {
  font-size: 0.95rem;
  color: #ddd;
}
.forum-cta {
  text-align: center;
  margin-top: 32px;
}

/* ===== RULES ===== */
.rules-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.rules-content ul {
  list-style: none;
  margin: 16px 0;
}
.rules-content ul li {
  padding: 8px 0 8px 28px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23ffcc00" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg>')
    left center no-repeat;
  background-size: 18px;
  color: #ddd;
}
.rules-footer {
  margin-top: 16px;
  font-weight: 500;
}
.rules-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.rules-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold);
}
.rules-card ul {
  list-style: none;
}
.rules-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}
.rules-card ul li:last-child {
  border-bottom: none;
}
.rules-card ul li a {
  color: var(--text-light);
}
.rules-card ul li a:hover {
  color: var(--gold);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 0;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 30px;
}
.footer-brand .logo-text {
  font-size: 1.4rem;
}
.footer-brand p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.95rem;
}
.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-links ul {
  list-style: none;
}
.footer-links ul li {
  padding: 4px 0;
}
.footer-links ul li a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links ul li a:hover {
  color: var(--gold);
  text-decoration: underline;
}
.footer-social p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.social-icons {
  display: flex;
  gap: 16px;
  font-size: 1.6rem;
}
.social-icons a {
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}
.social-icons a:hover {
  color: var(--gold);
  text-decoration: none;
}
.footer-bottom {
  background: var(--bg-dark);
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-grid,
  .events-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .fanart-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .forum-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  .burger {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .main-nav a {
    font-size: 1.1rem;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-grid {
    gap: 24px;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .fanart-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .events-image {
    order: -1;
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .fanart-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    text-align: center;
  }
}
