/*
Theme Name: AslanScope
Theme URI: https://aslanscope.com
Author: AslanScope
Description: Turkish-first block theme for the AslanScope supporter publication.
Version: 0.2.4
Text Domain: aslanscope
*/

:root {
  --as-bg: #f6f2eb;
  --as-surface: #ffffff;
  --as-ink: #151515;
  --as-muted: #5f625d;
  --as-line: #ded8cf;
  --as-red: #a91422;
  --as-gold: #d89a13;
  --as-green: #256f4c;
  --as-blue: #1f5f7a;
  --as-radius: 8px;
  --as-shadow: 0 12px 24px rgba(21, 21, 21, 0.08);
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--as-bg);
  color: var(--as-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body * {
  letter-spacing: 0 !important;
}

.wp-site-blocks,
.wp-block-group,
.wp-block-query,
.wp-block-post-template,
main,
header,
footer {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

a {
  color: var(--as-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--as-blue);
  outline-offset: 3px;
}

.as-skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 40;
  transform: translateY(-140%);
  background: var(--as-ink);
  color: #fff;
  padding: .65rem .85rem;
  border-radius: var(--as-radius);
}

.as-skip-link:focus {
  transform: translateY(0);
}

.as-utility {
  background: var(--as-ink);
  color: #fff;
  font-size: .875rem;
}

.as-utility p {
  margin: 0;
  padding: .55rem 1rem;
  overflow-wrap: break-word;
}

.as-utility a {
  color: #fff;
}

.as-site-header {
  background: rgba(246, 242, 235, .96);
  border-bottom: 1px solid var(--as-line);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 20;
}

.as-header-row {
  gap: 1rem;
}

.as-brand {
  min-width: 0;
}

.as-brand-logo-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  flex: 0 0 auto;
  text-decoration: none;
}

.as-brand-logo {
  aspect-ratio: 1;
  background: #111;
  border: 1px solid rgba(21, 21, 21, .18);
  border-radius: var(--as-radius);
  box-shadow: 0 8px 16px rgba(21, 21, 21, .12);
  display: block;
  height: clamp(3.4rem, 8vw, 4.6rem);
  object-fit: cover;
  width: auto;
}

.as-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  background: linear-gradient(135deg, var(--as-red), var(--as-gold));
  color: #fff;
  border-radius: 50%;
  font-weight: 850;
}

.wp-block-navigation a {
  font-weight: 700;
}

.as-hero {
  min-height: 680px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .42) 52%, rgba(0, 0, 0, .10)),
    url("./assets/images/hero-matchday.png") center / cover no-repeat;
  color: #fff;
}

.as-hero > .wp-block-group {
  width: 100%;
}

.as-hero .alignwide {
  box-sizing: border-box;
  max-width: 100% !important;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
}

.as-hero h1 {
  font-size: 4.4rem;
  line-height: 1.04;
  max-width: 900px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.as-hero p {
  max-width: 720px;
  overflow-wrap: break-word;
}

.as-hero .is-style-outline .wp-block-button__link {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .75);
  color: #fff;
}

.as-kicker {
  color: var(--as-gold);
  font-size: .8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.as-section {
  background: var(--as-bg);
}

.as-band {
  border-top: 1px solid var(--as-line);
  border-bottom: 1px solid var(--as-line);
  background: #fff;
}

.as-card,
.as-state-panel,
.as-community-panel,
.as-match-hub {
  background: var(--as-surface);
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius);
  box-shadow: var(--as-shadow);
}

.as-card {
  min-width: 0;
}

.as-card h2,
.as-card h3 {
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.as-card h2.has-large-font-size,
.as-card h3.has-large-font-size,
.as-card .wp-block-post-title.has-large-font-size {
  font-size: 1.55rem !important;
  line-height: 1.14;
}

.as-dashboard,
.as-three-col,
.as-footer-grid {
  align-items: stretch;
}

.as-match-hub {
  margin-top: 2rem;
  padding: 2rem;
}

.as-match-score {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  margin: .75rem 0 1.25rem;
}

.as-match-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  margin: 1.25rem 0;
}

.as-match-facts div {
  border-top: 3px solid var(--as-gold);
  padding-top: .65rem;
}

.as-match-facts dt {
  color: var(--as-muted);
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.as-match-facts dd {
  margin: .2rem 0 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.as-state-panel,
.as-community-panel {
  margin-top: 1rem;
  padding: 1rem;
}

.as-button,
.wp-block-button__link {
  border-radius: var(--as-radius);
  background: var(--as-red);
  color: #fff;
  font-weight: 800;
  white-space: normal;
}

.as-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: .65rem 1rem;
  text-decoration: none;
}

.as-query-list .as-card {
  margin-bottom: 1rem;
}

.as-newsletter {
  gap: 1.5rem;
}

#bbpress-forums {
  background: var(--as-surface);
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius);
  margin-top: 1.5rem;
  padding: 1rem;
}

#bbpress-forums,
#bbpress-forums p,
#bbpress-forums li {
  font-size: 1rem;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-title a {
  color: var(--as-red);
  font-weight: 800;
}

#bbpress-forums li.bbp-forum-info,
#bbpress-forums li.bbp-topic-title {
  min-width: 0;
}

#bbpress-forums li.bbp-forum-topic-count,
#bbpress-forums li.bbp-forum-reply-count,
#bbpress-forums li.bbp-topic-voice-count,
#bbpress-forums li.bbp-topic-reply-count {
  min-width: 4.75rem;
  overflow-wrap: anywhere;
  white-space: normal;
  width: auto;
}

#bbpress-forums li.bbp-forum-freshness,
#bbpress-forums li.bbp-topic-freshness {
  min-width: 6.5rem;
  overflow-wrap: anywhere;
  white-space: normal;
  width: auto;
}

#bbpress-forums button,
#bbpress-forums input[type="submit"],
#bbpress-forums .button {
  background: var(--as-red);
  border: 0;
  border-radius: var(--as-radius);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 640px) {
  #bbpress-forums li.bbp-forum-topic-count,
  #bbpress-forums li.bbp-forum-reply-count,
  #bbpress-forums li.bbp-topic-voice-count,
  #bbpress-forums li.bbp-topic-reply-count,
  #bbpress-forums li.bbp-forum-freshness,
  #bbpress-forums li.bbp-topic-freshness {
    font-size: .875rem;
  }
}

.as-footer {
  background: var(--as-ink);
  color: #f6efe4;
}

.as-footer a {
  color: #fff;
}

.as-footer ul {
  padding-left: 1.15rem;
}

.as-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  gap: 1rem;
}

@media (max-width: 1000px) {
  .alignwide {
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(100% - 2rem) !important;
    width: calc(100% - 2rem) !important;
  }

  .as-hero *,
  .as-hero *::before,
  .as-hero *::after {
    box-sizing: border-box;
  }

  .as-hero .wp-block-group {
    max-width: 100% !important;
    min-width: 0;
  }

  .as-hero {
    min-height: 620px;
    background-position: center;
  }

  .as-hero .alignwide {
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100% !important;
  }

  .as-hero h1 {
    font-size: 2.35rem !important;
    line-height: 1.08;
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  .as-hero p.has-large-font-size {
    font-size: 1.1rem !important;
    line-height: 1.45;
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  .as-hero .wp-block-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    max-width: 100% !important;
    width: 100%;
  }

  .as-hero .wp-block-button,
  .as-hero .wp-block-button__link {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .as-site-header .wp-block-group {
    gap: .75rem;
  }

  .as-utility {
    font-size: .78rem;
    line-height: 1.35;
  }

  .as-card h2.has-large-font-size,
  .as-card h3.has-large-font-size,
  .as-card .wp-block-post-title.has-large-font-size {
    font-size: 1.35rem !important;
  }

  .as-match-hub {
    padding: 1rem;
  }

  .as-match-score {
    font-size: 3rem;
  }
}

@media (max-width: 430px) {
  .as-hero h1 {
    font-size: 2.05rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
