/* =====================
   FONT & GLOBAL RESET
   ===================== */
@font-face {
  font-family: "TeX Gyre Adventor";
  src: url("texgyreadventor-regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: white;
  font-family: "TeX Gyre Adventor", sans-serif;
}

/* =====================
   LAYOUT CONTAINERS
   ===================== */
.parent {
  width: 100vw;
  height: 100vh;
  display: flex;
  padding: 20px;
}

/* Left Section – Ad Tab */
.ad-tab {
  width: 50%;
  height: 100%;
  background-color: #1e1e1e;
  border-radius: 32px;
}

/* Right Section – 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;
}

/* =====================
   HEADER / NAVIGATION
   ===================== */
.faucet-header {
  width: 100%;
  padding: 24px 32px;
  border-bottom: 1px solid #ddd;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 84px;
}

.nav-container a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 20px;
}

.nav-icon {
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 84px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 20px;
}

/* =====================
   MAIN CONTENT
   ===================== */
.ads-page-title {
  font-size: 26px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 32px;
  color: #222;
}


.advertise-form {
  flex: 1 1 300px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-heading {
  font-size: 20px;
  font-weight: 600;
}

.form-subtext {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.form-input {
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.image-upload {
  background: #eee;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
}

.form-next-btn {
  margin-top: 20px;
  padding: 12px;
  background: black;
  color: white;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.ads-step {
  display: none;
}

/* Step Container */
.ads-step#step-4 {
  max-width: 480px;
  margin: 40px auto;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  font-family: "TeX Gyre Adventor", sans-serif;
  color: #333;
}

/* Headings and Subtext */
.form-heading {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-subtext {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #555;
}

/* Payment Card */
.payment-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.6;
}

.payment-card p {
  margin: 12px 0;
  word-break: break-word;
}

/* Input Field */
.form-input {
  width: 100%;
  padding: 10px 14px;
  margin-top: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Payment Info Text */
.payment-info {
  margin-top: 14px;
  font-size: 14px;
  color: white;
}

/* Buttons */
.btn-group {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.prev-btn,
.form-next-btn {
  flex: 1;
  padding: 10px 0;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.prev-btn {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

.prev-btn:hover {
  background-color: #e2e2e2;
}

.form-next-btn {
  background-color: #000;
  color: #fff;
}

.form-next-btn:hover {
  background-color: #000;
}

.payment-card {
  background: #f8f8f8;
  padding: 24px;
  border-radius: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333;
}

.payment-card strong {
  color: #5c2fc2;
}

.payment-info {
  background: #111;
  color: white;
  padding: 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 16px;
  line-height: 1.6;
}

.question-item {
  margin-bottom: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.question-toggle {
  width: 100%;
  background: black;
  color: white;
  padding: 14px;
  text-align: left;
  border: none;
  font-weight: 600;
  font-family: "TeX Gyre Adventor", sans-serif;
  cursor: pointer;
}

.question-body {
  display: none;
  padding: 16px;
  background: #f7f7f7;
  border-top: 1px solid #ddd;
}

.description-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fdfdfd;
}

.description-block label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.description-block .form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}

.description-block textarea.form-input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.btn-wrap {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-wrap button {
  padding: 10px 18px;
  border: none;
  background-color: #007bff;
  color: white;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.btn-wrap button:hover {
  background-color: #005dc1;
}

.btn-wrap button.edit-desc {
  background-color: #f1f1f1;
  color: #333;
}

.review-box {
  background: #f8f8f8;
  padding: 24px;
  border-radius: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333;
}

.btn-group {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.prev-btn {
  padding: 12px;
  background: #f1f1f1;
  color: #333;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.success-check img {
  width: 64px;
  height: 64px;
  margin: 20px auto;
  display: block;
}

.back-home-btn {
  display: block;
  margin: 24px auto 0;
  background: transparent;
  color: #444;
  border: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

/* =====================
   FOOTER SECTION
   ===================== */
.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 {
  width: 32px;
  height: 32px;
  object-fit: cover;
  cursor: pointer;
}

.profile-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.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-btn:hover {
  background-color: black;
}

/* =============================
   AD TAB STRUCTURE & STYLING
   ============================= */
.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;
}

/* Header */
.ad-header {
  width: 100%;
  padding: 24px 32px;
  border-bottom: 1px solid #2c2c2c;
}

.ad-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-icon {
  width: 24px;
  height: 24px;
}

.ad-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  font-family: "TeX Gyre Adventor", sans-serif;
}

/* Footer */
.ad-footer {
  width: 100%;
  padding: 24px 32px;
  border-top: 1px solid #2c2c2c;
  display: flex;
  justify-content: flex-end;
}

.ad-brand {
  text-align: left;
  color: #eeeeee;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: "TeX Gyre Adventor", sans-serif;
}

.brand-subtext {
  font-size: 14px;
  line-height: 1.4;
  font-family: "TeX Gyre Adventor", sans-serif;
}

/* 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 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.uid-input {
  padding: 10px 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
}

.profile-info-box {
  background: #f0e6ff;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
}

.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;
}

/* 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 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notification-title {
  font-size: 16px;
  font-weight: 600;
}

.notification-message {
  font-size: 14px;
  line-height: 1.4;
}

.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;
}
.sponsor-btn {
  text-decoration: none;
}

/* 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 */
    gap: 20px; /* Add space between child elements */
  }

  /* Faucet Tab */
  .faucet-tab {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%; /* Ensure it fits the screen */
    gap: 20px; /* Add space between internal elements */
  }

  /* 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 20px;
    background-color: #fff;
    position: fixed; /* Make it static */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays above other content */
  }

  /* Faucet Footer (Static) */
  .faucet-footer {
    width: 100%;
    display: flex;
    flex-direction: row; /* Corrected from 'space-between' typo */
    gap: 12px;
    justify-content: center;
    padding: 12px 24px;
    background-color: #fff;
    position: fixed; /* Make it static */
    bottom: 0;
    left: 0;
  }

  /* Adjust main content to account for fixed header and footer */
  .faucet-tab main {
    margin-top: 60px; /* Adjust based on header height */
    margin-bottom: 70px; /* Adjust based on footer height */
    padding-bottom: 20px; /* Ensure content isn't cut off */
  }

  /* 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);
  }
}
