/* CouponClipper.ai - FastMode SEO Site */
:root {
  --bg: #f8faf8;
  --fg: #0f1f18;
  --primary: #16a34a;
  --primary-hover: #15803d;
  --muted: #6b7c75;
  --border: #e2e8e4;
  --card: #ffffff;
  --radius: 0.75rem;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(248,250,248,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; color: var(--fg); text-decoration: none; }
.logo svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: white; border: none; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* Hero */
.hero { padding: 7rem 1.5rem 5rem; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 9999px; background: rgba(22,163,74,0.1); color: var(--primary); font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.2; margin: 0 0 1rem; }
.hero h1 .accent { color: var(--primary); display: block; }
.hero p { font-size: 1.125rem; color: var(--muted); max-width: 36rem; margin: 0 auto 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.hero-features { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; font-size: 0.875rem; color: var(--muted); }
.hero-features span { display: flex; align-items: center; gap: 0.5rem; }
.hero-features .check { color: var(--primary); }

/* Sections */
section { padding: 4rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: 2rem; font-weight: 700; margin: 0 0 0.5rem; }
.section-title p { color: var(--muted); margin: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.card a { text-decoration: none; color: inherit; display: block; padding: 1.25rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.card .meta { font-size: 0.875rem; color: var(--muted); }
.card .address { font-size: 0.8125rem; margin-top: 0.5rem; }

/* Store detail */
.store-hero { padding: 6rem 1.5rem 3rem; background: linear-gradient(135deg, rgba(22,163,74,0.08), transparent); border-bottom: 1px solid var(--border); }
.store-hero h1 { font-size: 2rem; margin: 0 0 0.5rem; }
.store-hero .address { font-size: 1.125rem; color: var(--muted); }
.store-content { padding: 2rem 1.5rem; max-width: 800px; margin: 0 auto; }
.store-detail-content { max-width: 1200px; }
.store-content h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.store-content p { color: var(--muted); margin: 0 0 1rem; }
.cta-box { background: linear-gradient(135deg, var(--primary), #15803d); color: white; padding: 2rem; border-radius: var(--radius); text-align: center; margin-top: 2rem; }
.cta-box h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin: 0 0 1rem; }
.cta-box .btn { background: white; color: var(--primary); }
.cta-box .btn:hover { background: rgba(255,255,255,0.9); }

/* Sale cards (coupon grid) */
.sales-section { padding: 2rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.sales-header { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.sales-header h2 { margin: 0; font-size: 1.5rem; }
.sales-summary { font-size: 0.875rem; color: var(--muted); }
.sales-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
@media (min-width: 640px) { .sales-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .sales-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.sale-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: box-shadow 0.2s; }
.sale-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.sale-card-image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--border); }
.sale-card-image img { width: 100%; height: 100%; object-fit: cover; }
.sale-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.sale-badge { position: absolute; top: 0.5rem; left: 0.5rem; padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; background: var(--primary); color: white; }
.sale-badge-variants { left: auto; right: 0.5rem; background: var(--muted); color: var(--fg); }
.sale-card-content { padding: 1rem; }
.sale-card-name { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sale-card-expand { display: block; width: 100%; margin-top: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--primary); background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.3); border-radius: 0.5rem; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.sale-card-expand:hover { background: rgba(22,163,74,0.15); border-color: var(--primary); }
.sale-variants { display: none; margin-top: 0.75rem; padding: 1rem; background: var(--bg); border-radius: 0.5rem; border: 1px solid var(--border); max-height: 14rem; overflow-y: auto; }
.sale-card.expanded .sale-variants { display: block; }
.sale-card.expanded .sale-card-expand { margin-bottom: 0; }
.sale-variants-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.sale-variants ul { margin: 0; padding: 0; list-style: none; }
.sale-variant { padding: 0.4rem 0; font-size: 0.9rem; color: var(--fg); line-height: 1.4; border-bottom: 1px solid var(--border); }
.sale-variant:last-child { border-bottom: none; padding-bottom: 0; }
.sale-variant:first-child { padding-top: 0.25rem; }
.sale-card-prices { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.sale-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.sale-original { font-size: 0.75rem; color: var(--muted); text-decoration: line-through; }
.sale-percent { font-size: 0.75rem; padding: 0.125rem 0.375rem; border-radius: 0.25rem; border: 1px solid var(--primary); color: var(--primary); font-weight: 600; }
.sale-card-skeleton .sale-card-image { background: linear-gradient(90deg, var(--border) 25%, rgba(0,0,0,0.05) 50%, var(--border) 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; }
.sale-card-skeleton .skeleton-line { height: 0.75rem; background: var(--border); border-radius: 0.25rem; margin-bottom: 0.5rem; }
.sale-card-skeleton .skeleton-line.short { width: 60%; }
.sale-card-skeleton .skeleton-line.price { width: 40%; margin-top: 0.5rem; }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sales-empty { text-align: center; padding: 3rem 1rem; }
.sales-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.sales-empty h3 { margin: 0 0 0.5rem; }
.sales-empty p { color: var(--muted); margin: 0 0 1rem; }

/* Footer */
footer { padding: 2rem 1.5rem; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 0.875rem; }
footer a { color: var(--primary); text-decoration: none; }

/* Breadcrumb */
.breadcrumb { padding: 5rem 1.5rem 0; max-width: 1200px; margin: 0 auto; font-size: 0.875rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--muted); margin: 0 0.5rem; }
