/* Base Layout */
body {
  margin: 0;
  padding: 2rem;
  color: #ffffff;
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 1;
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/background.jpg') no-repeat center center;
  background-size: cover;
  z-index: -1;
  pointer-events: none;
}

/* Topbar and Navigation */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 6rem;
}

.network-title {
  font-size: 1.5rem;
  color: #00ffd5;
  text-shadow: 0 0 4px #00ffd5, 0 0 8px #00ffd5, 0 0 12px #000000cc;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin: 0;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-buttons a {
  background-color: #00ffd5;
  color: #121212;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.nav-buttons a:hover:not(.disabled) {
  background-color: #00d9bb;
}

.nav-buttons a.disabled {
  background-color: #444;
  color: #ccc;
  cursor: default;
  pointer-events: none;
}

/* General Section Style */
.section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: #00ffd5;
  text-shadow: 0 0 8px #00ffd5aa;
  text-align: center;
}

/* Announcement Section */
.announcement {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.announcement .left {
  text-align: left;
}

.announcement .left h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0;
}

.announcement .left p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-top: 1rem;
}

.announcement .right h3 {
  color: #00ffd5;
  margin-bottom: 0.5rem;
}

.highlight {
  color: #00ffd5;
  text-shadow: 0 0 6px #00ffd588;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 10px #00000088;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Feature Videos Section */
.featured-videos {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.featured-videos .left,
.featured-videos .right {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-label {
  color: #00ffd5;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 6px #00ffd5aa;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 10px #00000088;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .featured-videos {
    grid-template-columns: 1fr;
  }

  .video-wrapper {
    margin-bottom: 2rem;
  }
}


/* Rewards Section */
.rewards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  color: #ffffff;
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.reward {
  text-align: left;
}

.reward-icon {
  height: 48px;
  margin-bottom: 1rem;
}

.reward h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #ffffff;
}

.reward-share {
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #00ffd5;
}


/* Roadmap Section */
.roadmap-block a {
  color: #00ffd5;
  text-decoration: underline;
}

.roadmap-block a:hover {
  color: #ff00c8;
  text-shadow: 0 0 6px #ff00c880;
}

.roadmap-timeline-dot {
  width: 12px;
  height: 12px;
  background: #00ffd5;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ffd5aa;
  position: absolute;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  color: #ffffff;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid #00ffd533;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-buttons {
    justify-content: flex-start;
  }

  .announcement {
    grid-template-columns: 1fr;
  }

  .announcement .left,
  .announcement .right {
    text-align: center;
  }

  .announcement iframe {
    height: 250px;
  }
}

/* Transparency Page */
.developer-wallet {
  margin: 4rem auto;
  padding: 3rem 2rem;
  max-width: 1000px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  text-align: center;
}

.developer-wallet h2 {
  color: #00ffd5;
  text-shadow: 0 0 8px #00ffd5aa;
}

#wallet-balance.error {
  color: #ff6666;
  font-weight: bold;
}

.wallet-heading {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-align: center;
}

.wallet-heading h2 {
  margin: 0;
}

.wallet-heading p {
  margin: 0;
  font-weight: 500;
}

/* Yearly Expenses Block */
.yearly-expenses {
  padding: 2rem;
  text-align: center;
}

.expenses-quarter {
  margin-top: 2rem;
}

.glow-card {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 255, 213, 0.3);
  backdrop-filter: blur(12px);
  overflow: hidden;
  padding: 1rem;
}

.expense-table {
  width: 100%;
  border-collapse: collapse;
}

.expense-table th,
.expense-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.expense-table th {
  background-color: rgba(0, 255, 213, 0.15);
  color: #00ffd5;
  font-weight: bold;
}

.expense-table td {
  color: #fff;
}

/* Color-coded source cells matching legend */
.expense-table td.source-dev {
  color: #ff5c5c;
  font-weight: bold;
}

.expense-table td.source-niko {
  color: #66ff66;
  font-weight: bold;
}

/* Legend styling */
.expense-legend {
  margin-top: 1rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.legend-box {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  vertical-align: middle;
  border-radius: 3px;
}

.legend-box.source-dev {
  background-color: #ff5c5c;
}

.legend-box.source-niko {
  background-color: #66ff66;
}

/* Glow for Yearly Expenses section heading */
.yearly-expenses h2 {
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 255, 213, 0.8);
  margin-bottom: 0.5rem;
}

/* Glow for quarter subheadings */
.expenses-quarter h3 {
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 255, 213, 0.6);
  margin-bottom: 1rem;
}

/* Enforce column alignment for clarity */
.expense-table th:nth-child(1),
.expense-table td:nth-child(1) {
  text-align: center;
}

.expense-table th:nth-child(2),
.expense-table td:nth-child(2) {
  text-align: center;
}

.expense-table th:nth-child(3),
.expense-table td:nth-child(3) {
  text-align: center;
}

.expense-link-button {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.25rem 0.6rem;
  background-color: rgba(0, 255, 213, 0.1);
  border: 1px solid #00ffd5;
  color: #00ffd5;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.expense-link-button:hover {
  background-color: rgba(0, 255, 213, 0.25);
}


/* Promotions Page Styling */
.promotions {
  padding: 2rem;
  text-align: center;
}

.promotions .glow-card {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 255, 213, 0.4);
  color: #ffffff;
  text-align: left;
}

.promotions h2 {
  font-size: 2rem;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 255, 213, 0.8);
  margin-bottom: 1.5rem;
}

.promotions h3 {
  color: #00ffd5;
  margin-bottom: 0.5rem;
}

.promotions p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Video Oarchive */
.video-section {
  margin: 2rem auto;
  max-width: 900px;
  padding: 1rem;
  text-align: center;
}

.video-section h3 {
  color: #00ffd5;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 6px #00ffd5aa;
}

.video-block {
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.video-thumb {
  width: 120px;
  border-radius: 8px;
}

.video-text {
  text-align: left;
}

.video-text strong {
  color: #00ffd5;
}

.video-text p {
  margin: 0.25rem 0;
}

.video-header {
  margin: 4rem auto 2rem;
  padding: 2rem;
  max-width: 1000px;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.video-header h2 {
  font-size: 1.75rem;
  color: #00ffd5;
  text-shadow: 0 0 8px #00ffd5aa;
}

.video-header p {
  margin-top: 1rem;
  color: #ccc;
}
