/* ============================================================
 *  styles.css — Complete Stylesheet (Plain HTML version)
 * ============================================================ */

/* ==========================================================
 *  1. FONTS
 * ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&display=swap');

/* ==========================================================
 *  2. RESET & BASE
 * ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gladiator-gold: #c9a227;
  --gladiator-bronze: #cd7f32;
  --gladiator-dark: #1a1a1a;
  --arena-red: #8b0000;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  line-height: 1.5;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }


/* ==========================================================
 *  3. BACKGROUND TEXTURES
 * ========================================================== */
.gladiator-texture {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 162, 39, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 0, 0, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(10,10,10,1) 100%);
}

.arena-sand {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.gradient-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%);
}

.hero-image {
  display: none;
  position: fixed;
  top: 0;
  right: 100px;
  width: 420px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: url("right.jpg");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 40%, black 100%);
  opacity: 0.8;
  mix-blend-mode: lighten;
}

@media (min-width: 1024px) {
  .hero-image { display: block; }
}


/* ==========================================================
 *  4. CARD BASE
 * ========================================================== */
.gladiator-card {
  background: linear-gradient(145deg, rgba(26,26,26,0.95) 0%, rgba(15,15,15,0.98) 100%);
  border: 1px solid rgba(201, 162, 39, 0.15);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.gladiator-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(201, 162, 39, 0.06) 45%,
    rgba(201, 162, 39, 0.12) 50%,
    rgba(201, 162, 39, 0.06) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.gladiator-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow:
    0 0 15px rgba(201, 162, 39, 0.15),
    0 0 40px rgba(201, 162, 39, 0.08),
    0 8px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.gladiator-card:hover::after {
  transform: translateX(100%);
}


/* ==========================================================
 *  5. CARD HEADER COLORS
 * ========================================================== */
.gladiator-header-green {
  background: linear-gradient(135deg, #4a7c59 0%, #3a6b4a 30%, #2d5a3d 50%, #3a6b4a 70%, #1e3d2a 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

.gladiator-header-blue {
  background: linear-gradient(135deg, #5a7c8a 0%, #4a6b7a 30%, #3d5a6b 50%, #4a6b7a 70%, #2a3d4d 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(200,220,235,0.1);
}

.gladiator-header-gold {
  background: linear-gradient(135deg, #c4a44a 0%, #a88c38 25%, #8a7a38 50%, #a88c38 75%, #5c4d20 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,230,150,0.15);
}

.gladiator-header-cream {
  background: linear-gradient(135deg, #f5f0e1 0%, #e8dcc8 25%, #ddd0b8 50%, #e8dcc8 75%, #c4b89a 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,240,0.3);
}

.gladiator-header-pink {
  background: linear-gradient(135deg, #d94f8a 0%, #c44278 25%, #b8376e 50%, #c44278 75%, #8a2854 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,180,210,0.12);
}

.gladiator-header-red {
  background: linear-gradient(135deg, #c44030 0%, #a83525 25%, #962d22 50%, #a83525 75%, #6b1f18 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,160,140,0.1);
}

.gladiator-header-black {
  background: linear-gradient(135deg, #383838 0%, #2c2c2c 25%, #1a1a1a 50%, #252525 75%, #0d0d0d 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

.gladiator-header-darkblue {
  background: linear-gradient(135deg, #34567a 0%, #2a4a6b 25%, #1e3550 50%, #2a4a6b 75%, #152638 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(150,190,230,0.08);
}

.gladiator-header-limegreen {
  background: linear-gradient(135deg, #558a32 0%, #4a7a2a 25%, #366020 50%, #4a7a2a 75%, #254515 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(180,230,120,0.08);
}

.gladiator-header-purple {
  background: linear-gradient(135deg, #7b3fa0 0%, #6a2d8e 25%, #5a2278 50%, #6a2d8e 75%, #3d1556 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(200,150,255,0.12);
}


/* ==========================================================
 *  6. HEADER PATTERN OVERLAY
 * ========================================================== */
.gladiator-header-pattern {
  position: relative;
  overflow: hidden;
}

.gladiator-header-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.8;
}

.gladiator-header-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  pointer-events: none;
}


/* ==========================================================
 *  7. CARD HEADER LAYOUT
 * ========================================================== */
.card-header {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-logo {
  height: 2.5rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 8px rgba(0,0,0,0.04)) drop-shadow(0 4px 3px rgba(0,0,0,0.1));
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .card-logo { height: 3rem; }
}

.card-logo.logo-large {
  height: 9rem;
}

@media (min-width: 768px) {
  .card-logo.logo-large { height: 10rem; }
}

.card-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  color: #ffffff;
  font-size: 1.25rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .card-title { font-size: 1.5rem; }
}


/* ==========================================================
 *  8. BADGES
 * ========================================================== */
.popular-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #c9a227 0%, #b8941f 100%);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 2;
}

.badge-text {
  position: absolute;
  top: 0.125rem;
  left: 0.5rem;
  background: rgba(245, 158, 11, 0.9);
  color: #000;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  z-index: 10;
}

.code-badge {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 0.375rem;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-label {
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-value {
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.75rem;
}

.code-value-back {
  font-size: 0.875rem;
}

.code-icon {
  color: #6b7280;
}


/* ==========================================================
 *  9. STATS BADGES
 * ========================================================== */
.stats-badge {
  background: rgba(217, 79, 138, 0.15);
  border: 1px solid rgba(217, 79, 138, 0.3);
}

.stats-badge-pink {
  background: rgba(217, 79, 138, 0.15);
  border: 1px solid rgba(217, 79, 138, 0.3);
}

.stats-badge-blue {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.stats-badge-red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.stats-badge-silver {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.stats-badge-green {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.stats-badge-cream {
  background: rgba(245, 240, 225, 0.12);
  border: 1px solid rgba(245, 240, 225, 0.25);
}

.stats-badge-purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stat-item {
  border-radius: 0.375rem;
  padding: 0.5rem;
}

.stat-label {
  color: #6b7280;
  font-size: 10px;
  display: block;
}

.stat-value {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
}


/* ==========================================================
 *  10. BUTTONS
 * ========================================================== */
.btn-gladiator {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  color: #0a0a0a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: block;
  text-align: center;
}

.btn-gladiator:hover {
  background: linear-gradient(135deg, #c9a227 0%, #b8941f 100%);
  color: #0a0a0a;
  border-color: #c9a227;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.register-btn {
  width: 100%;
  padding: 0.875rem 0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .register-btn {
    padding: 0.625rem 0;
    font-size: 0.75rem;
  }
}

.register-link {
  text-decoration: none;
}


/* ==========================================================
 *  11. CARD BODY
 * ========================================================== */
.card-body {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body-back {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card-bottom {
  margin-top: auto;
}

.tagline {
  color: #9ca3af;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.625;
}

.perks-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.perks-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
  font-size: 0.75rem;
}

.perks-list li svg {
  color: #4ade80;
  flex-shrink: 0;
}

.tc-link {
  color: #4b5563;
  font-size: 10px;
  margin-top: 0.5rem;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.tc-link:hover {
  color: #9ca3af;
}


/* ==========================================================
 *  12. BACK FACE CONTENT
 * ========================================================== */
.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  color: rgba(255,255,255,0.3);
  background: transparent;
  transition: color 0.2s;
  padding: 0.25rem;
}

.close-btn:hover {
  color: rgba(255,255,255,0.6);
}

.back-notice {
  color: #6b7280;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.back-note {
  color: #6b7280;
  font-size: 10px;
  line-height: 1.625;
  margin-bottom: 0.25rem;
}

.back-tagline {
  color: #d1d5db;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.625;
  text-align: center;
}

.tc-title {
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.tc-list {
  list-style: decimal inside;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.tc-list li {
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.625;
}


/* ==========================================================
 *  13. SCROLLBAR HIDING
 * ========================================================== */
.scrollbar-hidden {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}


/* ==========================================================
 *  14. 3D CARD FLIP
 * ========================================================== */
.card-flip-container {
  perspective: 1200px;
  transition: transform 0.3s ease;
  height: 100%;
  min-height: 340px;
  cursor: pointer;
}

.card-flip-container:hover {
  transform: translateY(-4px);
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.card-flipped {
  transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.card-flip-front {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg) translateZ(0);
  display: flex;
  flex-direction: column;
  height: 100%;
}


/* ==========================================================
 *  15. PAGE TITLE
 * ========================================================== */
.title-gladiator {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: linear-gradient(180deg,
    #d4a437 0%,
    #c49a2e 25%,
    #a67c1a 50%,
    #c49a2e 75%,
    #8b6914 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 20px rgba(180, 140, 30, 0.2);
}

.page-title {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .page-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .page-title { font-size: 3rem; }
}


/* ==========================================================
 *  16. PAGE LAYOUT
 * ========================================================== */
.main-content {
  min-height: 100vh;
  position: relative;
}

.page-wrapper {
  position: relative;
  z-index: 10;
  padding: 1rem 0.75rem;
}

@media (min-width: 768px) {
  .page-wrapper { padding: 2rem 0.75rem; }
}

.container {
  max-width: 80rem;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .page-header { margin-bottom: 1.5rem; }
}


/* ==========================================================
 *  17. ARENA BORDER DECORATION
 * ========================================================== */
.arena-border {
  position: relative;
}

.arena-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.3), transparent);
}


/* ==========================================================
 *  18. CARDS GRID
 * ========================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ==========================================================
 *  19. BOTTOM DIVIDER
 * ========================================================== */
.bottom-divider {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.divider-line {
  width: 6rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(217, 119, 6, 0.3), transparent);
}


/* ==========================================================
 *  20. AGE GATE
 * ========================================================== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.age-gate-card {
  position: relative;
  z-index: 10;
  max-width: 24rem;
  width: 100%;
  margin: 0 1rem;
}

.age-gate-body {
  padding: 1.5rem;
  text-align: center;
}

.age-gate-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .age-gate-title { font-size: 1.875rem; }
}

.age-gate-text {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.625;
}

.age-gate-subtext {
  color: #6b7280;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
}

.text-amber {
  color: #fbbf24;
  font-weight: 700;
}

.age-gate-btn {
  width: 100%;
  padding: 0.875rem 0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.age-gate-decline {
  display: block;
  color: #4b5563;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.age-gate-decline:hover {
  color: #9ca3af;
}

.age-gate-footer {
  color: #374151;
  font-size: 10px;
  margin-top: 1.5rem;
  line-height: 1.625;
}

.begamble-link {
  color: #d97706;
  text-decoration: underline;
  transition: color 0.2s;
}

.begamble-link:hover {
  color: #fbbf24;
}

.shield-icon {
  filter: drop-shadow(0 10px 8px rgba(0,0,0,0.04)) drop-shadow(0 4px 3px rgba(0,0,0,0.1));
  position: relative;
  z-index: 2;
}


/* ==========================================================
 *  21. SPECIAL TEXT COLORS (LollySpins)
 * ========================================================== */
.text-pink { color: #f472b6; }
.text-yellow { color: #fef08a; }
