/*
Theme Name: aigofa Child
Theme URI: https://aigofa.com
Description: aigofa.com용 GeneratePress 자식 테마 — 쿠팡/알리 카테고리 그리드, 통합 홈페이지 그리드, 상품 메타 필드.
Author: aigofa
Author URI: https://aigofa.com
Template: generatepress
Version: 0.1.0
Text Domain: aigofa-child
*/

/* ── 상품 그리드 ─────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px 0;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
  }
}

.product-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.product-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}

.product-card__body {
  padding: 10px 12px 14px;
}

.product-card__title {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 8px;
  /* 1줄 말줄임 */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__price {
  font-size: 15px;
  font-weight: 700;
  color: #e53935;
  margin: 0;
}

.product-card__platform {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 6px;
  background: #f0f0f0;
  color: #555;
}
.product-card__platform--coupang  { background: #ffeaea; color: #d32f2f; }
.product-card__platform--ali      { background: #fff3e0; color: #e65100; }

/* ── 그리드 필터 탭 (홈페이지) ───────────────────── */
.grid-filter {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.grid-filter button {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.grid-filter button.active {
  background: #2c5aa0;
  border-color: #2c5aa0;
  color: #fff;
}

/* ── load more 버튼 ──────────────────────────────── */
.load-more {
  display: block;
  margin: 24px auto;
  padding: 12px 32px;
  background: #2c5aa0;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}
.load-more:disabled { background: #aaa; cursor: not-allowed; }

/* ── 작업 38-C: quiz 카테고리 그리드 ───────────────── */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 16px 0;
}
@media (min-width: 768px) {
  .quiz-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
}
@media (min-width: 1200px) {
  .quiz-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }
}

.quiz-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.quiz-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.quiz-card__visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.quiz-card__emojis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif;
}
.quiz-card__emojis span {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  user-select: none;
}
@media (max-width: 480px) {
  .quiz-card__emojis span { font-size: 44px; }
}

.quiz-card__body {
  padding: 14px 16px 18px;
}
.quiz-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quiz-card__desc {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === AdSense 슬롯 전역 임시 숨김 (2026-05-17). 모든 페이지(홈+카테고리+글) 적용.
   AdSense 승인 후 (2026-06-14쯤) 이 두 줄 + front-page.php 안 동일 룰 + slot ID placeholder 교체로 부활. === */
.ad-slot { display: none !important; }
