/* CanerGungor.com 2026 design-system refresh. Loaded after legacy styles. */
:root {
  --cg-bg: #08090c;
  --cg-surface: #101218;
  --cg-surface-2: #171a22;
  --cg-line: rgba(255, 255, 255, 0.11);
  --cg-line-strong: rgba(227, 183, 74, 0.42);
  --cg-gold: #e3b74a;
  --cg-gold-bright: #f4cd68;
  --cg-text: #f6f4ee;
  --cg-muted: #b8bac3;
  --cg-subtle: #a6a9b3;
  --cg-radius-sm: 10px;
  --cg-radius-md: 18px;
  --cg-radius-lg: 30px;
  --cg-space-1: .5rem;
  --cg-space-2: 1rem;
  --cg-space-3: 1.5rem;
  --cg-space-4: 2rem;
  --cg-space-5: 3rem;
  --cg-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

html { scroll-padding-top: 92px; }
body { background: var(--cg-bg); color: var(--cg-text); }
body::selection { background: var(--cg-gold); color: #111; }

/* Glyph mappings omitted from the reduced Font Awesome stylesheet. */
.fa-arrows-up-down::before { content: "\f07d"; }
.fa-arrow-trend-down::before { content: "\e097"; }
.fa-arrow-trend-up::before { content: "\e098"; }
.fa-comment-dots::before { content: "\f4ad"; }
.fa-globe::before { content: "\f0ac"; }
.fa-layer-group::before { content: "\f5fd"; }
.fa-play-circle::before { content: "\f144"; }
.fa-reply::before { content: "\f3e5"; }
.fa-times-circle::before { content: "\f057"; }
.fa-universal-access::before { content: "\f29a"; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--cg-gold-bright) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 7px rgba(227, 183, 74, .16) !important;
}

.section { padding-block: clamp(5rem, 9vw, 8.5rem); }
.section-header { max-width: 760px; margin-inline: auto; }
.section-title { text-wrap: balance; letter-spacing: -.025em; }
.section-subtitle { color: var(--cg-muted); max-width: 66ch; margin-inline: auto; }

#main-header { border-bottom: 1px solid var(--cg-line); background: rgba(8, 9, 12, .82); backdrop-filter: blur(18px); }
.navbar { min-height: 78px; }
.logo { letter-spacing: .12em; }
.nav-links { gap: clamp(.8rem, 1.6vw, 1.65rem); }
.nav-links a, .dropbtn { min-height: 44px; display: inline-flex; align-items: center; }
.dropdown-content { min-width: 270px; padding: .65rem; border: 1px solid var(--cg-line); border-radius: var(--cg-radius-sm); background: rgba(15, 17, 23, .98); box-shadow: var(--cg-shadow); }
.dropdown-content.focus-visible { display: flex; flex-direction: column; }
.dropdown-content a { border-radius: 8px; padding: .72rem .85rem; min-height: 42px; }
.dropdown-label { display: block; padding: .7rem .85rem .35rem; color: var(--cg-gold); font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.hero { background: radial-gradient(circle at 82% 30%, rgba(227,183,74,.14), transparent 38%), linear-gradient(145deg, #08090c 0%, #0d0f14 55%, #11100d 100%); }
.hero-content { position: relative; }
.hero h1 { max-width: 9ch; }
.hero-pretitle { color: var(--cg-gold-bright); }
.hero-desc { color: #d3d4da; max-width: 62ch; }
.hero-kicker { display: inline-flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.75rem; }
.hero-kicker span { padding: .48rem .72rem; border: 1px solid var(--cg-line); border-radius: 999px; color: var(--cg-muted); background: rgba(255,255,255,.025); font-size: .72rem; letter-spacing: .04em; }
.hero-social { margin-top: 2.25rem; }
.hero-social-label { display: block; font-size: .72rem; color: var(--cg-subtle); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .16em; }
.hero-social .social-links { justify-content: flex-start; gap: .8rem; }
.hero-photo-frame { border-radius: var(--cg-radius-sm); overflow: visible; }
.hero-photo-frame img { border-radius: var(--cg-radius-sm); }
.hero-photo-overlay { border-color: var(--cg-line-strong); border-radius: var(--cg-radius-sm); }
.hero-stats-inner { background: rgba(8,9,12,.72); backdrop-filter: blur(12px); border-color: var(--cg-line); }
.hero-stat { min-width: 132px; }

.services-grid, .tools-grid { gap: 1rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.service-card { border-color: var(--cg-line); border-radius: var(--cg-radius-md); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); box-shadow: none; }
.service-card:hover { border-color: var(--cg-line-strong); box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.service-card p { color: var(--cg-muted); }
.service-card h4 { margin: 0 0 .75rem; color: var(--cg-text); font: inherit; font-family: var(--font-heading, Georgia, serif); font-size: 1.25rem; font-weight: 700; }
.topic-pillar { min-height: 280px; }
.tool-cluster { margin-top: clamp(3rem, 6vw, 5rem); }
.tool-cluster:first-of-type { margin-top: 0; }
.tool-cluster-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; padding-bottom: 1rem; border-bottom: 1px solid var(--cg-line); }
.tool-cluster-heading h3 { margin: 0; font-size: clamp(1.4rem, 2.3vw, 2rem); }
.tool-cluster-heading p { margin: 0; max-width: 55ch; color: var(--cg-muted); }

.trust-section { background: linear-gradient(180deg, rgba(227,183,74,.045), transparent 65%); border-block: 1px solid var(--cg-line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trust-card { padding: clamp(1.5rem, 3vw, 2.4rem); border: 1px solid var(--cg-line); border-radius: var(--cg-radius-md); background: var(--cg-surface); }
.trust-card i { color: var(--cg-gold); font-size: 1.25rem; }
.trust-card h3 { margin: 1rem 0 .65rem; }
.trust-card p { margin: 0; color: var(--cg-muted); }

.blog-card { border-radius: var(--cg-radius-md); overflow: hidden; background: var(--cg-surface); }
.blog-img-wrap { background: var(--cg-surface-2); }
.blog-content p { color: var(--cg-muted); }
.blog-filter-btn { min-height: 44px; }
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.blog-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid var(--cg-line);
  border-radius: 999px;
  background: var(--cg-surface);
  color: var(--cg-text);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}
a.blog-page-link:hover {
  border-color: var(--cg-gold-bright);
  background: var(--cg-gold-bright);
  color: #111318;
}
.blog-page-link[aria-current="page"] {
  border-color: var(--cg-gold-bright);
  background: var(--cg-gold-bright);
  color: #111318;
  box-shadow: 0 0 0 3px rgba(227, 183, 74, .18);
}
.blog-page-link[aria-disabled="true"] {
  color: var(--cg-subtle);
  cursor: not-allowed;
}

/* Restore semantic article lists after the legacy global list reset. */
.article-grid ul:not(.toc-list):not(.step-list):not(.step-sub):not(.fa-ul) {
  list-style: disc outside;
}
.article-grid ol:not(.toc-list):not(.step-list):not(.step-sub) {
  list-style: decimal outside;
}
.article-grid ul:not(.toc-list):not(.step-list):not(.step-sub):not(.fa-ul) ul {
  list-style-type: circle;
}
.article-grid .product-pros-cons ul { list-style: none !important; }

/* Keep foregrounds legible on gold controls and muted dark surfaces. */
.skip-nav,
.audio-play-btn,
.author-card-link:hover,
.share-btn:hover,
.toc-toggle:hover,
.step-item:hover::before,
.form-success-back {
  color: #111318 !important;
}
.skip-nav { background: var(--cg-gold-bright); min-height: 44px; display: inline-flex; align-items: center; }
.copyright { color: var(--cg-muted); }
.footer-links-list a,
.social-links a { color: var(--cg-subtle); }
.breadcrumb { color: var(--cg-subtle) !important; }
.breadcrumb a { color: var(--cg-muted) !important; }
.breadcrumb a:hover { color: var(--cg-gold-bright) !important; }
.footer-legal a {
  color: var(--cg-muted) !important;
  opacity: 1 !important;
  text-decoration: underline !important;
  text-underline-offset: .2em;
}
.footer-legal-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cg-muted);
  cursor: pointer;
  font: inherit;
  min-height: 44px;
  padding: .25rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.footer-legal-button:hover { color: var(--cg-gold-bright); }
.newsletter-message.success { color: #6ee79a; }
.newsletter-message.error { color: #ff8c8c; }

/* Cookie preferences stay operable on short and narrow viewports. */
.cookie-banner {
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.cookie-content p,
.cookie-categories { color: var(--cg-muted); }
.cookie-content a { color: var(--cg-gold-bright) !important; }
.cookie-categories label,
.btn-cookie { min-height: 44px; touch-action: manipulation; }
.cookie-categories input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: var(--cg-gold-bright);
}
.btn-cookie { color: #111318; }
.btn-cookie-reject { color: var(--cg-text) !important; }
.btn-cookie-settings { display: none; }
#reject-all-cookies {
  border: 1px solid var(--cg-gold-bright);
  background: transparent;
}

input, textarea, select { color-scheme: dark; }
.form-control, input[type="text"], input[type="email"], input[type="search"], input[type="password"], textarea, select { border-color: var(--cg-line); background-color: #11131a; color: var(--cg-text); }

footer { border-top: 1px solid var(--cg-line); background: #07080a; }
.footer-slogan, .footer-newsletter p { color: var(--cg-muted); }

/* Keep the oversized decorative biography initial inside the page canvas. */
body .bio-section::before { right: 0 !important; }

@media (max-width: 1024px) {
  .nav-links { gap: .65rem; }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { min-height: 72px; }
  .nav-links { background: rgba(8,9,12,.98); }
  .nav-links a, .nav-links .dropbtn { min-height: 50px; }
  .dropdown-content { border: 0; box-shadow: none; background: rgba(255,255,255,.025); border-radius: 0; }
  .hero { padding-top: 104px; }
  .hero-kicker { justify-content: center; }
  .hero-desc { max-width: 40ch; }
  .hero-social .social-links { justify-content: center; }
  .hero-stats-inner { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); }
  .hero-stat { min-width: 0; border-bottom: 1px solid var(--cg-line); }
  .tool-cluster-heading { align-items: flex-start; flex-direction: column; }
  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    max-height: calc(100vh - 16px - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    padding: .85rem;
  }
  .cookie-content { gap: .65rem; }
  .cookie-content p { font-size: .8rem; line-height: 1.42; }
  .cookie-banner:not(.cookie-banner--preferences-open) .cookie-categories,
  .cookie-banner:not(.cookie-banner--preferences-open) #reject-cookies {
    display: none;
  }
  .cookie-banner:not(.cookie-banner--preferences-open) .btn-cookie-settings {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .2rem;
    border: 0;
    background: transparent;
    color: var(--cg-gold-bright);
    text-decoration: underline;
    text-underline-offset: .2em;
  }
  .cookie-banner--preferences-open .btn-cookie-settings { display: none; }
  .cookie-categories {
    gap: .25rem;
    margin-top: 0;
    padding: .55rem .7rem;
  }
  .cookie-categories legend { margin-bottom: .15rem; }
  .cookie-categories label { min-width: 0; }
  .cookie-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin-top: 0;
  }
  .btn-cookie {
    min-width: 0;
    width: 100%;
    padding: .65rem .7rem;
    line-height: 1.25;
  }
  .cookie-banner--preferences-open #reject-cookies { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .custom-cursor, .custom-cursor-follower { display: none !important; }
}

@media (forced-colors: active) {
  :where(a, button, input, textarea, select):focus-visible { outline: 3px solid CanvasText !important; }
}
