/* Font Import */
@font-face {
  font-family: "TeX Gyre Adventor";
  src: url("texgyreadventor-regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HTML and Body Styles */
html,
body {
  width: 100%;
  height: 100%;
  background-color: white;
  font-family: "TeX Gyre Adventor", sans-serif;
}

/* Main Layout Container */
.parent {
  width: 100vw;
  height: 100vh;
  display: flex;
  padding: 20px;
}

.ad-tab {
  width: 50%;
  height: 100%;
  background-image: url("https://i.postimg.cc/bNVTc38T/image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Faucet Tab */
.faucet-tab {
  width: 50%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-radius: 32px;
  padding: 0 32px;
}

/* Faucet Header */
.faucet-header {
  width: 100%;
  padding: 24px 32px;
  border-bottom: 1px solid #ddd;
}

/* Navigation Container */
.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 84px;
}

/* Navigation Links */
.nav-container a,
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 20px;
}

/* Navigation Icon */
.nav-icon {
  width: 44px;
  height: 44px;
  cursor: pointer;
  object-fit: contain;
}

/* Navigation Links Container */
.nav-links {
  display: flex;
  gap: 84px;
}

/* Faucet Main Content */
.faucet-main {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: right;
  justify-content: center;
  flex-grow: 1;
  gap: 24px;
  text-align: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Faucet Title */
.faucet-title {
  font-size: 32px;
  font-weight: 700;
  color: #111;
}

/* Faucet Input */
.faucet-input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #ccc;
  border-radius: 44px;
  font-size: 16px;
  font-family: "TeX Gyre Adventor", sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

/* Faucet Button */
.faucet-btn {
  background-color: #7647ec;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 44px;
  font-size: 16px;
  font-weight: 600;
  font-family: "TeX Gyre Adventor", sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Faucet Button Hover */
.faucet-btn:hover {
  background-color: #5e37c4;
}

/* Faucet Info Box */
.faucet-info-box {
  background-color: #121212;
  color: white;
  padding: 40px 44px;
  border-radius: 16px;
  text-align: left;
}

/* Faucet Info Heading */
.faucet-info-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Faucet Info Text */
.faucet-info-text {
  font-size: 14px;
  font-family: "TeX Gyre Adventor", sans-serif;
  line-height: 1.6;
}

/* Faucet Footer */
.faucet-footer {
  width: 100%;
  align-items: center;
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #ddd;
  gap: 16px;
  position: relative;
}

/* Notification Icon */
.notification-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
  cursor: pointer;
}

/* Profile Icon */
.profile-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

/* Sponsor Button */
.sponsor-btn {
  background-color: #7647ec;
  color: white;
  border: none;
  border-radius: 44px;
  padding: 24px 44px;
  font-size: 16px;
  font-weight: 500;
  font-family: "TeX Gyre Adventor", sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Sponsor Button Hover */
.sponsor-btn:hover {
  background-color: black;
}

/* Cancel Button Hover */
.cancel-btn:hover {
  background-color: rgb(255, 79, 79);
}

/* Ad Header */
.ad-header {
  width: 100%;
  padding: 24px 32px;
  border-bottom: 1px solid #2c2c2c;
}

/* Ad Header Left */
.ad-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Ad Icon */
.ad-icon {
  width: 24px;
  height: 24px;
}

/* Ad Title */
.ad-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  font-family: "TeX Gyre Adventor", sans-serif;
}

/* Ad Footer */
.ad-footer {
  width: 100%;
  padding: 24px 32px;
  border-top: 1px solid #2c2c2c;
  display: flex;
  justify-content: flex-end;
}

/* Ad Brand */
.ad-brand {
  text-align: left;
  color: #eeeeee;
}

/* Brand Name */
.brand-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: "TeX Gyre Adventor", sans-serif;
}

/* Brand Subtext */
.brand-subtext {
  font-size: 14px;
  line-height: 1.4;
  font-family: "TeX Gyre Adventor", sans-serif;
}

/* Locked Address */
.locked-address {
  background-color: #121212;
  color: white;
  padding: 14px 20px;
  border-radius: 44px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  text-align: left;
  font-family: "TeX Gyre Adventor", sans-serif;
}

/* Next Button */
.next-btn {
  background-color: #7647ec;
  border: none;
  border-radius: 50%;
  padding: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  margin-left: 16px;
}

/* Next Button Image */
.next-btn img {
  width: 16px;
  height: 16px;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}

/* Progress Bar Step */
.step {
  width: 40px;
  height: 8px;
  border-radius: 4px;
  background-color: #7647ec;
  opacity: 0.3;
}

/* Active Step */
.step.active {
  opacity: 1;
}

/* Faucet Status */
.faucet-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  color: white;
  background-color: #121212;
}

/* Faucet Status Image */
.faucet-status img {
  width: 36px;
  height: 36px;
}

/* Success Status Icon */
.faucet-status.success img {
  filter: drop-shadow(0 0 2px limegreen);
}

/* Error Status Icon */
.faucet-status.error img {
  filter: drop-shadow(0 0 2px red);
}

/* Profile Dropdown */
.profile-dropdown {
  position: absolute;
  bottom: 72px;
  right: 32px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  width: 280px;
  z-index: 100;
}

/* Profile Card */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Profile Title */
.profile-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

/* UID Input */
.uid-input {
  padding: 10px 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.3s ease;
}

/* Profile Info Box */
.profile-info-box {
  background: #f0e6ff;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
}

/* Login Button */
.login-btn {
  padding: 10px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  font-family: "TeX Gyre Adventor", sans-serif;
  cursor: pointer;
}

/* Contribute Tab */
.contribute-tab {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Contribute Card */
.contribute-card {
  background: #f8f8f8;
  padding: 28px;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Contribute Title */
.contribute-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: #222;
}

/* Contribute Balance */
.contribute-balance {
  font-size: 24px;
  font-weight: 700;
  color: #5c2fc2;
  text-align: center;
}

/* Contribute Address */
.contribute-address {
  font-family: "TeX Gyre Adventor", sans-serif;
  font-size: 14px;
  background: #ececec;
  padding: 12px 16px;
  border-radius: 10px;
  word-break: break-word;
  line-height: 1.6;
  text-align: center;
}

/* Contribute Button */
.contribute-btn {
  background: black;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

/* Contribute Button Hover */
.contribute-btn:hover {
  background: #222;
}

/* Contribute Note */
.contribute-note {
  background: #111;
  color: white;
  padding: 20px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

/* Contribute Note Link */
.contribute-note a {
  color: #ffc93c;
  text-decoration: underline;
}

/* Back Home Button */
.back-home-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-family: "TeX Gyre Adventor", sans-serif;
  color: #444;
  cursor: pointer;
  text-decoration: underline;
  display: block;
  margin: 24px auto 0;
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  bottom: 72px;
  right: 80px;
  background: #7944db;
  color: white;
  padding: 20px;
  border-radius: 14px;
  width: 280px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

/* Notification Card */
.notification-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Notification Title */
.notification-title {
  font-size: 16px;
  font-weight: 600;
}

/* Notification Message */
.notification-message {
  font-size: 14px;
  line-height: 1.4;
}

/* Mark Read Button */
.mark-read-btn {
  width: 100%;
  align-self: flex-start;
  background: black;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: "TeX Gyre Adventor", sans-serif;
  cursor: pointer;
}

/* Hidden Elements */
.faucet-main.hidden,
.contribute-tab.hidden,
.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  position: absolute;
}

/* Contribute Default Button */
.contribute-default {
  background-color: #7647ec;
  color: #fff;
}

/* Contribute Done Green Button */
.contribute-done-green {
  background-color: #7647ec;
  color: white;
}

/* Contribute Done Black Button */
.contribute-done-black {
  background-color: black;
  color: white;
}

/* Contribute Actions */
.contribute-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Done Button */
#done-btn {
  background-color: #7647ec;
  color: white;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

/* Hamburger Menu Lines */
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  /* Body Padding and Overflow Control */
  body {
    padding: 10px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    margin: 0; /* Ensure no default margins cause issues */
  }

  /* Parent Container */
  .parent {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%; /* Ensure it fits the screen width */
    margin: 0 auto; /* Center the container */
    height: auto; /* Remove fixed height to allow content growth */
    gap: 40px; /* Add space between child elements */
    min-height: 100vh; /* Ensure it takes full viewport height */
  }

  /* Faucet Tab */
  .faucet-tab {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%; /* Ensure it fits the screen */
    gap: 40px; /* Add space between internal elements */
    flex-grow: 1; /* Allow it to grow to fill space */
  }

  /* Advertisement Tab */
  .ad-tab {
    display: none;
    width: 100%;
    background-color: #fce4ec;
    padding: 10px;
    margin: 12px 0;
  }

  /* Mobile Advertisement Tab */
  .mobile-ad-tab {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  /* Faucet Header (Static) */
  .faucet-header {
    display: flex;
    align-items: center;
    padding: 10px 44px;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  /* Faucet Footer (Static) */
  .faucet-footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    padding: 12px 24px;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
  }

  /* Adjust main content to account for fixed header and footer */
  .faucet-tab main {
    padding: 40px 10px; /* Add padding for content breathing room */
    min-height: calc(100vh - 240px); /* Adjusted for new margin-top */
    min-width: 100%;
    max-width: 1000px; /* Increased from 800px to allow wider content */
    margin: 0 auto;
  }

  /* Faucet Main Adjustments */
  .faucet-main {
    align-items: center; /* Center align items */
    text-align: center; /* Ensure text is centered */
    min-height: 0; /* Remove min-height conflict */
    flex-grow: 1;
    width: 90%; /* Allow it to take up to 90% of the container width */
    max-width: 1000px; /* Cap at 1000px for large screens */
    margin: 0 auto; /* Keep centered */
  }

  /* Navigation Container */
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 80px;
  }

  /* Hamburger Menu */
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }

  /* Hamburger Menu Lines */
  .hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
  }

  /* Navigation Links */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  /* Active Navigation Links */
  .nav-links.active {
    display: flex;
  }

  /* Hamburger Animation: First Line */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  /* Hamburger Animation: Second Line */
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  /* Hamburger Animation: Third Line */
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}
