/* Featured Section (index.html) */
.featured-section {
  grid-column: 1 / -1;
  margin-bottom: 40px;
  margin: 5 auto 40px;
  padding: 0 20px;
}

.featured-card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 20px 25px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  border: 2px solid rgba(59, 130, 246, 0.2);
  opacity: 0;
  transform: translateY(20px);
  min-height: 90px;
  max-height: 100px;
}

.featured-card.one{
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(235, 243, 255, 0.3);
  border: 5px solid var(--blue-light);
}

.featured-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.featured-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 35px rgba(202, 202, 202, 0.3);
  border: 2px solid var(--blue-light);
}

.featured-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-light);
  min-width: 60px;
  text-align: center;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-logo {
  flex-shrink: 0;
}

.featured-logo img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border-radius: 10px;
  background-color: #262626;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-logo img {
  transform: scale(1.05);
}

.featured-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.featured-info h3 {
  margin: 0;
  color: var(--card-text-primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.featured-info p {
  margin: 0;
  color: var(--card-text-secondary);
  font-size: 0.88rem;
  line-height: 1.3;
}

.featured-action {
  flex-shrink: 0;
  margin-left: auto;
}

.btn-featured {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  display: inline-block;
  min-width: 110px;
}

.btn-featured:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Regular Section (index.html) */
.regular-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* align content to the left */
  flex: 1;
  width: 100%;
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  background-color: #262626;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  align-self: flex-start; /* align image to the left */
}


.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  margin: 0 0 8px 0;
  color: var(--card-text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center; /* center site name */
  width: 100%;
}

.card p {
  color: var(--card-text-secondary);
  margin: 5px 0 15px;
  font-size: 0.9rem;
  text-align: center; /* center description */
  width: 100%;
}

.stars {
  color: #f1c40f;
  font-size: 1.2rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
  align-self: center; /* center stars */
  width: 100%;
  text-align: center;
}

/* Banner */
.banner-container {
  text-align: center;
  margin: 0 auto 30px;
  height: 346px;
  max-width: 1152px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2%;
}

.banner-container.hidden {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin-bottom: 0;
}

#promoBanner {
  transition: opacity 0.4s ease;
  opacity: 1;
  visibility: visible;
}

/* Offerwalls Page (offerwalls.html) */
.offerwalls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  padding: 40px 4%;
  max-width: 1400px; 
  margin: 0 auto;
}

.offerwall-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(20px);
}

.offerwall-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.offerwall-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

.offerwall-logo {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.offerwall-card h3 {
  color: var(--card-text-primary);
  font-size: 1.1rem;
  margin: 10px 0 0 0;
  font-weight: 600;
}

/* Tips Section (tips.html) */
.tips-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  padding: 0 20px;
}
.tip-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.tip-card:hover {
  transform: translateY(-5px);
  border-color: white;
  box-shadow: 0 15px 35px rgba(202, 202, 202, 0.3);
}
.tip-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.3));
}
.tip-card h3 {
  color: var(--card-text-primary);
  font-size: 1.3rem;
  margin: 15px 0 10px 0;
  font-weight: 600;
}
.tip-card p {
  color: var(--card-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(196, 30, 58, 0.1);
  margin: 5% auto;
  padding: 20px;
  border: 2px solid rgba(196, 30, 58, 0.5);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 20px 60px rgba(196, 30, 58, 0.4);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  color: var(--text-secondary);
  float: right;
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: white;
}

#modalTitle {
  color: var(--card-text-primary);
  font-size: 1.8rem;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(196, 30, 58, 0.4);
}

.modal-sites-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 10px;
}

.modal-sites-list::-webkit-scrollbar {
  width: 8px;
}

.modal-sites-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.modal-sites-list::-webkit-scrollbar-thumb {
  background: rgba(196, 30, 58, 0.5);
  border-radius: 10px;
}

.modal-sites-list::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 30, 58, 0.7);
}

.modal-site-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(196, 30, 58, 0.15);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(196, 30, 58, 0.3);
  transition: all 0.3s ease;
}

.modal-site-card:hover {
  border-color: rgba(196, 30, 58, 0.7);
  background: rgba(196, 30, 58, 0.25);
  box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}

.modal-site-logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-site-info {
  flex-grow: 1;
  min-width: 0;
}

.modal-site-info h4 {
  color: var(--card-text-primary);
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-site-info p {
  color: var(--card-text-secondary);
  margin: 0;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-sites {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 40px 20px;
}