/*
 Theme Name: GeneratePress – AVA
 Theme URI: https://www.achterhoeksevolleybalacademie.nl
 Description: Minimal child theme for GeneratePress with AVA colors and block patterns.
 Author: You
 Template: generatepress
 Version: 1.0.0
*/

/* ===== Brand tokens ===== */
:root {
  --club-blue: #0065b1; /* Primary */
  --club-blue-dark: #004c85; /* Hover/active */
  --club-blue-100: #d9e8f3; /* Tint/bg */
  --text: #111827; /* Body text */
  --muted: #6b7280; /* Secondary text */
  --surface: #f3f4f6; /* Section background */
  --white: #fff;
  --red: #ad480a;
  --red-dark: #8d4315;
}

/* Base */

body {
  height: 100%;
}

body {
  color: var(--text);
}

a {
  color: var(--club-blue);
}
a:hover {
  color: var(--club-blue-dark);
}

/* Buttons (core + GenerateBlocks button lookalikes) */
.wp-block-button__link,
.button,
.gb-button {
  background: var(--club-blue);
  color: var(--white);
  border-radius: 9999px;
  padding: 12px 20px;
  font-weight: 600;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--club-blue);
  border: 2px solid currentColor;
}
.wp-block-button__link:hover,
.button:hover,
.gb-button:hover {
  background: var(--club-blue-dark);
  color: var(--white);
}

/* Sections & cards */
.section {
  padding: clamp(48px, 6vw, 96px) 0;
  background: var(--surface);
}
.section--plain {
  background: transparent;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

/* Hero */
.hero {
  background: var(--club-blue-100);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 64px);
}

/* Next-match strip */
.next-match {
  background: var(--club-blue);
  color: var(--white);
  border-radius: 16px;
  padding: 18px 22px;
}
.next-match a {
  color: var(--white);
  text-decoration: underline;
}
.next-match .btn {
  background: var(--white);
  color: var(--club-blue);
  padding: 8px 14px;
  border-radius: 9999px;
  font-weight: 700;
}
.next-match .btn:hover {
  background: #eef5ff;
}

/* Media ratios */
.ratio-16x9 {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

/* tables */
.competition-table,
.ranking-table,
.agenda-table {
  font-size: 0.75rem;
  border: collapse;
}
.agenda-table td,
.ranking-table td,
.competition table td {
  padding: 4px;
  line-height: 1.2;
}

/* Sponsor bar look & feel */
.sponsor-wrapper,
.partner-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: anchor-center;
  gap: 2.333333%;
  padding: 12px 24px;
  background-color: white;
  margin-bottom: 12px;
}

.partner-wrapper > .sponsor {
  flex: 0 0 15%;
}

.sponsor-bar {
  background: var(--club-blue-dark);
}
.sponsor-logos {
  margin: 0 20%;
  display: flex;
  justify-content: space-evenly;
}
.sponsor-logos a img {
  display: block;
  height: 70px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.sponsor-logos a:hover img {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}

/* mobile */
@media (max-width: 768px) {
  .site-header .header-image {
    width: 120px;
  }
  .separate-containers .site-main {
    margin-top: unset;
  }
  .sponsor {
    flex: 0 0 48%;
  }
}

/* desktop */
@media (min-width: 1025px) {
  .sponsor {
    flex: 0 0 22%;
  }
  .sponsor img {
    max-height: 120px;
  }
}

/* Tighten spacing on very small screens */
@media (max-width: 480px) {
  .sponsor-bar {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

/* =========================================  */
/* ------------- Global Styles -------------- */
/* =========================================  */

p {
  margin-bottom: 12px;
}

a {
  display: inline-block;
  position: relative;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

.rotate-90 {
  transform: rotate(90deg);
  transform-origin: center;
}

.color-red,
.color-red *,
.color-red:hover,
.color-red *:hover {
  color: var(--red) !important;
}

/* =========================================  */
/* ------------- Main navigation ------------ */
/* =========================================  */

.main-navigation .main-nav ul li[class*="current"] > a {
  background: var(--club-blue-dark);
  color: var(--white);
  border-radius: 0px;
}

.main-navigation .main-nav ul li a {
  line-height: 26px;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a,
.main-navigation .current-menu-ancestor > a {
  background-color: white !important;
  color: var(--text) !important;
}
.main-navigation .current-menu-ancestor .sub-menu a {
  background-color: #333 !important;
  color: white !important;
}

.main-navigation .sub-menu a {
  transition: all 400ms ease !important;
}

.main-navigation .sub-menu a:hover {
  background-color: #212121 !important;
}

.main-navigation .sub-menu a:hover::after {
  width: 0 !important;
}

.main-navigation .sub-menu {
  transition: all 250ms ease-in;
  background-color: #333;
  color: white;
}

.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu a {
  color: white !important;
}

.main-navigation a:hover {
  color: var(--text) !important;
}

.site-logo a:hover::after {
  width: 0;
}

a.generate-back-to-top:hover::after {
  width: 0 !important;
}

a:hover::after img {
  width: 0 !important;
}

/* =========================================  */
/* ------------- Trainers page --------------- */
/* =========================================  */

.trainers-list {
  text-transform: uppercase !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trainers-list * {
  text-transform: uppercase !important;
}

.trainers-list .name {
  font-size: 32px;
}

.trainers-list .content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  font-size: 16px;
}

.trainers-list .content img {
  max-width: 100%;
  width: 100%;
  min-width: 60px;
}

@media (max-width: 767px) {
  .trainers-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================  */
/* ------------- Gravity Forms -------------- */
/* =========================================  */

.gravity-form-title * {
  text-transform: uppercase !important;
}

.gform_wrapper .gform_button,
.gform_wrapper .gform_next_button,
.gform_wrapper .gform_previous_button {
  background-color: var(--red);
  color: #fff;
  border: none;
  padding: 0.75rem 1.9rem;
  font-size: 1rem;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gform_wrapper .gform_button:hover {
  background-color: var(--red-dark);
}

/* =========================================  */
/* ---------- Categories Archive ----------- */
/* =========================================  */

.site-main .container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

.category article {
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category article:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.category .inside-article * {
  text-transform: uppercase;
  text-align: center;
}

.category .inside-article a:hover {
  color: var(--red) !important;
}

.category .post-image {
  position: relative;
  overflow: hidden;
}

.category .post-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.category article:hover .post-image img {
  transform: scale(1.05);
}

.category .entry-header {
  padding: 15px 20px 5px;
}

.category .entry-title {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.category .entry-title a {
  color: #222;
  text-decoration: none;
}

.category .entry-title a:hover {
  color: #0073aa;
}

.category .entry-meta {
  font-size: 13px;
  color: #777;
}

.category .byline {
  display: none;
}

.category .entry-summary {
  display: none;
}
.category .entry-summary p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category footer.entry-meta {
  display: none;
}

@media (max-width: 1024px) {
  .category .site-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .category .site-main {
    grid-template-columns: 1fr;
  }
}

.category .page-header {
  display: none;
}

/* =========================================  */
/* ------------- Breadcrumb ---------------- */
/* =========================================  */
.custom-breadcrumb,
.custom-breadcrumb * {
  margin-top: 40px;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-size: 26px;
}
.custom-breadcrumb .current {
  color: var(--red);
}

/* =========================================  */
/* --------------- Footer ------------------- */
/* =========================================  */

.site-footer {
  margin-top: auto;
  position: static !important;
  clear: both;
  background-color: #ece9e4;
  padding: 2.5rem 1rem;
  text-align: left;
}
.site-footer .site-info {
  background-color: #ece9e4;
}

.site-footer .inside-site-info {
  background-color: #ece9e4;
  justify-content: start;
  margin-left: 100px;
}

.footer-bar .site-info::after {
  content: "";
  display: block;
  margin-top: 10px;
}

/* =========================================  */
/* --------------- Posts ------------------- */
/* =========================================  */

.site-main .entry-title {
  text-transform: uppercase;
  font-size: 26px;
}
.site-main .entry-meta {
  text-transform: uppercase;
  color: gray;
}
.site-main .entry-meta .cat-links a {
  font-size: 16px;
  color: var(--red);
}

/* =========================================  */
/* ------------- Social links --------------- */
/* =========================================  */
.post-social-links {
  display: flex;
  margin-bottom: 45px !important;
  margin-top: -20px;
  align-items: center;
  gap: 10px;
  margin-left: 50px;
}

.post-social-links .networks-list {
  display: flex;
  gap: 6px;
}
.post-social-links .networks-list a {
  color: var(--red);
}
