/* Guides (/guides/*, /tr/rehber/*): long-form articles in the site's palette. */

.guide-hero {
  padding-bottom: 32px;
}

.guide-meta {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.guide {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.guide h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.guide h3 {
  margin: 32px 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.guide p,
.guide li {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.guide p {
  margin: 0 0 18px;
}

.guide ul,
.guide ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
}

.guide li {
  margin-bottom: 10px;
}

.guide li::marker {
  font-weight: 700;
  color: var(--pink);
}

.guide p strong,
.guide li strong {
  color: var(--text);
}

.guide a:not(.store-badge) {
  color: var(--violet);
}

/* The short answer up top: what most readers came for. */
.guide-summary {
  margin: 0 0 8px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-summary p:last-child,
.guide-summary ol:last-child {
  margin-bottom: 0;
}

.guide-note {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: #fff1ea;
}

.guide-note p {
  margin: 0;
  color: var(--text);
}

/* Where the guide meets the app: copy beside a real screen. */
.guide-app {
  display: flex;
  gap: 36px;
  align-items: center;
  margin: 48px 0;
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(160deg, #fff1ea, #ffe4ea);
}

.guide-app app-phone {
  flex: none;
  width: 220px;
}

.guide-app h2 {
  margin-top: 0;
}

.guide-faq details {
  border-bottom: 1px solid var(--border);
}

.guide-faq summary {
  padding: 18px 0;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
}

.guide-faq details p {
  margin-top: -4px;
}

.guide-disclaimer {
  margin-top: 48px;
  font-size: 0.9rem !important;
  color: var(--muted) !important;
}

/* Download box inside a guide (components.js <guide-cta>) */

guide-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 28px 0;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-muted);
}

guide-cta div {
  flex: 1;
}

guide-cta strong {
  display: block;
  font-size: 1.05rem;
}

guide-cta p {
  margin: 4px 0 0 !important;
  font-size: 0.95rem !important;
  color: var(--muted) !important;
}

guide-cta .store-badge {
  flex: none;
}

/* iPhone-only bar pinned to the bottom of guides (components.js stickyGuideCta) */

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sticky-cta.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.sticky-cta img {
  border-radius: 9px;
}

.sticky-cta span {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
}

.sticky-cta a {
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.sticky-cta button {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .guide-summary {
    padding: 24px 22px;
  }
  guide-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 22px;
    text-align: center;
  }
  guide-cta .store-badge {
    align-self: center;
  }
  .guide-app {
    flex-direction: column;
    padding: 28px 22px;
    text-align: center;
  }
}

/* Guides hub (/guides, /tr/rehber) */

.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 18px 40px -14px rgba(9, 9, 11, 0.18);
}

.guide-card .eyebrow {
  margin: 0;
}

.guide-card h2,
.guide-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.guide-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

.guide-card-more {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  color: var(--violet);
}

.guide-hero .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.guide-hero .eyebrow a::before {
  content: '← ';
}

/* Simple data tables inside a guide; they scroll in their own box on phones. */
.guide-table {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.guide-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.guide-table th,
.guide-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.guide-table th {
  font-weight: 700;
  background: var(--surface-muted);
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-table td:last-child {
  white-space: nowrap;
}
