/*
Theme Name: VreauMeserias Blog
Theme URI: https://blog.vreaumeserias.ro/
Author: VreauMeserias.ro
Description: Lightweight classic theme for the VreauMeserias.ro blog.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vreaumeserias-blog
*/

@font-face {
  font-family: "Inter UI";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Inter-UI-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter UI";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Inter-UI-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Inter UI";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/Inter-UI-Bold.woff2") format("woff2");
}

:root {
  --vm-primary: #0f66dc;
  --vm-primary-darker: #0d55b8;
  --vm-primary-2: #ff8e88;
  --vm-primary-3: #031328;
  --vm-body: #495057;
  --vm-heading: #212529;
  --vm-muted: #6c757d;
  --vm-light: #f8f9fa;
  --vm-border: #dee2e6;
  --vm-white: #fff;
  --vm-radius: 0.3125rem;
  --vm-radius-lg: 0.625rem;
  --vm-shadow: 0 0.625rem 1.5rem rgba(0, 0, 0, 0.08);
  --vm-container: 1140px;
  --vm-reading: 760px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding-top: 72px;
  background: var(--vm-white);
  color: var(--vm-body);
  font-family: "Inter UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: var(--vm-primary);
  font-weight: 500;
  text-decoration: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(15, 102, 220, 0.35);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1.5rem;
  color: var(--vm-heading);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; line-height: 1.875rem; }
h6 { font-size: 1rem; }

p,
ul,
ol,
blockquote,
figure,
table {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.container {
  width: 100%;
  max-width: calc(var(--vm-container) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

.reading-column {
  width: 100%;
  max-width: var(--vm-reading);
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 1000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--vm-white);
  color: var(--vm-primary-3);
}

.site-header {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 72px;
  background: var(--vm-white);
  box-shadow: 0 0.05rem 1rem rgb(3 19 40 / 8%);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-branding {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.55rem;
  color: var(--vm-primary);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
}

.site-branding:hover {
  color: var(--vm-primary);
}

.site-logo {
  width: auto;
  height: 40px;
}

.site-navigation {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.primary-menu,
.site-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.primary-menu li,
.site-navigation li,
.footer-links li {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.primary-menu li::marker,
.site-navigation li::marker,
.footer-links li::marker {
  content: "";
}

.site-navigation a {
  padding: 0.5rem 0.75rem;
  color: var(--vm-primary-3);
  white-space: nowrap;
}

.site-navigation a:hover {
  color: var(--vm-primary);
}

.button,
.site-navigation .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4375rem 1.5rem;
  border: 1px solid var(--vm-primary-3);
  border-radius: var(--vm-radius);
  background: var(--vm-primary-3);
  color: var(--vm-white);
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.button:hover,
.site-navigation .button:hover {
  border-color: var(--vm-primary);
  background: var(--vm-primary);
  color: var(--vm-white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--vm-heading);
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.site-main {
  min-height: 55vh;
  padding: 6rem 0;
}

.page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-description {
  max-width: 680px;
  margin: 0 auto;
  color: var(--vm-muted);
}

.blog-home {
  padding: 0;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  border-top: 4px solid var(--vm-primary);
  background: linear-gradient(135deg, rgba(15, 102, 220, 0.13) 0%, #f8f9fa 52%, rgba(255, 142, 136, 0.18) 100%);
}

.blog-hero::after {
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(15, 102, 220, 0.07);
  content: "";
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 930px;
  text-align: center;
}

.blog-hero__eyebrow,
.audience-cta__label {
  margin-bottom: 0.75rem;
  color: var(--vm-primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin-bottom: 1rem;
}

.blog-hero__subtitle {
  max-width: 820px;
  margin: 0 auto;
  color: var(--vm-body);
  font-size: 1.125rem;
  line-height: 1.65;
}

.blog-hero__audiences {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.blog-hero__audiences span {
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(15, 102, 220, 0.2);
  border-radius: 20px;
  background: var(--vm-white);
  color: var(--vm-primary-3);
  font-size: 0.875rem;
  font-weight: 500;
}

.latest-articles {
  padding: 6rem 0;
}

.section-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-lg);
  background: var(--vm-white);
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
}

.post-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--vm-light);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 1.5rem;
}

.post-card__title {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.post-card__title a {
  color: var(--vm-heading);
}

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

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 1rem;
  color: var(--vm-muted);
  font-size: 0.875rem;
}

.post-meta a {
  color: var(--vm-primary);
}

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

.post-card__more {
  display: inline-block;
  margin-top: 0.75rem;
}

.home-post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--vm-shadow);
}

.home-post-card__image {
  aspect-ratio: 16 / 10;
}

.home-post-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef5ff, #f8f9fa);
}

.home-post-card__placeholder img {
  width: 82px;
  height: auto;
  object-fit: contain;
}

.home-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.home-post-card__category {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  color: var(--vm-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.home-post-card__title {
  font-size: 1.35rem;
}

.home-post-card__excerpt {
  flex: 1;
}

.home-post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--vm-border);
}

.home-post-card__footer time {
  color: var(--vm-muted);
  font-size: 0.8125rem;
}

.home-post-card__footer .post-card__more {
  margin-top: 0;
  white-space: nowrap;
}

.audience-cta {
  padding: 6rem 0;
  background: var(--vm-light);
}

.audience-cta__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.audience-cta__card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 3rem;
  overflow: hidden;
  border-radius: var(--vm-radius-lg);
  box-shadow: var(--vm-shadow);
}

.audience-cta__card h2 {
  margin-bottom: 0.75rem;
}

.audience-cta__card p:not(.audience-cta__label) {
  max-width: 470px;
  margin-bottom: 1.5rem;
}

.audience-cta__card--beneficiary {
  background: var(--vm-white);
}

.audience-cta__card--professional {
  background: var(--vm-primary-3);
  color: rgba(255, 255, 255, 0.8);
}

.audience-cta__card--professional h2 {
  color: var(--vm-white);
}

.audience-cta__card--professional .audience-cta__label {
  color: var(--vm-primary-2);
}

.audience-cta__card--professional .audience-cta__button {
  border-color: var(--vm-white);
  background: var(--vm-white);
  color: var(--vm-primary-3);
}

.audience-cta__card--professional .audience-cta__button:hover {
  border-color: var(--vm-primary);
  background: var(--vm-primary);
  color: var(--vm-white);
}

.pagination {
  margin-top: 3rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.page-numbers {
  min-width: 40px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius);
  text-align: center;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--vm-primary);
  background: var(--vm-primary);
  color: var(--vm-white);
}

.single-post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.single-post-header h1 {
  margin-bottom: 1rem;
}

.single-post-header .post-meta {
  justify-content: center;
}

.single-featured-image {
  margin: 0 auto 3rem;
  overflow: hidden;
  border-radius: var(--vm-radius-lg);
  box-shadow: var(--vm-shadow);
}

.entry-content {
  color: var(--vm-body);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.5rem;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--vm-primary);
  border-radius: 0 var(--vm-radius) var(--vm-radius) 0;
  background: var(--vm-light);
  color: var(--vm-heading);
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem;
  border: 1px solid var(--vm-border);
  text-align: left;
}

.entry-content figure,
.entry-content .wp-block-image {
  max-width: 100%;
}

.entry-content figcaption {
  margin-top: 0.5rem;
  color: var(--vm-muted);
  font-size: 0.875rem;
  text-align: center;
}

.post-pages {
  margin-top: 2rem;
}

.site-footer {
  padding: 6rem 0 3rem;
  background: var(--vm-primary-3);
  color: var(--vm-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--vm-white);
  font-size: 1.25rem;
  line-height: 1.875rem;
}

.footer-links,
.site-footer .menu {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.footer-links a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--vm-white);
  opacity: 0.65;
  transition: opacity 0.2s linear;
}

.footer-links a:hover {
  color: var(--vm-white);
  opacity: 1;
}

.footer-brand {
  color: var(--vm-white);
}

.footer-brand .site-logo {
  width: 58px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.7);
}

.site-info {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 1199px) {
  html { font-size: 15px; }
  .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .header-inner { position: relative; }

  .site-navigation {
    position: absolute;
    top: 72px;
    right: 24px;
    left: 24px;
    display: none;
    padding: 1rem;
    border: 1px solid var(--vm-border);
    border-radius: var(--vm-radius);
    background: var(--vm-white);
    box-shadow: var(--vm-shadow);
  }

  .site-navigation.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .site-navigation a { padding: 0.75rem; }
  .site-navigation .button { margin-top: 0.5rem; }
  .post-list { grid-template-columns: 1fr; }
  .blog-hero { padding: 4rem 0; }
  .latest-articles,
  .audience-cta { padding: 3rem 0; }
  .audience-cta__grid { grid-template-columns: 1fr; }
  .audience-cta__card { min-height: 0; padding: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .site-main { padding: 3rem 0; }
  .site-footer { padding: 3rem 0; }
}

@media (max-width: 576px) {
  html { font-size: 14px; }
  .container { padding-inline: 16px; }
  .site-branding__name { font-size: 1rem; }
  .site-navigation { right: 16px; left: 16px; }
  .blog-hero { padding: 3rem 0; }
  .blog-hero__audiences { align-items: stretch; flex-direction: column; }
  .home-post-card__footer { align-items: flex-start; flex-direction: column; }
  .audience-cta__card { padding: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .single-featured-image { margin-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
