/* ================================================================
   RIVA GARAGE — İÇ SAYFALAR
   Standard, Ürünler, Ürün, Galeri, Hakkımızda, İletişim ortak
   bileşenleri. theme.css + sections.css'in üzerine yüklenir.
   ================================================================ */

/* ── İç sayfa hero'su ───────────────────────────────────────────── */
.phero {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, oklch(0.2 0.02 250), var(--surface));
  padding: 2.5rem 1.5rem;
  text-align: center;
}
@media (min-width: 768px) { .phero { padding: 3.5rem 2rem; } }
.phero__eyebrow { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); }
.phero__title { margin-top: 0.5rem; font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; }
@media (min-width: 768px) { .phero__title { font-size: 2.75rem; } }
.phero__lead { margin: 0.75rem auto 0; max-width: 36rem; font-size: 0.95rem; color: var(--muted-foreground); }

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted-foreground); }
.crumbs a { transition: color 0.2s ease; }
.crumbs a:hover { color: var(--primary); }
.crumbs__sep { color: var(--border); }
.crumbs [aria-current="page"] { color: var(--foreground); }

/* ── Genel içerik kartı (Standard.aspx) ────────────────────────── */
.content-card { border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
@media (min-width: 768px) { .content-card { padding: 2.5rem; } }
.content-card :is(h1, h2, h3) { font-family: var(--font-display); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-card :is(h1, h2, h3):first-child { margin-top: 0; }
.content-card p { color: var(--muted-foreground); margin-bottom: 1rem; }
.content-card a {color: oklch(1 0 0);text-decoration: underline;text-underline-offset: 2px;}
.content-card ul, .content-card ol { margin: 0 0 1rem 1.25rem; color: var(--muted-foreground); }
.content-card ul { list-style: disc; }
.content-card ol { list-style: decimal; }
.content-card img { border-radius: var(--radius-lg); margin: 1rem 0; }

/* ── Sayfa galerisi ─────────────────────────────────────────────── */
.page-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .page-gallery { grid-template-columns: repeat(4, 1fr); } }
.page-gallery__item { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); aspect-ratio: 1; }
.page-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.page-gallery__item:hover img { transform: scale(1.06); }

/* ── Galeri sayfası — Instagram CTA'sı ─────────────────────────── */
.ig-cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--card); padding: 4.5rem 1.5rem;
}
.ig-cta__glow {
  position: absolute; width: 40rem; height: 40rem; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--primary) 18%, transparent), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.ig-cta__link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 6rem; height: 6rem; border-radius: var(--radius-2xl);
  background-image: var(--gradient-ig); margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
}
.ig-cta__link:hover { transform: scale(1.05); }
.ig-cta__icon { width: 3rem; height: 3rem; color: #ffffff; }
.ig-cta__handle { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 0.5rem; }
.ig-cta__text { position: relative; max-width: 30ch; margin: 0 auto 2rem; color: var(--muted-foreground); line-height: 1.6; }

/* ── Ürün ızgarası (Urunler.aspx) ──────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.filter-bar__item {
  border-radius: 999px; border: 1px solid var(--border);
  padding: 0.5rem 1.1rem; font-size: 0.8rem; font-weight: 600;
  color: var(--muted-foreground); transition: all 0.2s ease;
}
.filter-bar__item:hover, .filter-bar__item.is-active {
  border-color: var(--primary); background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--primary);
}

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  display: block; overflow: hidden; border-radius: var(--radius-xl);
  border: 1px solid var(--border); background: var(--card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { border-color: color-mix(in oklab, var(--primary) 70%, transparent); box-shadow: var(--glow-soft); }
.product-card__img-wrap { overflow: hidden; aspect-ratio: 4/3; background: var(--surface); }
.product-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card__img-wrap img { transform: scale(1.05); }
.product-card__body { padding: 0.9rem 1rem 1.1rem; }
.product-card__cat { font-size: 0.75rem; letter-spacing: 0.025em; text-transform: uppercase; color: var(--primary); }
.product-card__title { margin-top: 0.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; line-height: 1.25; letter-spacing: 0.025em; }

.empty-state { padding: 3rem 1rem; text-align: center; color: var(--muted-foreground); }

/* ── Ürün detayı (Urun.aspx) ───────────────────────────────────── */
.pdp { display: grid; gap: 1.5rem; border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
@media (min-width: 768px) { .pdp { grid-template-columns: 1.1fr 1fr; padding: 2rem; } }

.pdp__gallery-main { overflow: hidden; border-radius: var(--radius-xl); aspect-ratio: 4/3; background: var(--surface); }
.pdp__gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__gallery-thumbs { margin-top: 0.75rem; display: flex; gap: 0.5rem; overflow-x: auto; }
.pdp__gallery-thumbs img { height: 4.5rem; width: 4.5rem; flex-shrink: 0; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border); cursor: pointer; }
.pdp__gallery-thumbs img.is-active { border-color: var(--primary); }

.pdp__cat { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.pdp__title { margin-top: 0.5rem; font-size: 1.75rem; font-weight: 800; }
.pdp__desc { margin-top: 1rem; color: var(--muted-foreground); line-height: 1.7; }
.pdp__cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pdp__note { margin-top: 1rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* ── Hakkımızda ─────────────────────────────────────────────────── */
.about-block { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .about-block { grid-template-columns: repeat(2, 1fr); align-items: center; } }
.about-block__img { border-radius: var(--radius-2xl); overflow: hidden; aspect-ratio: 4/3; }
.about-block__img img { width: 100%; height: 100%; object-fit: cover; }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--border); }
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row__item { background: var(--card); padding: 1.5rem; text-align: center; }
.stat-row__num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-row__label { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* ── "Neden Riva Garage?" değer kartları ───────────────────────── */
.values-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card {
  display: flex; gap: 1rem; align-items: flex-start;
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--card); padding: 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { border-color: color-mix(in oklab, var(--primary) 60%, transparent); box-shadow: var(--glow-soft); }
.value-card__icon {
  flex-shrink: 0; display: flex; height: 2.75rem; width: 2.75rem;
  align-items: center; justify-content: center; border-radius: 999px;
  border: 1px solid var(--primary);
  color: #ffffff;
}
.value-card__icon .icon { width: 1.4rem; height: 1.4rem; }
.value-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-transform: uppercase; margin-bottom: 0.4rem; }
.value-card__text { font-size: 0.85rem; line-height: 1.55; color: var(--muted-foreground); }

/* ── İletişim formu ─────────────────────────────────────────────── */
.contact-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1.2fr; } }

.contact-info { border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info__item { display: flex; align-items: flex-start; gap: 0.85rem; }
.contact-info__item .icon { color: var(--primary); width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }
.contact-info__wa-icon { color: var(--whatsapp) !important; width: 1.5rem !important; height: 1.5rem !important; }
.contact-info__item strong { display: block; font-size: 0.8rem; color: var(--muted-foreground); }
.contact-info__item span, .contact-info__item a { font-size: 0.95rem; }

.contact-info__wa-promo { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.contact-form { border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); padding: 1.75rem; }
@media (min-width: 768px) { .contact-form { padding: 2.25rem; } }
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--muted-foreground); }
.form-field input, .form-field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0.7rem 0.9rem; color: var(--foreground);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); }
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { border-radius: var(--radius-lg); padding: 0.9rem 1.1rem; font-size: 0.85rem; margin-bottom: 1rem; }
.form-alert--success { background: color-mix(in oklab, var(--success) 15%, transparent); border: 1px solid color-mix(in oklab, var(--success) 40%, transparent); color: var(--success); }
.form-alert--error { background: color-mix(in oklab, var(--destructive) 15%, transparent); border: 1px solid color-mix(in oklab, var(--destructive) 40%, transparent); color: var(--destructive); }

/* ── 404 — tek, gösterişli hero bloğu (bakim.aspx ile aynı görsel dil:
   RG amblemi, glow, büyük başlık) ─────────────────────────────────── */
.notfound-hero {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--card); padding: 4.5rem 1.5rem;
}
.notfound-hero__glow {
  position: absolute; width: 40rem; height: 40rem; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--primary) 22%, transparent), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.notfound-hero__logo {
  position: relative; display: block; width: 4.5rem; height: 4.5rem;
  margin: 0 auto 1.5rem; border-radius: 50%; object-fit: cover;
  border: 1px solid color-mix(in oklab, var(--primary) 50%, transparent);
  box-shadow: 0 0 24px color-mix(in oklab, var(--primary) 35%, transparent);
}
.notfound-hero__code {
  position: relative; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4rem, 12vw, 7rem); line-height: 1;
  color: color-mix(in oklab, var(--primary) 20%, transparent);
  margin-bottom: -1rem;
}
.notfound-hero__title {
  position: relative; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}
.notfound-hero__text {
  position: relative; max-width: 30ch; margin: 0 auto 2rem;
  color: var(--muted-foreground); line-height: 1.6;
}
.notfound-hero__actions {
  position: relative; display: flex; gap: 0.75rem;
  justify-content: center; flex-wrap: wrap;
}
