/* Son tasarım rötuşları — v1 */

::selection {
  background: var(--brand-muted);
  color: var(--dark);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  border: 1px solid var(--border);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--brand-soft);
  border-color: var(--brand-muted);
}

body.has-cookie-banner .scroll-top {
  bottom: calc(5.5rem + 4rem);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%);
}

.error-code {
  font-family: var(--display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.35;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  margin: 1rem 0 0.5rem;
  color: var(--dark);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Kart iyileştirmeleri */
.product-card .card-link,
.article-card .card-read {
  opacity: 1;
  transform: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
}

.card-foot {
  gap: 0.5rem;
}

.card-foot .card-date {
  margin-top: 0;
}

.article-thumb {
  background: linear-gradient(145deg, var(--brand-soft), var(--brand-muted)) !important;
}

.card-img img,
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.card-img {
  position: relative;
}

.product-visual {
  position: relative;
  overflow: hidden;
}

.product-visual img {
  border-radius: inherit;
}

.price small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.empty-state-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto;
}

.card:hover .card-link {
  transform: translateX(4px);
}

.article-card .card-date {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-card .card-date::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0.6;
}

/* Sayfa hero */
.page-hero .tag {
  margin-top: 0.5rem;
}

.page-hero-meta {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}

/* Ürün detay */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.product-cta-mini {
  padding: 2.5rem 0 !important;
}

.product-cta-mini h2 {
  font-size: 1.35rem !important;
}

/* Makale */
.article-hero-title {
  margin-top: 0.75rem;
}

.article-cta {
  margin-top: 2.5rem;
}

/* İletişim kartları grid */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

/* Footer sosyal — ikon hissi */
.footer-social a {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s, background 0.2s;
}

.footer-social a:hover {
  transform: translateY(-2px);
}

/* Buton active */
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Prose tablo/code */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.625rem 0.875rem;
  text-align: left;
}

.prose th {
  background: var(--surface-alt);
  font-weight: 600;
}

.prose blockquote {
  border-left: 4px solid var(--brand);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--brand-soft);
  border-radius: 0 10px 10px 0;
  color: var(--text-muted);
}

.btn-block {
  width: 100%;
}

.btn-block + .btn-block {
  margin-top: 0.75rem;
}

.cta-box .text-muted {
  margin: 0.5rem 0 1.25rem;
}

.cta-section .text-muted {
  margin: 0.75rem 0 1.5rem;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
