/*
Theme Name: Just The Ads
Author: Agung Rohmat
Author URI: https://holidayfont.com
Description: Theme for Just The Ads
Version: 1.3.0
Text-domain: agungfont
Tags: e-commerce,
*/

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
}

/* Landing Page */
.landing-page {
  background-color: aliceblue;
  padding: 50px 0px;
}

/* Header */

.site-header {
  padding: 24px;
  text-align: center;
}

.site-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.site-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.site-logo a img {
  max-height: 48px;
  width: auto;
}

.site-logo a {
  display: flex;
}

.site-branding {
  text-align: left;
}

/* Footer */

.site-footer {
  padding: 24px;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

/* Grid Ads */

.section-title {
  font-size: 14px;
  margin: 0 0 16px;
  opacity: 0.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.normal-grid {
  gap: 16px;
}

.featured-grid {
  margin-bottom: 40px;
  gap: 20px;
}

.ad-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  position: relative;
}

/* badge */
.badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;

  font-size: 10px;
  letter-spacing: 0.5px;

  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.85);
  color: #111;

  backdrop-filter: blur(6px);

  opacity: 0;
  transition: 1;
}

/* image */
.ad-image {
  aspect-ratio: 1 / 1;
}

.ad-image.featured {
  aspect-ratio: 4 / 5;
}

.ad-image img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.ad-content {
  padding: 12px;
}

.ad-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.ad-desc {
  font-size: 13px;
  opacity: 0.6;
  margin: 0;
}

.ad-card:hover {
  transform: translateY(-4px);
}

.ad-card:hover .badge-featured {
  opacity: 1;
}

.default-ad {
  opacity: 0.5;
}

.default-ad:hover {
  opacity: 1;
}

/* Mobile */
@media (max-width: 480px) {
  .landing-page {
    padding: 24px 0;
  }

  .site-title {
    font-size: 20px;
  }

  .site-subtitle {
    font-size: 13px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ad-content {
    padding: 8px;
  }

  .ad-title {
    font-size: 14px;
  }

  .ad-desc {
    font-size: 12px;
  }
}