/**
 * NFT Featuring Section Component
 * Showcases a single featured NFT with details, metadata, and actions
 * BEM naming convention: nft_featuring__* and nft_featuring--*
 */

.nft_featuring {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

/* Background layer (parallax) */
.nft_featuring__background {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-attachment: scroll;
}

/* ============================================================
 * CONTENT LAYER (z-index: 1000)
 * ============================================================ */

.nft_featuring__container {
  position: relative;
  width: 100%;
}

.nft_featuring__wrapper {
  position: relative;
  width: 100%;
  padding: 40px 0;
}

/* ============================================================
 * HEADER WITH NAVIGATION ARROWS
 * ============================================================ */

.nft_featuring__header {
  text-align: center;
  margin-bottom: 20px;
}

.nft_featuring__arrow {
  color: var(--color-link);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.nft_featuring__arrow:hover {
  color: var(--color-link-accent);
  transform: translateY(-5px);
}

/* ============================================================
 * BOX (main content container)
 * ============================================================ */

.nft_featuring__box {
  padding: 40px;
  border-radius: 8px;
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.nft_featuring__box::after,
.nft_featuring__box::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-border-hover);
}

.nft_featuring__box::before {
  top: 0;
  left: 0;
  border-bottom: none;
  border-right: none;
  border-radius: 8px 0 0 0;
}

.nft_featuring__box::after {
  bottom: 0;
  right: 0;
  border-top: none;
  border-left: none;
  border-radius: 0 0 8px 0;
}

/* ============================================================
 * TYPOGRAPHY
 * ============================================================ */

.nft_featuring__title {
  /* Uses centralized .section_title1 from pages.css */
}

.nft_featuring__subtitle {
  /* Uses centralized .section_title2 from pages.css */
}

.nft_featuring__description {
  /* Uses centralized .section_color_description from pages.css */
  margin-bottom: 20px;
}

.nft_featuring__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}


/* Main NFT Card */
.nft_featuring__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 16px);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg, 60px);
  padding: var(--space-lg, 60px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.nft_featuring__card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

/* Image Section */
.nft_featuring__image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.nft_featuring__image-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nft_featuring__image {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.nft_featuring__image-container:hover .nft_featuring__image {
  transform: scale(1.05);
}

/* Badges */
.nft_featuring__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-xs, 10px);
  padding: var(--space-xs, 10px) var(--space-sm, 16px);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary, #fff);
}

.nft_featuring__badge-owned {
  top: var(--space-sm, 16px);
  right: var(--space-sm, 16px);
  background: rgba(76, 175, 80, 0.8);
  border-color: rgba(76, 175, 80, 0.5);
}

.nft_featuring__badge-owned i {
  color: #4caf50;
}

.nft_featuring__badge-owners {
  bottom: var(--space-sm, 16px);
  left: var(--space-sm, 16px);
  background: rgba(33, 150, 243, 0.8);
  border-color: rgba(33, 150, 243, 0.5);
}

.nft_featuring__badge-owners i {
  color: #2196f3;
}

/* Details Section */
.nft_featuring__details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-md, 24px);
}

/* Header Info */
.nft_featuring__header-info {
  margin-bottom: var(--space-sm, 16px);
}

.nft_featuring__nft-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-text-primary, #fff);
  margin: 0 0 var(--space-xs, 10px) 0;
  font-weight: 700;
  word-break: break-word;
}

.nft_featuring__collection {
  color: var(--color-text-secondary, #aaa);
  margin: 0;
  font-size: 0.95rem;
}

.nft_featuring__collection strong {
  color: var(--color-text-primary, #fff);
}

/* Description */
.nft_featuring__description p {
  color: var(--color-text-secondary, #ccc);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Metadata Grid */
.nft_featuring__metadata {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md, 24px);
  padding: var(--space-md, 24px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nft_featuring__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 10px);
}

.nft_featuring__meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-tertiary, #888);
  font-weight: 600;
}

.nft_featuring__meta-value {
  font-size: 1rem;
  color: var(--color-text-primary, #fff);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs, 10px);
}

.nft_featuring__meta-value i {
  color: var(--color-accent, #ffd700);
}

.nft_featuring__meta-value code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

.nft_featuring__contract code {
  max-width: 100%;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Buttons */
.nft_featuring__actions {
  display: flex;
  gap: var(--space-sm, 16px);
  flex-wrap: wrap;
  margin-top: var(--space-md, 24px);
}

.nft_featuring__btn {
  flex: 1;
  min-width: 140px;
  padding: var(--space-sm, 16px) var(--space-md, 24px);
  border-radius: var(--radius-sm, 8px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs, 10px);
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.nft_featuring__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Error State */
.nft_featuring__error {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.5);
  border-radius: var(--radius-md, 12px);
  padding: var(--space-md, 24px);
  color: #ffc107;
  margin-top: var(--space-md, 24px);
}

.nft_featuring__error p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.nft_featuring__error code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* ============================================================
 * MOBILE DROPDOWNS (for description & metadata)
 * ============================================================ */

.nft_featuring__dropdown-wrapper {
  display: none;
  flex-direction: column;
  gap: var(--space-sm, 16px);
}

.nft_featuring__dropdown-btn {
  display: none;
  width: 100%;
  padding: var(--space-sm, 16px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm, 8px);
  color: var(--color-text-primary, #fff);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nft_featuring__dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.nft_featuring__dropdown-btn i {
  transition: transform 0.3s ease;
}

.nft_featuring__dropdown-btn.active i {
  transform: rotate(180deg);
}

.nft_featuring__dropdown-content {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.nft_featuring__dropdown-content.active {
  display: block;
  max-height: 1000px;
  opacity: 1;
}

.nft_featuring__dropdown-content-inner {
  padding: var(--space-sm, 16px) 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nft_featuring__card {
    grid-template-columns: 1fr;
    gap: var(--space-md, 24px);
  }

  .nft_featuring__details {
    order: 2;
  }

  .nft_featuring__image-wrapper {
    order: 1;
  }

}

@media (max-width: 768px) {
  .nft_featuring {
    min-height: auto;
  }

  .nft_featuring__header {
    margin-bottom: var(--space-md, 24px);
  }

  .nft_featuring__title {
    text-align: center;
    font-size: 1.5rem;
  }

  .nft_featuring__card {
    padding: var(--space-sm, 16px);
    gap: var(--space-md, 24px);
  }

  .nft_featuring__nft-title {
    text-align: center;
    font-size: 1.2rem;
  }

  /* Hide full description/metadata on mobile, show dropdowns instead */
  .nft_featuring__description {
    display: none;
  }

  .nft_featuring__metadata {
    display: none;
  }

  /* Show dropdown wrappers on mobile */
  .nft_featuring__dropdown-wrapper {
    display: flex;
  }

  .nft_featuring__dropdown-btn {
    display: flex;
  }

  .nft_featuring__actions {
    flex-direction: column;
  }

  .nft_featuring__btn {
    width: 100%;
    min-width: unset;
  }

}

@media (max-width: 480px) {
  .nft_featuring__title {
    text-align: center;
    font-size: 1.3rem;
  }

  .nft_featuring__nft-title {
    font-size: 1rem;
    text-align: center;
  }

  .nft_featuring__card {
    gap: var(--space-sm, 16px);
    padding: var(--space-xs, 10px);
  }

  .nft_featuring__badge {
    padding: var(--space-xs, 10px) var(--space-xs, 10px);
    font-size: 0.8rem;
  }

  .nft_featuring__meta-label {
    font-size: 0.75rem;
  }

  .nft_featuring__meta-value {
    font-size: 0.9rem;
  }
}

/* Theme variants */
.nft_featuring.theme-light {
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #666;
  --color-text-tertiary: #999;
  --color-accent: #ffc107;
}

.nft_featuring.theme-dark {
  --color-text-primary: #ffffff;
  --color-text-secondary: #aaa;
  --color-text-tertiary: #888;
  --color-accent: #ffd700;
}
