/* Ads Page Styling */

/* Hero Section */
.ads-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #0066cc 70%, #00a8e8 100%);
  color: white;
  text-align: center;
  padding: 7rem 2rem 5rem;
  margin-top: 80px;
  overflow: hidden;
}

.ads-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.ads-hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(0, 102, 204, 0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out 4s infinite alternate;
}

@keyframes heroGlow {
  from { opacity: 0.5; transform: scale(1); }
  to { opacity: 1; transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.ads-hero .container {
  position: relative;
  z-index: 2;
}

.ads-hero .hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, #d0e8ff 40%, #ffffff 60%, #c0e0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(0, 80, 180, 0.3));
}

.ads-hero .hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* Ads Section */
.ads-section {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 30%, #f8fafc 70%, #f0f7ff 100%);
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}

.ads-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ads-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Ads Grid - Two Column Layout */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ad Card */
.ad-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 102, 204, 0.06);
}

.ad-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  z-index: 5;
}

.ad-card:hover {
  transform: translateY(-14px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 102, 204, 0.18), 0 10px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 102, 204, 0.15);
}

.ad-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ad-card:hover img {
  transform: scale(1.08);
}

/* Ad Overlay */
.ad-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 168, 232, 0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}

.ad-card:hover .ad-overlay {
  opacity: 1;
}

.view-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  transform: scale(0.5);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ad-card:hover .view-icon {
  transform: scale(1);
}

.view-text {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.ad-card:hover .view-text {
  transform: translateY(0);
  opacity: 1;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: modalFadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-caption {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 1.2rem;
  font-size: 1rem;
  margin-top: 1rem;
  letter-spacing: 0.5px;
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.modal-close:hover,
.modal-close:focus {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Modal Navigation Buttons */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.5rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  z-index: 10000;
  backdrop-filter: blur(10px);
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 25px;
}

.modal-next {
  right: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .ads-hero .hero-title {
    font-size: 2.5rem;
  }

  .ads-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .ads-hero {
    padding: 5rem 1.5rem 3rem;
    min-height: 35vh;
  }

  .ads-hero .hero-title {
    font-size: 2rem;
  }

  .ads-hero .hero-subtitle {
    font-size: 1rem;
  }

  /* Stack to single column on mobile */
  .ads-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
  }

  .ads-section {
    padding: 3rem 1rem;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
    width: 40px;
    height: 40px;
  }

  .modal-nav {
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }

  .modal-content {
    max-height: 75vh;
  }
}

@media (max-width: 480px) {
  .ads-hero .hero-title {
    font-size: 1.75rem;
  }

  .ads-hero .hero-subtitle {
    font-size: 0.9rem;
  }

  .view-icon {
    font-size: 2rem;
  }

  .view-text {
    font-size: 0.8rem;
  }
}
