/* ==========================================================================
   Society Connect — Styles principaux
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
    --color-primary: #C2572A;
    --color-primary-dark: #A04320;
    --color-secondary: #3D6B8C;
    --color-accent: #E8A838;

    --color-bg: #FAFAF8;
    --color-bg-alt: #F2EDE8;
    --color-text: #1A1A18;
    --color-text-muted: #6B6B60;
    --color-border: #E0D9D0;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    --font-size-base: 17px;
    --line-height-body: 1.75;
    --line-height-heading: 1.25;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    --container-width: 1180px;
    --content-width: 720px;
    --sidebar-width: 320px;
    --border-radius: 8px;
    --border-radius-lg: 16px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--line-height-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-heading);
    color: var(--color-text);
    font-weight: 700;
}

/* ---------- Utilities ---------- */
.container {
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.container--narrow {
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    clip: auto !important;
    clip-path: none;
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.section {
    padding-block: var(--space-2xl);
}

.section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--color-primary-dark);
    color: #fff;
}

.btn--secondary {
    background-color: var(--color-secondary);
    color: #fff;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-sm);
    gap: var(--space-md);
}

.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text);
    text-decoration: none;
}

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

.site-branding .custom-logo-link img {
    height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.main-navigation ul li a {
    font-weight: 600;
    color: var(--color-text);
    padding: var(--space-xs) 0;
    position: relative;
    text-decoration: none;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.25s ease;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after {
    width: 100%;
}

.main-navigation ul li.current-menu-item a {
    color: var(--color-primary);
}

/* Sub-menus */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: var(--space-xs) 0;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    z-index: 100;
}

.main-navigation ul li:hover > ul.sub-menu {
    display: flex;
}

.main-navigation ul li ul.sub-menu li a {
    padding: var(--space-xs) var(--space-md);
    display: block;
    white-space: nowrap;
}

.main-navigation ul li ul.sub-menu li a::after {
    display: none;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    left: 8px;
}

.hamburger {
    top: 19px;
}

.hamburger::before {
    content: '';
    top: -7px;
}

.hamburger::after {
    content: '';
    top: 7px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ---------- Hero ---------- */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero__overlay {
    width: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 24, 0.7) 0%, rgba(26, 26, 24, 0.4) 100%);
    padding-block: var(--space-2xl);
}

.hero__content {
    text-align: center;
    color: #fff;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: var(--space-md);
    max-width: 800px;
    margin-inline: auto;
}

.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-inline: auto;
    opacity: 0.9;
}

/* ---------- Post Cards ---------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.posts-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.post-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.post-card__link:hover {
    color: inherit;
}

.post-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

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

.post-card__image .post-category-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
}

.post-category-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.post-category-badge:hover {
    background-color: var(--color-primary-dark);
    color: #fff;
}

.post-card__body {
    padding: var(--space-md);
}

.post-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    line-height: 1.35;
}

.post-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.post-card__footer {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.post-card__footer img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.post-card__meta {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.post-card__author {
    font-weight: 600;
    color: var(--color-text);
}

.post-card__date {
    color: var(--color-text-muted);
}

/* ---------- Featured Cards ---------- */
.featured-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.featured-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.featured-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.featured-card__link:hover {
    color: inherit;
}

.featured-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.featured-card__body {
    padding: var(--space-md);
}

.featured-card__title {
    font-size: 1.3rem;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.featured-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.featured-card__meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    gap: var(--space-sm);
}

.featured-card__author {
    font-weight: 600;
    color: var(--color-text);
}

/* ---------- Categories Section ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.category-card {
    background: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.category-card__name {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.category-card__count {
    display: block;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.category-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---------- Newsletter ---------- */
.newsletter-section {
    background-color: var(--color-bg-alt);
}

.newsletter-section__inner {
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
}

.newsletter-section__text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    max-width: 350px;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ---------- Single Post ---------- */
.single-post__hero {
    max-width: var(--container-width);
    margin-inline: auto;
    margin-bottom: var(--space-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.single-post__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.single-post__header {
    margin-bottom: var(--space-xl);
}

.single-post__header .post-category-badge {
    margin-bottom: var(--space-sm);
}

.single-post__title {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.single-post__author {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.single-post__author img {
    border-radius: 50%;
}

.single-post__author .byline a {
    font-weight: 600;
    color: var(--color-text);
}

/* Article content typography */
.entry-content {
    margin-bottom: var(--space-xl);
}

.entry-content p {
    margin-bottom: var(--space-md);
}

.entry-content h2 {
    font-size: 1.8rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
    border-left: 4px solid var(--color-primary);
}

.entry-content h3 {
    font-size: 1.4rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.entry-content h4 {
    font-size: 1.15rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.entry-content a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--color-primary);
    text-decoration-style: solid;
}

.entry-content blockquote {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
    padding: var(--space-md);
    margin-block: var(--space-lg);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content code {
    background: #f0ede8;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.entry-content pre {
    background: #1A1A18;
    color: #f8f8f2;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-block: var(--space-lg);
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.entry-content li {
    margin-bottom: var(--space-xs);
}

.entry-content figure {
    margin-block: var(--space-lg);
}

.entry-content figcaption {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-xs);
}

.entry-content .wp-block-image {
    margin-block: var(--space-lg);
}

.entry-content .wp-block-image img {
    border-radius: var(--border-radius);
}

/* Tags */
.single-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.tag-link {
    display: inline-block;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-link:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Share buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    padding-block: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.share-label {
    font-weight: 600;
    color: var(--color-text);
}

.share-buttons a,
.share-buttons button {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    font-family: var(--font-body);
    text-decoration: none;
}

.share-buttons a:hover,
.share-buttons button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.copy-link-btn.copied {
    border-color: #2d8a4e;
    color: #2d8a4e;
}

/* Related posts */
.related-posts {
    background: var(--color-bg-alt);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding-block: var(--space-md);
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

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

.breadcrumb__sep {
    margin-inline: var(--space-xs);
    color: var(--color-border);
}

.breadcrumb__current {
    color: var(--color-text);
    font-weight: 600;
}

/* ---------- Archive ---------- */
.archive-header {
    background: var(--color-bg-alt);
    padding-block: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.archive-header__title {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.archive-header__description {
    color: var(--color-text-muted);
    max-width: var(--content-width);
    margin-bottom: var(--space-xs);
}

.archive-header__count {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
}

.archive-content {
    padding-bottom: var(--space-2xl);
}

.search-term {
    color: var(--color-primary);
}

/* ---------- Page ---------- */
.page-hero {
    max-width: var(--container-width);
    margin-inline: auto;
    margin-bottom: var(--space-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.page-hero__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.page-header {
    margin-bottom: var(--space-xl);
}

.page-title {
    font-size: 2.4rem;
}

/* ---------- Index / Blog with Sidebar ---------- */
.site-main__layout {
    display: flex;
    gap: var(--space-xl);
    padding-block: var(--space-xl);
}

.site-main__content {
    flex: 1;
    min-width: 0;
}

/* Post entry (index list style) */
.post-entry {
    display: flex;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.post-entry__thumbnail {
    flex-shrink: 0;
    width: 240px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-entry__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}

.post-entry__body {
    flex: 1;
}

.post-entry__header {
    margin-bottom: var(--space-xs);
}

.post-entry__title {
    font-size: 1.3rem;
    margin-top: var(--space-xs);
}

.post-entry__title a {
    color: var(--color-text);
    text-decoration: none;
}

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

.post-entry__excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.post-entry__meta {
    display: flex;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.post-entry__meta .byline a {
    font-weight: 600;
    color: var(--color-text);
}

/* ---------- 404 ---------- */
.error-404 {
    text-align: center;
    padding-block: var(--space-2xl);
}

.error-404__title {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.error-404__text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 500px;
    margin-inline: auto;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto var(--space-lg);
}

.error-404__recent {
    text-align: left;
    max-width: 400px;
    margin: var(--space-xl) auto 0;
}

.error-404__recent h2 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.error-404__recent ul {
    list-style: none;
    padding: 0;
}

.error-404__recent li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
}

.error-404__recent li a {
    color: var(--color-secondary);
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.widget {
    margin-bottom: var(--space-lg);
    background: #fff;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget li a {
    color: var(--color-text);
    text-decoration: none;
}

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

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.footer-widgets {
    padding-block: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-widget-area .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-area .widget-title {
    color: #fff;
    border-bottom-color: var(--color-primary);
}

.footer-widget-area .widget li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget-area .widget li a:hover {
    color: var(--color-accent);
}

.footer-widget-area .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    padding-block: var(--space-md);
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
}

.footer-navigation a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-navigation a:hover {
    color: var(--color-accent);
}

.site-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.social-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--space-sm);
}

.social-navigation a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.social-navigation a:hover {
    color: var(--color-accent);
}

/* ---------- Comments ---------- */
.comments-area {
    padding-block: var(--space-xl);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
}

.comment-list .comment .children {
    list-style: none;
    padding-left: var(--space-lg);
    margin-top: var(--space-md);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.comment-metadata a {
    color: var(--color-text-muted);
}

.comment-content p {
    margin-bottom: var(--space-xs);
}

.reply a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.no-comments {
    color: var(--color-text-muted);
    font-style: italic;
}

.comment-respond {
    margin-top: var(--space-xl);
}

.comment-respond .comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.comment-form .form-submit .submit {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comment-form .form-submit .submit:hover {
    background-color: var(--color-primary-dark);
}

/* ---------- Search Form ---------- */
.search-form {
    display: flex;
    gap: var(--space-xs);
}

.search-form .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-form .search-submit {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-form .search-submit:hover {
    background-color: var(--color-primary-dark);
}

/* ---------- Pagination ---------- */
.nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-xs);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-links .page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.nav-links .page-numbers.current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Page links (multi-page posts) */
.page-links {
    font-weight: 600;
    margin-top: var(--space-lg);
}

/* ---------- No Results ---------- */
.no-results {
    text-align: center;
    padding-block: var(--space-2xl);
}

.no-results__title {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
}

.no-results__text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 500px;
    margin-inline: auto;
}

.no-results .search-form {
    max-width: 400px;
    margin-inline: auto;
}

/* ---------- Skip Link ---------- */
.skip-link:focus {
    z-index: 10001;
    color: var(--color-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .posts-grid,
    .posts-grid--3,
    .featured-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-widgets__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        box-shadow: var(--shadow-md);
        padding: var(--space-md);
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul li a {
        display: block;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation ul li a::after {
        display: none;
    }

    .main-navigation ul li ul.sub-menu {
        position: static;
        box-shadow: none;
        padding-left: var(--space-md);
        display: flex;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1.05rem;
    }

    .hero {
        min-height: 50vh;
    }

    .posts-grid,
    .posts-grid--3,
    .featured-posts__grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-main__layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .post-entry {
        flex-direction: column;
    }

    .post-entry__thumbnail {
        width: 100%;
    }

    .single-post__title {
        font-size: 1.8rem;
    }

    .entry-content h2 {
        font-size: 1.4rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input[type="email"] {
        max-width: 100%;
        width: 100%;
    }

    .footer-widgets__grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-navigation ul {
        justify-content: center;
    }

    .share-buttons {
        justify-content: center;
    }

    .section {
        padding-block: var(--space-xl);
    }

    .section__title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 1.8rem;
    }
}
