/* ============================================================
   style.css – Luckygem Community Portal
   Colors: #0a0f0a (dark), #ffcc00 (golden yellow)
   ============================================================ */

/* ----- RESET & BASE ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    Roboto,
    system-ui,
    -apple-system,
    sans-serif;
  background-color: #0a0f0a;
  color: #eaeaea;
  line-height: 1.7;
}

a {
  color: #ffcc00;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #ffe066;
}

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

/* ----- BUTTONS ----- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  transition: all 0.25s;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: #ffcc00;
  color: #0a0f0a;
  border-color: #ffcc00;
}
.btn-primary:hover {
  background: #ffe066;
  border-color: #ffe066;
  color: #0a0f0a;
}
.btn-secondary {
  background: transparent;
  color: #ffcc00;
  border-color: #ffcc00;
}
.btn-secondary:hover {
  background: #ffcc00;
  color: #0a0f0a;
}

/* ----- HEADER / NAV ----- */
.site-header {
  background: #0a0f0a;
  border-bottom: 2px solid #ffcc00;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo a {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo a span {
  color: #ffcc00;
}
.logo a .dot {
  color: #888;
  font-weight: 400;
}

.nav-menu ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-menu ul li a {
  color: #ccc;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-menu ul li a:hover,
.nav-menu ul li a.active {
  color: #ffcc00;
  border-bottom-color: #ffcc00;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px;
}
.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ffcc00;
  border-radius: 4px;
  transition: 0.3s;
}
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ----- SECTIONS COMMON ----- */
section {
  padding: 70px 0;
  border-bottom: 1px solid #1f2a1f;
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}
.section-tag {
  display: inline-block;
  background: #ffcc00;
  color: #0a0f0a;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 16px;
}
.section-header h2 strong,
.section-header p strong {
  color: #ffcc00;
}
.section-header p {
  font-size: 1.1rem;
  color: #b0b0b0;
}

h1,
h2,
h3,
h4 {
  color: #fff;
}
h1 strong,
h2 strong,
h3 strong,
h4 strong {
  color: #ffcc00;
}

/* ----- HERO ----- */
.hero {
  padding: 50px 0 70px;
  background: radial-gradient(circle at 20% 30%, #1a2a1a, #0a0f0a 80%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  background: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
  padding: 6px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 204, 0, 0.3);
}
.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-text p {
  margin-bottom: 16px;
  color: #d0d0d0;
}
.hero-text .hero-sub {
  font-size: 1.1rem;
  color: #eee;
}
.hero-stats {
  display: flex;
  gap: 36px;
  margin: 28px 0 32px;
}
.hero-stats div {
  font-weight: 500;
  color: #ccc;
}
.hero-stats div span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffcc00;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 2px solid #ffcc00;
  box-shadow: 0 12px 40px rgba(255, 204, 0, 0.15);
}
.hero-image-caption,
.img-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  margin-top: 10px;
}

/* ----- TOURNAMENTS ----- */
.tournament-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin: 20px 0 30px;
}
.tournament-table-wrap {
  overflow-x: auto;
}
.tournament-table {
  width: 100%;
  border-collapse: collapse;
  background: #111811;
  border-radius: 16px;
  overflow: hidden;
}
.tournament-table th {
  background: #1f2a1f;
  color: #ffcc00;
  font-weight: 700;
  padding: 16px 18px;
  text-align: left;
  border-bottom: 2px solid #ffcc00;
}
.tournament-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #1f2a1f;
  color: #ddd;
}
.tournament-table tbody tr:hover {
  background: #1a221a;
}
.table-footnote {
  margin-top: 12px;
  color: #aaa;
  font-size: 0.9rem;
}
.tournament-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #2a3a2a;
}
.tournament-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ----- CLANS ----- */
.clan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.clan-card {
  background: #111811;
  border-radius: 20px;
  border: 1px solid #2a3a2a;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.clan-card:hover {
  transform: translateY(-4px);
  border-color: #ffcc00;
}
.clan-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.clan-info {
  padding: 20px 22px 24px;
}
.clan-info h3 {
  font-size: 1.5rem;
  color: #ffcc00;
  margin-bottom: 6px;
}
.clan-info p {
  color: #c0c0c0;
  margin-bottom: 10px;
}
.recruit {
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  display: inline-block;
}
.recruit.open {
  background: #1a3a1a;
  color: #8f8;
}
.recruit.closed {
  background: #3a1a1a;
  color: #f88;
}

/* ----- FAN ART ----- */
.fanart-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.fanart-collage img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid #2a3a2a;
}
.fanart-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fan-entry {
  background: #111811;
  padding: 16px 20px;
  border-radius: 14px;
  border-left: 4px solid #ffcc00;
}
.fan-entry h4 {
  color: #ffcc00;
  margin-bottom: 2px;
}
.fan-entry p {
  color: #ccc;
  font-size: 0.95rem;
}
.fan-entry p strong {
  color: #fff;
}

/* ----- RULES ----- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 30px 0 40px;
}
.rule-card {
  background: #111811;
  padding: 24px 22px;
  border-radius: 16px;
  border: 1px solid #2a3a2a;
}
.rule-card h3 {
  color: #ffcc00;
  margin-bottom: 10px;
}
.rule-card p {
  color: #c0c0c0;
}
.rules-cta {
  text-align: center;
  background: #111811;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #2a3a2a;
}
.rules-cta p {
  margin-bottom: 16px;
  color: #ddd;
}
.rules-cta a {
  color: #ffcc00;
  text-decoration: underline;
}

/* ----- FOOTER ----- */
.site-footer {
  background: #070b07;
  border-top: 2px solid #ffcc00;
  padding: 50px 0 0;
}
.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 40px;
  padding-bottom: 30px;
}
.footer-brand a {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}
.footer-brand a span {
  color: #ffcc00;
}
.footer-brand p {
  color: #aaa;
  margin-top: 12px;
}
.footer-copy {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #666;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.footer-links h4 {
  color: #ffcc00;
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-links ul {
  list-style: none;
}
.footer-links ul li {
  margin-bottom: 8px;
}
.footer-links ul li a {
  color: #aaa;
  font-size: 0.9rem;
}
.footer-links ul li a:hover {
  color: #ffcc00;
}
.footer-bottom {
  border-top: 1px solid #1a2a1a;
  padding: 18px 0;
  text-align: center;
  color: #666;
  font-size: 0.85rem;
}
.footer-bottom strong {
  color: #ffcc00;
}

/* ----- TERMS & PRIVACY (additional pages) ----- */
.page-content {
  padding: 60px 0 80px;
}
.page-content h1 {
  font-size: 2.6rem;
  color: #ffcc00;
  margin-bottom: 20px;
}
.page-content h2 {
  font-size: 1.8rem;
  color: #fff;
  margin: 40px 0 16px;
  border-bottom: 2px solid #1f2a1f;
  padding-bottom: 8px;
}
.page-content h3 {
  color: #ffcc00;
  margin: 24px 0 10px;
}
.page-content p,
.page-content li {
  color: #d0d0d0;
  margin-bottom: 12px;
}
.page-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.page-content ul li {
  list-style-type: disc;
}
.page-content .card {
  background: #111811;
  border-radius: 16px;
  padding: 24px 28px;
  border: 1px solid #2a3a2a;
  margin-bottom: 24px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .tournament-grid {
    grid-template-columns: 1fr;
  }
  .fanart-grid {
    grid-template-columns: 1fr;
  }
  .clan-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rules-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0a0f0a;
    border-top: 2px solid #ffcc00;
    padding: 20px 24px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  .nav-menu.open {
    transform: scaleY(1);
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-menu ul li a {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  .clan-grid {
    grid-template-columns: 1fr;
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
}
