/* ═══════════════════════════════════════════════════════
   MOMEN .EVIL - 3RB Sea of Thieves - Treasure Pages
   ═══════════════════════════════════════════════════════ */

body.treasure-index-page {
  background:
    linear-gradient(180deg, rgba(6, 28, 38, 0.15) 0%, rgba(3, 19, 26, 0.45) 100%),
    url('../كنوز/sea-of-thieves-all-treasures.png') center top/cover fixed no-repeat !important;
}

body.treasure-single-page {
  background:
    linear-gradient(180deg, rgba(6, 28, 38, 0.4) 0%, rgba(3, 19, 26, 0.85) 100%),
    url('../كنوز/sea-of-thieves-treasure-vault-background.jpg') center top/cover fixed no-repeat !important;
}

/* ── INDEX HERO ── */
.treasure-index-hero {
  position: relative;
  padding: 180px 0 100px;
  text-align: center;
  margin-top: 90px;
  background: transparent;
  overflow: hidden;
}

.treasure-index-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.treasure-index-hero h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 6px;
  position: relative;
  text-shadow: 0 0 40px rgba(212, 168, 67, 0.2);
}

.treasure-index-hero h1::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4a843, transparent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.treasure-index-hero > .container > p,
.treasure-index-hero .container > p {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 20px auto 36px;
  line-height: 1.8;
}

/* ── Stats Row ── */
.treasure-stats-row {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
  background: url('../اسماك/sea-of-thieves-wooden-panel.png') center/100% 100% no-repeat;
  border: none;
  border-radius: 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  overflow: visible;
  padding: 10px 0;
}

.treasure-stat {
  flex: 1;
  text-align: center;
  padding: 30px 16px;
  border-left: 1px solid rgba(0, 0, 0, 0.3);
}

.treasure-stat:last-child {
  border-left: none;
}

.treasure-stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #d4a843;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(212, 168, 67, 0.3);
}

.treasure-stat-lbl {
  font-size: .85rem;
  color: var(--gray);
  font-weight: 500;
}

/* ── Category Section ── */
.treasure-category-section {
  margin-bottom: 50px;
}

.treasure-category-header h2 {
  font-size: 1.8rem;
  color: #d4a843;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 14px;
  position: relative;
  text-shadow: 0 0 15px rgba(212, 168, 67, 0.3);
}

.treasure-category-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.5), transparent);
  border-radius: 2px;
}

.treasure-en-sub {
  font-family: 'Pirata One', system-ui;
  font-size: 1rem;
  color: rgba(212, 168, 67, 0.6);
  font-weight: 400;
}

/* ── Treasure Cards Grid ── */
.treasure-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.treasure-grid-card {
  position: relative;
  background: url('../كنوز/sea-of-thieves-treasure-card-background.png') center/100% 100% no-repeat !important;
  border: none;
  border-radius: 12px;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.treasure-grid-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(212, 168, 67, 0.1);
}

/* Card Image Area */
.treasure-grid-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent !important;
  margin: 10px 10px 0 10px;
  border-radius: 10px 10px 0 0;
}

.treasure-grid-card-img img {
  height: 100px;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 1;
}

.treasure-grid-card:hover .treasure-grid-card-img img {
  transform: scale(1.15) translateY(-4px);
  filter: drop-shadow(0 12px 30px rgba(212, 168, 67, 0.2));
}

/* Card Body */
.treasure-grid-card-body {
  padding: 16px 14px 18px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.treasure-card-title {
  font-weight: 700;
  color: var(--white);
  font-size: .9rem;
  line-height: 1.4;
  margin: 0;
}

.treasure-card-en {
  font-size: .7rem;
  color: #d4a843;
  font-style: italic;
  font-family: 'Pirata One', system-ui;
}

.treasure-card-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.treasure-rarity-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.treasure-rarity-common {
  background: rgba(178, 255, 255, 0.08);
  border: 1px solid rgba(178, 255, 255, 0.2);
  color: var(--green);
}

.treasure-rarity-uncommon {
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.25);
  color: #d4a843;
}

.treasure-rarity-rare {
  background: rgba(220, 50, 80, 0.08);
  border: 1px solid rgba(220, 50, 80, 0.3);
  color: #f06080;
  animation: treasureRareGlow 3s ease-in-out infinite;
}

.treasure-rarity-legendary {
  background: rgba(150, 50, 220, 0.1);
  border: 1px solid rgba(150, 50, 220, 0.35);
  color: #c77dff;
  animation: treasureLegendaryGlow 3s ease-in-out infinite;
}

@keyframes treasureRareGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(220, 50, 80, 0.1); }
  50% { box-shadow: 0 0 15px rgba(220, 50, 80, 0.25); }
}

@keyframes treasureLegendaryGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(150, 50, 220, 0.1); }
  50% { box-shadow: 0 0 20px rgba(150, 50, 220, 0.3); }
}

/* ═══ TREASURE DETAIL PAGE ═══ */

/* Hero Banner */
.treasure-hero-banner {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 168, 67, 0.08);
}

.treasure-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 80px 0;
}

.treasure-hero-info h1 {
  font-size: 2.6rem;
  color: var(--white);
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(212, 168, 67, 0.2);
  line-height: 1.3;
}

.treasure-hero-en {
  display: block;
  font-family: 'Pirata One', system-ui;
  font-size: 1.3rem;
  color: #d4a843;
  font-style: italic;
  font-weight: 400;
  margin-top: 4px;
}

.treasure-hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 14px;
}

.treasure-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.3);
  color: #d4a843;
  padding: 8px 22px;
  border-radius: 25px;
  font-size: .85rem;
  font-weight: 600;
}

.treasure-sell-label {
  color: var(--gray);
  margin-top: 14px;
  font-size: .95rem;
}

.treasure-hero-img-box {
  text-align: center;
  position: relative;
  background: url('../كنوز/sea-of-thieves-treasure-showcase-background.jpg') center/100% 100% no-repeat;
  padding: 70px 40px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.treasure-hero-img-box::before {
  display: none;
}

.treasure-back-btn-wrap {
  text-align: center;
  margin-top: 60px;
  padding-bottom: 40px;
}
.treasure-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #031218;
  border: 1px solid #102b38;
  border-radius: 8px;
  padding: 14px 40px;
  color: #d4a843;
  font-size: 1.4rem;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}
.treasure-back-btn:hover {
  background: #061c26;
  border-color: #d4a843;
  transform: translateY(-3px);
}
.treasure-back-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #9f71ee;
  line-height: 0.8;
  font-weight: 900;
}
.treasure-back-icon .arrow {
  font-size: 1.8rem;
}
.treasure-back-icon .text {
  font-size: 0.55rem;
  letter-spacing: 1px;
}

.treasure-hero-img-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.treasure-hero-img-box img {
  max-height: 280px;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(212, 168, 67, 0.3));
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.treasure-hero-img-box img:hover {
  transform: scale(1.1) translateY(-10px);
}

/* Content Wrap */
.treasure-content-wrap {
  padding: 30px 0 80px;
}

.treasure-article {
  max-width: 920px;
}

/* Sections */
.treasure-sec {
  margin-bottom: 56px;
}

.treasure-sec-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #d4a843;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(212, 168, 67, 0.15);
  position: relative;
}

.treasure-sec-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 80px;
  height: 2px;
  background: #d4a843;
  border-radius: 1px;
}

.treasure-text {
  color: var(--light);
  line-height: 2.1;
  font-size: 1rem;
}

.treasure-text p {
  margin-bottom: 14px;
}

/* Info Cards */
.treasure-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.treasure-info-card {
  background: url('../images/sea-of-thieves-community.png') center/100% 100% no-repeat;
  border-radius: 4px;
  padding: 30px 28px;
  transition: all 0.35s;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.treasure-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.treasure-info-card h3 {
  color: #fceea7;
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 3px 5px rgba(0, 0, 0, 0.8);
}

.treasure-info-card p {
  color: #fff;
  line-height: 1.9;
  position: relative;
  z-index: 1;
  font-weight: 600;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 3px 5px rgba(0, 0, 0, 0.8);
}

/* Price Box */
.treasure-price-box {
  background: rgba(3, 19, 26, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px;
  max-width: 550px;
  position: relative;
}

.treasure-price-value {
  font-size: 1.8rem;
  color: #d4a843;
  font-weight: 700;
  margin-bottom: 10px;
}

.treasure-price-box p {
  color: var(--gray);
  margin-bottom: 15px;
}

/* Price Table */
.treasure-price-table {
  width: 100%;
  border-collapse: collapse;
}

.treasure-price-table th {
  color: #d4a843;
  padding: 14px 0;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: right;
  font-size: 1.05rem;
}

.treasure-price-table th:last-child {
  text-align: left;
}

.treasure-price-table td {
  padding: 16px 0;
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-align: right;
}

.treasure-price-table td:last-child {
  text-align: left;
  color: #d4a843;
  font-family: 'Alexandria', sans-serif;
  direction: ltr;
}

.treasure-price-table tr:last-child td {
  border-bottom: none;
}

.treasure-price-table tr:hover td {
  background: transparent;
}

/* Related Grid */
.treasure-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.treasure-related-card {
  background: url('../كنوز/sea-of-thieves-treasure-card-background.png') center/100% 100% no-repeat !important;
  border: none !important;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  transition: all 0.4s;
  text-decoration: none;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.treasure-related-card:hover {
  transform: translateY(-5px);
  filter: brightness(1.15);
}

.treasure-related-card img {
  height: 65px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s;
}

.treasure-related-card:hover img {
  transform: scale(1.1);
}

.treasure-related-name {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  font-size: .9rem;
}

.treasure-related-en {
  font-size: .75rem;
  color: #d4a843;
  font-style: italic;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .treasure-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .treasure-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 0;
  }

  .treasure-hero-info h1 {
    font-size: 1.9rem;
  }

  .treasure-hero-img-box img {
    max-height: 200px;
  }

  .treasure-hero-meta {
    justify-content: center;
  }

  .treasure-info-cards {
    grid-template-columns: 1fr;
  }

  .treasure-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .treasure-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .treasure-index-hero {
    padding: 140px 0 50px;
  }

  .treasure-index-hero h1 {
    font-size: 1.9rem;
  }

  .treasure-stats-row {
    gap: 0;
  }

  .treasure-grid-card-img {
    height: 120px;
  }

  .treasure-grid-card-img img {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .treasure-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .treasure-grid-card-body {
    padding: 12px 10px 14px;
  }

  .treasure-card-title {
    font-size: .8rem;
  }

  .treasure-grid-card-img {
    height: 100px;
  }

  .treasure-grid-card-img img {
    height: 70px;
  }

  .treasure-index-hero h1 {
    font-size: 1.5rem;
  }
}
