/*
Theme Name: Ukr Alliance Wayback
Theme URI: https://ukr-alliance.de
Author: Ukr Alliance
Description: Static wayback theme for Ukr Alliance
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wayback
*/

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #333; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Container */
.__container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Banner */
.banner { background: #f5f5f5; padding: 40px 20px; text-align: center; margin-bottom: 40px; }
.banner__text h2 { font-size: 2.5rem; color: #1a1a1a; }

/* About Section */
.page-home__about { display: flex; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.page-home__about--logo { flex: 0 0 300px; }
.page-home__about--text { flex: 1; display: flex; gap: 40px; flex-wrap: wrap; }
.page-home__about--text-column-1,
.page-home__about--text-column-2 { flex: 1; min-width: 280px; }
.page-home__about--text h3 { font-size: 1.5rem; margin-bottom: 15px; color: #1a1a1a; }
.page-home__about--text p { margin-bottom: 15px; }

/* Contact Section */
.page-contact__container { margin-bottom: 40px; }
.page-contact__content h3 { font-size: 1.5rem; margin-bottom: 15px; color: #1a1a1a; }

/* Two Buttons */
.two-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.two-buttons__left-button,
.two-buttons__right-button { display: flex; align-items: center; gap: 10px; padding: 15px 25px; background: #0066cc; color: #fff; border-radius: 5px; transition: background 0.3s; }
.two-buttons__left-button:hover,
.two-buttons__right-button:hover { background: #0052a3; text-decoration: none; }
.two-buttons p { margin: 0; font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
    .page-home__about { flex-direction: column; }
    .page-home__about--logo { flex: none; width: 100%; text-align: center; }
    .two-buttons { flex-direction: column; }
}

/* Language Selector */
.language-selector { text-align: center; margin: 30px 0; padding: 20px; background: #f9f9f9; border-radius: 5px; }
.language-selector .lang-link { color: #0066cc; font-weight: 600; font-size: 1.1rem; }
.language-selector .lang-link:hover { color: #0052a3; text-decoration: underline; }
.language-selector .lang-separator { margin: 0 10px; color: #999; }

/* Language Sections */
.lang-section { margin-bottom: 60px; padding-bottom: 40px; border-bottom: 1px solid #eee; }
.lang-section:last-child { border-bottom: none; }

/* ==========================================================
   Content templates: archive, single, search and 404
   ========================================================== */

.site-main {
  padding: 64px 0;
}

.page-header {
  margin-bottom: 40px;
}

.page-title,
.page-content__title,
.single-post__title {
  margin: 0;
  color: #172d5c;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
}

.archive-description {
  max-width: 780px;
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.posts-list {
  display: grid;
  gap: 28px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4e8ef;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(23, 45, 92, 0.08);
}

.post-card--search {
  display: block;
}

.post-card__image {
  display: block;
  min-height: 100%;
  background: #edf2f8;
}

.post-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.post-card__content {
  padding: 30px;
}

.post-card__title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
}

.post-card__title a {
  color: #172d5c;
  text-decoration: none;
}

.post-card__title a:hover,
.post-card__title a:focus {
  color: #1b75bc;
  text-decoration: underline;
}

.post-card__meta,
.single-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  color: #667085;
  font-size: 0.9rem;
}

.post-card__type {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card__excerpt {
  margin-bottom: 20px;
  line-height: 1.65;
}

.post-card__excerpt > :last-child {
  margin-bottom: 0;
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  color: #1b75bc;
  font-weight: 700;
  text-decoration: none;
}

.post-card__link:hover,
.post-card__link:focus {
  color: #172d5c;
  text-decoration: underline;
}

.pagination {
  margin-top: 44px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  color: #172d5c;
  border: 1px solid #ccd5e1;
  text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
  color: #ffffff;
  background: #1b75bc;
  border-color: #1b75bc;
}

.single-post {
  max-width: 900px;
  margin: 0 auto;
}

.single-post__header {
  margin-bottom: 30px;
}

.single-post__thumbnail {
  margin: 0 0 36px;
}

.single-post__thumbnail img,
.page-content__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.single-post__content,
.page-content__body {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.single-post__content::after,
.page-content__body::after {
  display: block;
  clear: both;
  content: "";
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4,
.page-content__body h2,
.page-content__body h3,
.page-content__body h4 {
  margin-top: 1.7em;
  color: #172d5c;
}

.single-post__content a,
.page-content__body a {
  color: #1b75bc;
}

.single-post__footer {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid #e4e8ef;
}

.single-post__footer .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.single-post__footer .nav-previous,
.single-post__footer .nav-next {
  max-width: 48%;
}

.single-post__footer .nav-next {
  margin-left: auto;
  text-align: right;
}

.single-post__footer a {
  color: #172d5c;
  text-decoration: none;
}

.single-post__footer a:hover,
.single-post__footer a:focus {
  color: #1b75bc;
}

.nav-subtitle,
.nav-title {
  display: block;
}

.nav-subtitle {
  margin-bottom: 5px;
  color: #667085;
  font-size: 0.875rem;
}

.nav-title {
  font-weight: 700;
}

.search-empty,
.error-404 {
  max-width: 760px;
}

.search-empty {
  padding: 32px;
  background: #f5f8fc;
  border-left: 4px solid #1b75bc;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.search-form label {
  flex: 1 1 260px;
}

.search-field {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #aebccc;
  border-radius: 2px;
  font: inherit;
}

.search-submit {
  min-height: 46px;
  padding: 10px 22px;
  color: #ffffff;
  background: #1b75bc;
  border: 1px solid #1b75bc;
  border-radius: 2px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-submit:hover,
.search-submit:focus {
  background: #172d5c;
  border-color: #172d5c;
}

.error-404 {
  padding: 54px 0;
}

.error-404__code {
  margin: 0 0 8px;
  color: #f4c430;
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
}

.error-404__search {
  max-width: 600px;
  margin: 30px 0;
}

.page-links {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}

@media (max-width: 700px) {
  .site-main {
    padding: 42px 0;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card__image img {
    min-height: 200px;
  }

  .post-card__content {
    padding: 24px;
  }

  .single-post__footer .nav-links {
    display: grid;
  }

  .single-post__footer .nav-previous,
  .single-post__footer .nav-next {
    max-width: none;
  }

  .single-post__footer .nav-next {
    margin-left: 0;
    text-align: left;
  }
}

/* Language switcher */
.site-header .__container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.language-switcher {
  margin-left: auto;
}

.language-switcher__list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-switcher__list li {
  margin: 0;
  padding: 0;
}

.language-switcher__list a,
.language-switcher__list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  color: #172d5c;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.language-switcher__list a:hover,
.language-switcher__list a:focus {
  color: #1b75bc;
  text-decoration: underline;
}

.language-switcher__list .current-lang span,
.language-switcher__list .current-lang a {
  color: #1b75bc;
  border-bottom: 2px solid #f4c430;
}

@media (max-width: 700px) {
  .site-header .__container {
    flex-wrap: wrap;
    gap: 14px;
  }

  .language-switcher {
    width: 100%;
    margin-left: 0;
  }
}
