/* ============================================
   RATTYDATA 2.0 - GLOBAL STYLESHEET
   ============================================ */

/* CSS VARIABLES */
:root { 
  --bg: linear-gradient(135deg, #030201 0%, #060402 15%, #0A0705 35%, #0F0B08 60%, #140F0B 80%, #19130E 100%);
  --panel: #211106;
  --panel2: #211106;
  --text: #e6cca2;
  --muted: #c9c0ae;
  --accent: linear-gradient(135deg, #ff9d26 0%, #ff7158 100%);
  --accent-solid: #FF6347;
  --border: #52330d;
  --warn: #ffde24;
  --orange: #FF8C00;
  --dark-orange: #391000;
  --success: #32CD32;
  --warm-glow: 0 0 15px rgba(255, 140, 0, 0.3);
  --dark-bg: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);
}

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

html {
  background: #000000 !important;
  min-height: 100%;
  width: 100%;
}

body {
  overflow-x: hidden;
  margin: 0; 
  padding: 0; 
  background-color: #000000 !important;
  background-image: linear-gradient(135deg, #030201 0%, #060402 15%, #0A0705 35%, #0F0B08 60%, #140F0B 80%, #19130E 100%);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: 'DIN Alternate', sans-serif;
  font-weight: 700;
  min-height: 100vh;
  max-width: 100vw;
  width: 100%;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 140, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 99, 71, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 60% 30%, rgba(255, 215, 0, 0.01) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* CONTAINER */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: calc(100vh - 200px);
  position: relative;
}

.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ── STANDARD PAGE HEADER ── */
.page-header {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 24px 0 20px;
}

/* TEXT UTILITIES */
.text-orange {
  color: #FF8C00;
  font-weight: 700;
}

.card-name .text-orange {
  font-size: 12px;
  padding-bottom: 4px;
  display: inline-block;
}

.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */

.header-wrapper {
  background: var(--dark-orange);
  width: 100%;
}

.header-content {
  max-width: 3000px;
  margin: 0 auto;
  padding: 0;
}

.header-image {
  width: 100%;
  min-height: 180px;
  height: auto;
  display: block;
  object-fit: cover;
}

.ratty-header {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--warm-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 5px solid var(--border);
  filter: drop-shadow(0 0 30px rgba(255, 140, 0, 0.36)) 
          drop-shadow(0 0 50px rgba(255, 99, 71, 0.24))
          drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  position: sticky;
  top: 0;
  z-index: 998;
  display: flex;
  line-height: 0;
  justify-content: center;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.ratty-header.header-hidden {
  transform: translateY(-100%);
}

.ratty-header a {
  line-height: 0;
  display: block;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.ratty-header a:hover .header-image {
  filter: brightness(1.15);
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: rgba(8, 6, 4, 0.95);
  border: 1px solid rgba(80, 60, 35, 0.9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  border-color: rgba(255, 140, 0, 0.5);
}
.back-to-top svg {
  color: rgba(200, 200, 200, 0.65);
  width: 22px;
  height: 22px;
}
.back-to-top:hover svg {
  color: rgba(200, 200, 200, 0.8);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 2px solid var(--orange);
  padding: 10px 20px;
  text-align: center;
  color: var(--text-muted);
  margin-top: 100px;
}

.footer a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
}

#sliding-footer {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  padding: 28px 20px;
  background: rgba(26, 15, 10, 0.98);
  border-top: 2px solid rgba(255, 140, 0, 0.3);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  z-index: 999;
  backdrop-filter: blur(10px);
  transition: bottom 0.3s ease;
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
  margin: 90px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .wrap {
    padding: 0 40px;
  }
}

@media (max-width: 900px) {
  .page-header {
    font-size: 26px;
    margin: 18px 0 16px;
  }

  .back-to-top {
    bottom: 20px;
    left: auto;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .back-to-top svg {
    width: 22px;
    height: 22px;
  }

  .ratty-header {
    transform: scale(1.5);
    margin: 16px -10px 10px -10px;
    position: sticky;
    top: 0;
    z-index: 998;
    overflow: hidden;
    display: block;
  }
  
  .ratty-header.header-hidden {
    transform: scale(1.5) translateY(-100%);
  }

  .header-image {
    width: 100%;
    max-width: 100%;
    transform-origin: center center;
  }

  #sliding-footer {
    padding: 10px 30px !important;
    font-size: 13px !important;
  }

  .wrap {
    padding: 0 24px;
    overflow-x: clip;
  }
}

@media (max-width: 768px) {
  .page-header {
    font-size: 22px;
    margin: 14px 0 14px;
  }

  .wrap {
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }
}
/* ERC-1155 balance badge */
.mp-balance-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 140, 0, 0.3);
  font-family: 'DIN Alternate', sans-serif;
  letter-spacing: 0.5px;
}

