/* ===== BASE & GLOBAL STYLES ===== */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: #fff;
  background-color: #1a002e;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
a {
  color: #00E0FF;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
header {
  background-color: #170723;
  padding: 1rem 0;
  border-bottom: 2px solid #B200FF;
  position: relative;
  z-index: 100;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 40px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}


/* ===== MENU STYLES ===== */
.menu-wrap {
  display: flex;
  align-items: left;
  gap: 2rem;
}
.main-nav {
  display: flex;
  gap: 1rem;
}
.main-nav a {
  margin: 0 1rem;
  font-weight: 500;
  color: #00E0FF;
  position: relative;
  padding: 0.5rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF00E6;
  transition: width 0.3s ease;
}
.main-nav a:hover::after {
  width: 100%;
}
.btn {
  background: linear-gradient(to right, #B200FF, #FF00E6);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(178, 0, 255, 0.4);
}


/* ===== HERO (fallback) ===== */
section.hero {
  text-align: center;
  padding: 4rem 0;
}
section.hero h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, #FFD700, #FFA500, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 1rem 0;
  text-shadow:
    0 0 10px rgba(255, 215, 0, 0.3),
    0 0 20px rgba(255, 165, 0, 0.2);
}
@media (max-width: 768px) {
  section.hero h1 {
    font-size: 2.5rem;
  }
}

/* Flexbox fallbacks */
.utility-grid {
  display: -webkit-box;      /* Old Safari/iOS */
  display: -moz-box;         /* Old Firefox */
  display: -ms-flexbox;      /* IE10 */
  display: -webkit-flex;     /* Chrome <21, Safari 6.1+ */
  display: flex;
}

/* Grid fallbacks */
.adverts-grid {
  display: -ms-grid;         /* IE10+ */
  display: grid;
}

/* ===== HERO SLIDER (full-width break-out) ===== */
.hero-slider {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  overflow: hidden;
  background: #1a002e;
}
.hero-slider .swiper-container {
  width: 100%;
  height: auto;
}
.hero-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.hero-slider .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.hero-slider .slide-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.25rem;
  background: rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

/* navigation arrows */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: #00E0FF;
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: -1.25rem;
  opacity: 0.8;
}
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  opacity: 1;
}

/* pagination dots */
.hero-slider .swiper-pagination {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.hero-slider .swiper-pagination-bullet {
  background: #00E0FF;
  opacity: 0.6;
}
.hero-slider .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ===== ADVERTS ===== */
.adverts {
  margin: 2rem 0;
}
.adverts-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) {
  .adverts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .adverts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ad-slot {
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.ad-slot:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(178, 0, 255, 0.3);
}
.ad-slot img,
.ad-slot video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}

/* ===== UTILITIES SECTION ===== */
section.utilities {
  background-color: #1A002E;
  padding: 4rem 0;
}

section.utilities h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #FFD700, #f5f2ed, #AA00FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(170, 0, 255, 0.3);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.utility-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #B200FF;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.utility-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(178, 0, 255, 0.3);
  background: rgba(178, 0, 255, 0.1);
}

.utility-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0
}

.utility-item h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
  color: #00E0FF;
}

.utility-item p {
  flex: 1;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Make the entire utility-item clickable */
.utility-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* ===== CONTENT ===== */
section.content {
  padding: 2rem 0;
}
section.content h3 {
  margin-bottom: 1rem;
}

/* ===== GALLERIES ===== */
.gallery.images,
.gallery.videos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.gallery.images img,
.gallery.videos video {
  flex: 1 1 300px;
  min-width: 200px;
  border-radius: 4px;
}

/* ===== page.php (public) styles ===== */
.page-content-container, main.container {
  max-width: 800px;
  margin: 2rem auto;
  color: #fff;
  padding: 0 1rem;
}

.page-content-container h1,
main.container h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.page-content-container img,
main.container img {
  display: block;
  max-width: 100%;
  margin: 1rem 0;
  border-radius: 4px;
}

.page-content, .rich-content {
  line-height: 1.7;
  margin-bottom: 2rem;
}

.page-content h2,
.rich-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #FFD700;
}

.page-content h3,
.rich-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-content p,
.rich-content p {
  margin-bottom: 1rem;
}

.page-content a,
.rich-content a {
  color: #00E0FF;
  text-decoration: underline;
}

.page-content ul,
.page-content ol,
.rich-content ul,
.rich-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

.page-content blockquote,
.rich-content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #6a1b9a;
  background: rgba(255,255,255,0.05);
}

.page-content table,
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.page-content th,
.page-content td,
.rich-content th,
.rich-content td {
  padding: 0.5rem;
  border: 1px solid #444;
  text-align: left;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .page-content-container, main.container {
    padding: 0 0.5rem;
  }
  .page-content-container h1,
  main.container h1 {
    font-size: 2rem;
  margin-bottom: 1rem;
  }
  .utility-grid {
    grid-template-columns: 1fr;
  }
  .utility-item {
    padding: 1rem;
  }
  .utility-item img {
    height: 180px;
  }
}

/* ===== PAGES ===== */
.page-container {
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
}
.page-title {
  margin-bottom: 1rem;
}
.page-thumbnail {
  max-width: 100%;
  margin: 1rem 0;
  border-radius: 4px;
}
.page-content {
  line-height: 1.6;
}

/* ===== DIRECTORY ===== */
section.directory ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
section.directory li a {
  display: block;
  background-color: #2e004e;
  padding: 0.75rem;
  border-radius: 4px;
  text-align: center;
  flex: 1 1 150px;
}

/* ===== FOOTER ===== */
footer {
  background-color: #1A002E;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #B200FF;
}
footer a {
  margin: 0 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
footer a:hover {
  color: #00E0FF;
  text-decoration: none;
}

/* Profile Page */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 80px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.avatar-container {
    position: absolute;
    bottom: -50px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h1 {
    position: absolute;
    bottom: -70px;
    left: 140px;
    margin: 0;
    color: #333;
    font-size: 24px;
}

.edit-profile-btn, .follow-btn {
    position: absolute;
    right: 20px;
    bottom: -60px;
    padding: 8px 16px;
    background: #4a6fa5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.profile-info {
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Timeline */
.timeline-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.create-post {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.create-post textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 10px;
}

.post-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.post-header span {
    flex-grow: 1;
}

.post-time {
    color: #777;
    font-size: 0.9em;
}

.post-content {
    margin-bottom: 15px;
}

.post-media {
    margin-top: 15px;
}

.post-media img, .post-media video {
    max-width: 100%;
    border-radius: 4px;
}

.post-actions {
    display: flex;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.post-actions button {
    background: none;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    color: #555;
}

.post-actions button:hover {
    color: #4a6fa5;
}

.post-actions button.liked {
    color: #ff4d4d;
}

.post-comments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Gallery Styles */
.gallery-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.gallery-filter {
  margin: 2rem 0;
  text-align: center;
}

.gallery-filter select {
  padding: 0.5rem;
  border-radius: 4px;
  background: #2e004e;
  color: white;
  border: 1px solid #B200FF;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1/1;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(178, 0, 255, 0.3);
}

.gallery-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.nft-purchase-btn {
  display: inline-block;
  background: linear-gradient(135deg, #B200FF, #FF00E6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nft-purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(178, 0, 255, 0.4);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
}

.lightbox-media-container {
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image,
.lightbox-video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-info {
  background: #1a002e;
  padding: 1rem;
  text-align: center;
  border-radius: 0 0 8px 8px;
}

.lightbox-caption {
  color: white;
  margin-bottom: 1rem;
}

.lightbox-purchase-btn {
  display: inline-block;
  background: linear-gradient(135deg, #B200FF, #FF00E6);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lightbox-purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(178, 0, 255, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(178, 0, 255, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(178, 0, 255, 0.8);
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

.no-images {
  text-align: center;
  padding: 2rem;
  color: white;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #00E0FF;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.burn-widget-wrapper {
  background: radial-gradient(circle at top left, #2e004e, #1a002e);
  border: 2px solid #B200FF;
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 0, 230, 0.2);
  transition: all 0.3s ease;
}

.burn-widget-wrapper:hover {
  box-shadow: 0 0 25px rgba(255, 0, 230, 0.4);
}

.burn-widget h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #FFD700, #FF00E6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.burn-widget p {
  font-size: 2.5rem;
  font-weight: bold;
  color: #FFD700;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.contract-search-box {
  margin: 3rem auto;
  background: linear-gradient(135deg, #1a002e, #2e004e);
  border: 2px solid #B200FF;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(255, 0, 230, 0.15);
  text-align: center;
  transition: all 0.3s ease;
}

.contract-search-box:hover {
  box-shadow: 0 0 25px rgba(255, 0, 230, 0.3);
}

.contract-search-widget h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #00E0FF, #FF00E6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.contract-search-widget form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contract-search-widget input[type="text"] {
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  border: 1px solid #B200FF;
  background: #2e004e;
  color: #fff;
  font-size: 1rem;
}

.contract-search-widget button {
  background: linear-gradient(to right, #B200FF, #FF00E6);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contract-search-widget button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(178, 0, 255, 0.4);
}

.blockchain-metrics-header h2 {
  text-align: center;
  font-size: 2.2rem;
  margin: 3rem auto 2rem;
  background: linear-gradient(90deg, #FFD700, #FF00E6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Burn widget container tweaks */
.burn-widget-wrapper {
  background: #240045;
  border: 2px solid #B200FF;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 0, 230, 0.2);
  max-width: 700px;
}

.burn-widget h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #FF66CC;
}

.burn-widget p {
  font-size: 2.2rem;
  font-weight: bold;
  color: #FFD700;
}

/* Contract search tweaks */
.contract-search-box {
  background: #240045;
  border: 2px solid #B200FF;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto 4rem;
  text-align: center;
  max-width: 700px;
  box-shadow: 0 0 12px rgba(255, 0, 230, 0.2);
}

.contract-search-widget h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #66CCFF;
}

.contract-search-widget input[type="text"] {
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  border: 1px solid #B200FF;
  background: #2e004e;
  color: white;
  font-size: 1rem;
}

.contract-search-widget button {
  margin-top: 1rem;
  background: linear-gradient(to right, #B200FF, #FF00E6);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contract-search-widget button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(178, 0, 255, 0.4);
}

/* ===== BILLBOARD ADS ===== */
.billboard-ad-card {
  /* span the full grid width at large screens */
  grid-column: 1 / -1;
  /* give it some breathing room */
  margin: 1rem 0;
}

@media (max-width: 900px) {
  .billboard-ad-card {
    /* span all 4 columns on medium screens */
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .billboard-ad-card {
    /* span both columns on small screens */
    grid-column: 1 / -1;
  }
}

.billboard-wrapper {
  /* enforce a nice "billboard" aspect ratio */
  position: relative;
  width: 100%;
  padding-top: 30%; /* ~3:1 ratio; adjust to taste */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.billboard-wrapper img,
.billboard-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-pagination {
  text-align: center;
  margin: 20px 0;
}
.gallery-pagination a {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  border: 1px solid #888;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.gallery-pagination a.active {
  background-color: #04E0FF;
  border-color: teal;
}
