/*
Theme Name: Find Your Seat Blog
Theme URI: https://findyourseat.de/blog
Description: Child theme for Kadence — matches the look & feel of findyourseat.de.
Author: Find Your Seat
Author URI: https://findyourseat.de
Template: kadence
Version: 1.0.0
Text Domain: findyourseat-blog
*/

/* ==========================================================================
   @font-face — Self-hosted (DSGVO compliant, no Google CDN)
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('./fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('./fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/playfair-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/playfair-display-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/playfair-display-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  /* Colors */
  --color-background: hsl(35 25% 93%);
  --color-foreground: hsl(25 30% 35%);
  --color-primary: hsl(10 25% 60%);
  --color-primary-hover: hsl(10 22% 50%);
  --color-secondary-bg: hsl(35 22% 88%);
  --color-muted: hsl(25 25% 45%);
  --color-border: hsl(35 20% 82%);
  --color-card-bg: hsl(35 20% 97%);
  --color-footer-bg: hsl(25 35% 28%);
  --color-footer-text: hsl(35 25% 95%);

  /* Fonts */
  --font-body: 'Montserrat', sans-serif;
  --font-heading: 'Playfair Display', serif;

  /* Spacing */
  --radius: 0.75rem;
  --radius-card: 1.5rem;
  --radius-button: 0.875rem;
  --container-max: 80rem;
  --content-max: 45rem;

  /* Shadows */
  --shadow-soft: 0 4px 20px -4px hsl(25 30% 45% / 0.1);
  --shadow-card: 0 8px 30px -8px hsl(25 30% 45% / 0.12);
  --shadow-elevated: 0 16px 50px -12px hsl(25 30% 45% / 0.18);
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Override Kadence body/wrapper styles */
.site {
  background-color: var(--color-background);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-foreground);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

/* ==========================================================================
   Layout Container
   ========================================================================== */

.fys-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.fys-content-narrow {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.fys-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.fys-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.fys-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-foreground);
}

.fys-header__brand:hover {
  color: var(--color-primary);
}

.fys-header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fys-header__heart {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.fys-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fys-header__blog-label {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-muted);
}

.fys-header__back-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  transition: all 0.2s ease;
}

.fys-header__back-link:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

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

.fys-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.fys-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.fys-footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.fys-footer__links a {
  color: var(--color-footer-text);
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.fys-footer__links a:hover {
  opacity: 1;
  color: var(--color-footer-text);
}

.fys-footer__copy {
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0;
}

/* ==========================================================================
   Blog Archive / Grid
   ========================================================================== */

.fys-archive {
  padding: 4rem 0;
}

.fys-archive__title {
  text-align: center;
  margin-bottom: 3rem;
}

.fys-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .fys-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fys-archive {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .fys-archive {
    padding: 8rem 0;
  }
}

/* ==========================================================================
   Post Card
   ========================================================================== */

.fys-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.fys-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.fys-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.fys-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fys-card:hover .fys-card__image {
  transform: scale(1.03);
}

.fys-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fys-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.fys-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.fys-card__title a {
  color: var(--color-foreground);
}

.fys-card__title a:hover {
  color: var(--color-primary);
}

.fys-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.fys-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.fys-card__read-more {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.85rem;
}

.fys-card__read-more:hover {
  color: var(--color-primary-hover);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.fys-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.fys-pagination a,
.fys-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.fys-pagination a {
  background-color: var(--color-card-bg);
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
}

.fys-pagination a:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.fys-pagination .current {
  background-color: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
}

/* ==========================================================================
   Single Post / Article
   ========================================================================== */

.fys-single {
  padding: 2rem 0 4rem;
}

@media (min-width: 768px) {
  .fys-single {
    padding: 3rem 0 6rem;
  }
}

.fys-single__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.fys-single__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
}

.fys-single__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fys-single__featured-image {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.fys-single__featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content Typography */
.fys-single__content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.fys-single__content p {
  margin-bottom: 1.5rem;
}

.fys-single__content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.fys-single__content h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.fys-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.fys-single__content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background-color: var(--color-secondary-bg);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-muted);
}

.fys-single__content blockquote p:last-child {
  margin-bottom: 0;
}

.fys-single__content ul,
.fys-single__content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.fys-single__content li {
  margin-bottom: 0.5rem;
}

.fys-single__content pre {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 2rem 0;
}

.fys-single__content code {
  font-size: 0.9em;
  background-color: var(--color-secondary-bg);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

.fys-single__content pre code {
  background: none;
  padding: 0;
}

/* Author Box */
.fys-author-box {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--color-secondary-bg);
  border-radius: var(--radius-card);
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.fys-author-box__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fys-author-box__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.fys-author-box__bio {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.fys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.fys-btn--primary {
  background: linear-gradient(135deg, hsl(10 25% 60%), hsl(10 28% 65%));
  color: white;
}

.fys-btn--primary:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
  color: white;
}

.fys-btn--outline {
  background: transparent;
  border: 2px solid hsl(25 30% 35% / 0.2);
  color: var(--color-foreground);
}

.fys-btn--outline:hover {
  background-color: var(--color-secondary-bg);
  border-color: hsl(25 30% 35% / 0.35);
}

/* ==========================================================================
   Kadence Overrides
   ========================================================================== */

/* Remove Kadence default header/footer */
.wp-site-header,
#masthead,
.site-header,
header.site-header {
  display: none !important;
}

.wp-site-footer,
#colophon,
.site-footer,
footer.site-footer {
  display: none !important;
}

/* Remove Kadence sidebar */
.content-area {
  width: 100% !important;
  max-width: 100% !important;
}

.site-container .site-inner-wrap {
  max-width: 100%;
}

.primary-sidebar,
.widget-area {
  display: none !important;
}

/* Override Kadence entry styles */
.entry-content-wrap {
  padding: 0 !important;
  max-width: 100% !important;
}

/* ==========================================================================
   No-Thumbnail Fallback
   ========================================================================== */

.fys-card__no-thumbnail {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-secondary-bg), var(--color-border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 2rem;
  opacity: 0.5;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
  .fys-header__back-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  .fys-header__logo-text {
    font-size: 1.25rem;
  }

  .fys-card__body {
    padding: 1.25rem;
  }

  .fys-author-box {
    flex-direction: column;
    text-align: center;
  }
}
