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

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

body:not(.fish-index-page) {
  background:
    linear-gradient(180deg, rgba(6, 28, 38, 0.25) 0%, rgba(3, 19, 26, 0.55) 100%),
    url('../اسماك/sea-of-thieves-fish-information-background.png') center top/cover fixed no-repeat !important;
}

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

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

.fish-index-hero h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 6px;
  position: relative;
  text-shadow: 0 0 40px rgba(178, 255, 255, 0.15);
}

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

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

/* ── Stats Row ── */
.fish-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;
}

.fish-stat {
  flex: 1;
  text-align: center;
  padding: 30px 16px;
  border-left: 1px solid rgba(0, 0, 0, 0.3);
  /* Dark subtle border to match wood */
}

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

.fish-stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(178, 255, 255, 0.2);
}

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

/* ── Family Section ── */
.fish-family-sec {
  padding: 60px 0;
  position: relative;
}

.fish-family-sec:nth-child(odd) {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(212, 168, 67, 0.02) 0%, transparent 50%);
}

.fish-family-title {
  font-size: 1.4rem;
  color: #d4a843;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(212, 168, 67, 0.15);
}

.fish-family-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.2), transparent);
}

.fish-family-title img {
  height: 48px;
  border-radius: 12px;
  border: 2px solid rgba(212, 168, 67, 0.2);
  padding: 4px;
  background: rgba(212, 168, 67, 0.06);
}

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

.fish-grid-card {
  position: relative;
  background: url('../اسماك/sea-of-thieves-fish-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;
}

.fish-grid-card::before {
  display: none;
}

.fish-grid-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(178, 255, 255, 0.2);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(178, 255, 255, 0.06);
}

/* Card Image Area */
.fish-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;
}

.fish-grid-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(3, 19, 26, 0.6));
  pointer-events: none;
}

.fish-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;
}

.fish-grid-card:hover .fish-grid-card-img img {
  transform: scale(1.15) translateY(-4px);
  filter: drop-shadow(0 12px 30px rgba(178, 255, 255, 0.15));
}

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

.fish-grid-ar {
  font-weight: 700;
  color: var(--white);
  font-size: .95rem;
  line-height: 1.4;
}

.fish-grid-en {
  font-size: .75rem;
  color: #d4a843;
  font-style: italic;
  margin-bottom: 6px;
}

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

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

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

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

@keyframes rareGlow {

  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);
  }
}

/* ═══ FISH DETAIL PAGE ═══ */

/* Hero Banner */
.fish-hero-banner {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid rgba(178, 255, 255, 0.05);
}

.fish-hero-overlay-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 19, 26, 0.97) 0%, rgba(3, 19, 26, 0.7) 45%, rgba(3, 19, 26, 0.3) 100%),
    linear-gradient(180deg, rgba(3, 19, 26, 0.2) 0%, transparent 40%, rgba(3, 19, 26, 1) 100%);
}

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

.fish-hero-info h1 {
  font-size: 2.6rem;
  color: var(--white);
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(178, 255, 255, 0.15);
  line-height: 1.3;
}

.fish-en-name {
  font-size: 1.15rem;
  color: #d4a843;
  margin-bottom: 20px;
  font-style: italic;
  font-family: 'Pirata One', system-ui;
  font-size: 1.3rem;
}

.fish-breadcrumb {
  font-size: .85rem;
  color: var(--gray);
  margin-bottom: 20px;
}

.fish-breadcrumb a {
  color: var(--green);
}

.fish-breadcrumb a:hover {
  color: #fff;
}

.fish-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fish-family-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;
}

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

.fish-hero-img-box {
  text-align: center;
  position: relative;
  background: url('../اسماك/sea-of-thieves-fishing-guide-background.png') center/cover no-repeat;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(178, 255, 255, 0.1);
}

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

.fish-hero-img-box img {
  max-height: 340px;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
  position: relative;
  z-index: 1;
  transition: transform 0.5s;
}

.fish-hero-img-box img:hover {
  transform: scale(1.05);
}

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

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

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

.fish-sec-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(178, 255, 255, 0.1);
  position: relative;
}

.fish-sec-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 80px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

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

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

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

.fish-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);
}

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

.fish-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);
}

.fish-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);
}

/* Bait Box */
.fish-bait-box {
  background: linear-gradient(160deg, rgba(212, 168, 67, 0.06), rgba(6, 28, 38, 0.6));
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 16px;
  padding: 28px;
  max-width: 500px;
  position: relative;
  overflow: hidden;
}

.fish-bait-name {
  font-size: 1.3rem;
  color: #d4a843;
  font-weight: 700;
  margin-bottom: 10px;
}

.fish-bait-box p {
  color: var(--gray);
}

/* Price Table */
.fish-price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(178, 255, 255, 0.08);
}

.fish-price-table th {
  background: rgba(178, 255, 255, 0.03);
  color: #d4a843;
  padding: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(178, 255, 255, 0.08);
}

.fish-price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(178, 255, 255, 0.03);
  color: var(--white);
  font-weight: 700;
}

.fish-price-table td.price-val {
  color: #d4a843;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: 'Alexandria', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.fish-price-table tr:hover td {
  background: rgba(178, 255, 255, 0.04);
}

/* Steps */
.fish-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.fish-steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 24px 18px 16px;
  padding-right: 58px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(178, 255, 255, 0.03), transparent);
  border: 1px solid rgba(178, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--light);
  line-height: 1.7;
  transition: all 0.3s;
}

.fish-steps li:hover {
  border-color: rgba(178, 255, 255, 0.15);
  background: linear-gradient(90deg, rgba(178, 255, 255, 0.05), transparent);
}

.fish-steps li::before {
  content: counter(step);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.2), rgba(212, 168, 67, 0.05));
  border: 1px solid rgba(212, 168, 67, 0.4);
  color: #d4a843;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

/* Tips */
.fish-tips {
  display: grid;
  gap: 10px;
}

.fish-tip {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.04), transparent);
  border-right: 3px solid #d4a843;
  border-radius: 0 12px 12px 0;
  color: var(--light);
  transition: all 0.3s;
}

.fish-tip:hover {
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.08), transparent);
  padding-right: 26px;
}

/* FAQ */
.fish-faq {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0 auto 24px;
  max-width: 850px;
  overflow: visible;
}

.fish-faq-q {
  background: url('../images/faq-sea-of-thieves-arab-community-3rb.png') center/100% 100% no-repeat;
  padding: 10px 80px;
  cursor: pointer;
  font-weight: 700;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  min-height: 80px;
  transition: filter 0.3s;
}

.fish-faq-q:hover {
  filter: brightness(1.1);
}

.fish-faq-q::after {
  content: '+';
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  flex-shrink: 0;
  margin-right: auto;
  margin-left: 0;
  background: transparent;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fish-faq.open .fish-faq-q::after {
  content: '-';
}

.fish-faq-a {
  background: url('../images/faq-sea-of-thieves-arab-community1-3rb.png') center/100% 100% no-repeat;
  padding: 0 90px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--white);
  line-height: 2.1;
  font-size: 1.05rem;
  margin-top: -15px;
  position: relative;
  z-index: -1;
}

.fish-faq.open .fish-faq-a {
  padding: 40px 90px 25px;
  max-height: 600px;
}

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

.fish-related-card {
  background: url('../اسماك/sea-of-thieves-fish-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;
}

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

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

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

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

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

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

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

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

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

  .fish-badges {
    justify-content: center;
  }

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

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

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

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

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

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

  .fish-breadcrumb {
    font-size: .75rem;
  }

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

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

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

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

  .fish-grid-ar {
    font-size: .85rem;
  }

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

/* Header Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: rgba(6, 28, 38, 0.98);
  border: 1px solid rgba(178, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 160px;
  z-index: 1000;
  list-style: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);

  /* Smooth animation setup */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block !important;
  /* Override any main theme display:none to rely on opacity */
}

.has-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  display: block !important;
  margin: 0 !important;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px !important;
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem !important;
  transition: background 0.3s, color 0.3s;
  background: transparent !important;
  border-radius: 0 !important;
}

.dropdown-menu li a:hover {
  background: rgba(178, 255, 255, 0.1) !important;
  color: var(--green) !important;
}

/* Wooden Button Effect */
.wooden-btn {
  background: url('../images/sea-of-thieves-wooden-panel.png') center/cover no-repeat !important;
  color: #fceea7 !important;
  border-radius: 6px !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6), 0 3px 6px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(0, 0, 0, 0.6) !important;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 4px #000 !important;
  transition: all 0.2s ease-in-out !important;
}

.wooden-btn:hover {
  filter: brightness(1.2) contrast(1.1);
  transform: translateY(-2px);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6), 0 5px 10px rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    display: none !important;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 10px;
    padding-right: 15px;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .has-dropdown.active .dropdown-menu {
    display: block !important;
  }
}