/**
 * Content Section Styles
 * Reusable content section with background image, flexible layout
 */

/* Main Container */
.section-content {
  position: relative;
  width: 100%;
  min-height: auto;
  padding: 0;
  overflow: hidden;
}

/* Background Image Layer */
.section-content__container {
  position: relative;
  width: 100%;
}

.section-content__background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  background-position: var(--bg-position, center bottom);
  background-repeat: no-repeat;
  background-size: 100%;
  background-attachment: scroll;
  pointer-events: none;
}

/* Content Wrapper */
.section-content__wrapper {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 40px 0;
}

/* Box Styling (uses existing .sectionBox classes for consistency) */
.section-content__box {
  padding: 40px;
  border-radius: 8px;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(77, 208, 225, 0.2);
  /* Decorative pseudo-elements from base15.css */
  position: relative;
}

.section-content__box::after,
.section-content__box::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(77, 208, 225, 0.3);
}

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

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

/* Typography */
.section-content__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-primary, #4dd0e1);
  letter-spacing: 0.02em;
}

.section-content__subtitle {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--color-text-light, #b0bec5);
}

/* Content Body */
.section-content__body {
  color: var(--color-text, #e0e0e0);
  line-height: 1.6;
  font-size: 1rem;
}

.section-content__body p {
  margin-bottom: 15px;
}

.section-content__body h2,
.section-content__body h3,
.section-content__body h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--color-primary, #4dd0e1);
}

.section-content__body a {
  color: var(--color-primary, #4dd0e1);
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-content__body a:hover {
  color: var(--color-primary-light, #80deea);
  text-decoration: underline;
}

/* Sections inside content (NFTs grid, collections, etc.) */
.section-content__body .nfts-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.section-content__body .row {
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .section-content {
    padding: 0;
  }

  .section-content__wrapper {
    padding: 20px 0;
  }

  .section-content__box {
    padding: 20px;
  }

  .section-content__title {
    font-size: 1.5rem;
  }

  .section-content__body {
    font-size: 0.95rem;
  }
}

/* Dark Theme (default) */
.section-content.theme-dark {
  background: #0f0f1e;
}

.section-content.theme-dark .section-content__box {
  background: rgba(26, 26, 46, 0.85);
  border-color: rgba(77, 208, 225, 0.2);
}

.section-content.theme-dark .section-content__box::before,
.section-content.theme-dark .section-content__box::after {
  border-color: rgba(77, 208, 225, 0.3);
}

/* Light Theme */
.section-content.theme-light {
  background: #f5f5f5;
}

.section-content.theme-light .section-content__box {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(77, 208, 225, 0.5);
}

.section-content.theme-light .section-content__box::before,
.section-content.theme-light .section-content__box::after {
  border-color: rgba(77, 208, 225, 0.4);
}

.section-content.theme-light .section-content__title {
  color: #1976d2;
}

.section-content.theme-light .section-content__subtitle,
.section-content.theme-light .section-content__body {
  color: #424242;
}

.section-content.theme-light .section-content__body a {
  color: #1976d2;
}

.section-content.theme-light .section-content__body a:hover {
  color: #1565c0;
}
