/*
Theme Name: Adelina Dobra
Theme URI: https://adelinadobra.ro
Description: A premium, modern theme for Elena-Adelina DOBRA.
Author: Antigravity
Author URI: https://github.com/itcafe-rocks
Version: 1.1.0
Text Domain: adelina-dobra
*/

:root {
    /* Color Palette - Sophisticated & Professional */
    --primary: #2c3e50;
    --secondary: #ffffff;
    --accent: #d4af37;
    /* Gold/Professional accent */
    --accent-hover: #b8962e;
    --text-main: #333333;
    --text-light: #666666;
    --bg-soft: #fcfcfc;
    --bg-dark: #121212;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 1.25rem 3.125rem rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-main);
    background: radial-gradient(circle at top right, #fff, var(--bg-soft));
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Header */
.site-header {
    background: var(--primary);
    color: var(--secondary);
    padding: 8rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--accent), #f1c40f, var(--accent));
}

.header-content {
    max-width: 50rem;
    z-index: 2;
}

.site-header h1,
.site-header .site-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    line-height: 1.1;
}

.site-header h2 {
    font-weight: 300;
    font-size: clamp(1rem, 3vw, 1.4rem);
    opacity: 0.9;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0;
}

.header-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header-image {
    width: 15vw;
    height: 15vw;
    min-width: 7.5rem;
    min-height: 7.5rem;
    max-width: 11.25rem;
    max-height: 11.25rem;
    object-fit: cover;
    border-radius: 50%;
    border: 0.25rem solid var(--accent);
    box-shadow: var(--shadow-medium);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-image:hover {
    transform: scale(1.08) rotate(2deg);
}

.header-image.small {
    width: 4.0625rem;
    height: 4.0625rem;
    min-width: 4.0625rem;
    min-height: 4.0625rem;
    position: absolute;
    left: -0.9375rem;
    bottom: -0.3125rem;
    border: 0.25rem solid var(--secondary);
    z-index: 3;
    background: white;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.1);
    padding: 0.3125rem;
}


/* Navigation & Top Bar */
.main-navigation {
    background: rgba(212, 175, 55, 0.95);
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 0.125rem 1.25rem rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3.75rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    padding: 0;
    margin: 0;
}

.main-navigation a {
    color: var(--secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.09375rem;
    transition: all 0.3s ease;
    padding: 1.4rem 0;
    display: block;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.1875rem;
    background: var(--secondary);
    transition: width 0.3s ease;
}

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

.main-navigation a:hover {
    color: var(--secondary);
    opacity: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 1rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 1.5rem;
    height: 0.125rem;
    background: var(--secondary);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 1.5rem;
    height: 0.125rem;
    background: var(--secondary);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -0.5rem;
}

.hamburger::after {
    bottom: -0.5rem;
}

.toggled .hamburger {
    background: transparent;
}

.toggled .hamburger::before {
    transform: rotate(45deg) translate(0.3125rem, 0.375rem);
}

.toggled .hamburger::after {
    transform: rotate(-45deg) translate(0.3125rem, -0.375rem);
}

.screen-reader-text {
    border: 0;
    clip: rect(0.0625rem, 0.0625rem, 0.0625rem, 0.0625rem);
    clip-path: inset(50%);
    height: 0.0625rem;
    margin: -0.0625rem;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 0.0625rem;
}

.site-content {
    margin: -6rem auto 6rem;
    position: relative;
    z-index: 10;
}

/* Main Content Container */
.container {
    max-width: 62.5rem;
    padding: 0 2rem;
}

/* Article & Page Content */
article {
    margin-bottom: 6rem;
    animation: fadeIn 1s ease-out;
}

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

.entry-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--primary);
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(to right, var(--accent), var(--accent)) no-repeat 0 100%;
    background-size: 0 0.125rem;
    transition: background-size 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.entry-title a:hover {
    background-size: 100% 0.125rem;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0.8;
}

.entry-meta::before,
.entry-meta::after {
    content: '';
    height: 0.0625rem;
    width: 1.25rem;
    background: var(--accent);
    opacity: 0.4;
}

.entry-content {
    font-size: 1.2rem;
    color: var(--text-main);
}

.entry-content p {
    margin-bottom: 2rem;
}

.entry-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
}

.entry-content blockquote {
    border-left: 0.25rem solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 3rem 0;
    background: var(--bg-soft);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-light);
}

/* Article Grid & Single Wrapper */
.article-list,
.article-wrapper {
    display: grid;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}

.article-list {
    grid-template-columns: repeat(auto-fill, minmax(28.125rem, 1fr));
    gap: 3rem;
}

.article-list article,
.article-wrapper article {
    background: var(--secondary);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 0.0625rem solid rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-soft);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.article-list article.no-bg-padding,
.article-wrapper article.no-bg-padding,
body.hide-page-bg-padding .article-wrapper>article {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.article-list article:not(.no-bg-padding):hover,
.article-wrapper article:not(.no-bg-padding):hover {
    transform: translateY(-0.75rem);
    box-shadow: var(--shadow-medium);
    border-color: rgba(212, 175, 55, 0.3);
}

body.hide-page-bg-padding .article-wrapper>article:hover {
    transform: none !important;
    box-shadow: none !important;
}

.article-list .entry-title,
.article-wrapper .entry-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 1.5rem;
}


.read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    padding: 0.8rem 1.8rem;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.09375rem;
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    align-self: flex-start;
    gap: 0.5rem;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.625rem 1.25rem rgba(212, 175, 55, 0.3);
}

.read-more:hover::after {
    transform: translateX(0.3125rem);
}

/* Footer Styling */
.site-footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 6rem 2rem 4rem;
    margin-top: 8rem;
    text-align: center;
}

.footer-bottom {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.5;
    font-size: 0.85rem;
    letter-spacing: 0.03125rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    opacity: 0.6;
    transition: all 0.4s ease;
    padding: 0.5rem 0;
    position: relative;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.0625rem;
    background: var(--accent);
    transition: width 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary);
    opacity: 1;
}

.contact-info a:hover::after {
    width: 100%;
}

.maintenance-box {
    background: var(--bg-soft);
    padding: 8rem 4rem;
    border-radius: 2.5rem;
    text-align: center;
    border: 0.125rem dashed rgba(212, 175, 55, 0.15);
    color: var(--text-light);
    font-family: var(--font-heading);
    margin: 4rem auto;
    max-width: 50rem;
    box-shadow: inset 0 0 3.75rem rgba(0, 0, 0, 0.02);
}

.maintenance-box p {
    font-size: 1.5rem;
    max-width: 37.5rem;
    margin: 0 auto;
    line-height: 1.6;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination */
.pagination {
    grid-column: 1 / -1;
    /* Ensure pagination spans full width in grid */
    margin-top: 5rem;
    padding-top: 3rem;
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    font-size: 1rem;
}

.pagination .page-numbers.current {
    background: var(--accent);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.pagination .page-numbers:not(.current):hover {
    background: var(--secondary);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 2rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    padding: 0 1.75rem;
    /* Subtle expand effect */
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: var(--text-light);
    width: auto;
    padding: 0 0.5rem;
}


/* Responsive */
@media (max-width: 48rem) {
    .site-header {
        flex-direction: column;
        align-items: center;
    }

    .site-header h1,
    .site-header h2 {
        text-align: center;
    }

    .site-content {
        margin: 4rem auto;
    }

    .menu-toggle {
        display: block;
    }

    .nav-container {
        justify-content: flex-end;
    }

    .main-navigation ul {
        position: absolute;
        top: 3.75rem;
        left: 0;
        width: 100%;
        background: var(--accent);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.1);
    }

    .main-navigation.toggled ul {
        max-height: 31.25rem;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
        border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation a {
        padding: 1.5rem;
    }

    header,
    .site-header {
        padding: 4rem 1rem 2rem;
        /* Reduced from 8rem 1.5rem 4rem */
        gap: 1.5rem;
    }

    .site-header h1 {
        font-size: 2.2rem;
        /* Reduced from 2.8rem */
        margin-bottom: 0.25rem;
    }

    .site-header h2 {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    .site-content {
        margin: 2rem auto;
        /* Reduced from 4rem */
    }

    article {
        margin-bottom: 3rem;
        /* Reduced from 6rem global */
    }

    .header-image {
        width: 6rem;
        height: 6rem;
        min-width: 6rem;
        min-height: 6rem;
    }

    .entry-header {
        margin-bottom: 0.75rem;
        /* Drastically reduced from 1.5rem */
        padding-top: 1rem;
        /* Added to match carousel */
    }

    .entry-title {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
        /* Reduced from 0.75rem */
        line-height: 1.15;
        margin-top: 0;
        /* Align with carousel */
    }

    .entry-meta {
        margin-bottom: 0.5rem;
        /* Reduced from 1.5rem */
        font-size: 0.75rem;
    }

    .article-list article,
    .article-wrapper article {
        padding: 1.5rem;
        /* Reduced from 2rem */
        border-radius: 1rem;
    }

    .article-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* Reduced from 2rem */
    }

    .read-more {
        margin-top: 1.5rem;
        padding: 0.6rem 1.4rem;
        font-size: 0.75rem;
    }

    .site-footer {
        padding: 3rem 1rem 2rem;
        /* Reduced from 6rem 2rem 4rem */
        margin-top: 4rem;
        /* Reduced from 8rem */
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .contact-info ul {
        gap: 1rem;
        padding: 0;
    }

    .contact-info a {
        font-size: 0.8rem;
        letter-spacing: 0.1rem;
    }

    /* Mobile Pagination */
    .pagination {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .pagination .nav-links {
        padding: 0.5rem;
        gap: 0.35rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .pagination .page-numbers {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }

    /* Compact Prev/Next Buttons for Mobile */
    .pagination .nav-prev-text,
    .pagination .nav-next-text {
        display: none;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0;
        width: 2rem;
        /* Make consistent with numbers */
        height: 2rem;
        border-radius: 50%;
        /* optional: make them circular */
        font-size: 0;
        /* Hide any fallback text */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pagination .page-numbers.prev::after {
        content: '←';
        font-size: 1rem;
        color: inherit;
    }

    .pagination .page-numbers.next::after {
        content: '→';
        font-size: 1rem;
        color: inherit;
    }

}

/* Desktop Header Layout for Secondary Pages */
@media (min-width: 64rem) {
    body:not(.home) .site-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 4rem;
        padding: 8rem 5vw;
    }

    body:not(.home) .site-header .header-content {
        text-align: left;
    }

    body:not(.home) .site-header h1,
    body:not(.home) .site-header h2 {
        text-align: left;
    }

    body:not(.home) .header-image-wrapper {
        margin-top: 0;
    }
}

/* Footer Mandatory Menu */
.footer-mandatory-menu {
    margin: 3rem 0 1rem;
    padding: 0 1rem;
}

#footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

#footer-menu li {
    position: relative;
}

#footer-menu a {
    color: var(--secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

#footer-menu a:hover {
    opacity: 1;
}

/* Responsive Footer Menu */
@media (max-width: 48rem) {
    .footer-mandatory-menu {
        margin: 2rem 0 1rem;
    }

    #footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
}


/* ===== 404 Not Found Page ===== */
.not-found-page {
    text-align: center;
    padding: 4rem 2rem 6rem;
    max-width: 50rem;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

/* Illustration container */
.not-found-illustration {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.not-found-circle {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(44, 62, 80, 0.06));
    border: 2px dashed rgba(212, 175, 55, 0.2);
    animation: notFoundPulse 4s ease-in-out infinite;
}

.not-found-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* Sparkle decorations */
.not-found-sparkle {
    position: absolute;
    color: var(--accent);
    font-size: 1rem;
    animation: notFoundSparkle 3s ease-in-out infinite;
    opacity: 0.6;
}

.not-found-sparkle-1 {
    top: 0.25rem;
    right: -0.5rem;
    animation-delay: 0s;
}

.not-found-sparkle-2 {
    bottom: 0.5rem;
    left: -0.75rem;
    animation-delay: 1s;
    font-size: 0.75rem;
}

.not-found-sparkle-3 {
    top: -0.5rem;
    left: 1.5rem;
    animation-delay: 2s;
    font-size: 1.25rem;
}

@keyframes notFoundPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

@keyframes notFoundSparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.3) rotate(15deg);
        opacity: 1;
    }
}

/* Title & Description */
.not-found-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.not-found-description {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 32rem;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Actions */
.not-found-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.not-found-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.09375rem;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
}

.not-found-btn-primary {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 0.5rem 1.5rem rgba(44, 62, 80, 0.15);
}

.not-found-btn-primary:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.625rem 1.25rem rgba(212, 175, 55, 0.3);
}

/* Search */
.not-found-search {
    max-width: 28rem;
    margin: 0 auto 3.5rem;
}

.not-found-search-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.not-found-search .search-form {
    display: flex;
    gap: 0.5rem;
}

.not-found-search .search-field {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-soft);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.not-found-search .search-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.not-found-search .search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.not-found-search .search-submit:hover {
    background: var(--accent);
}

/* Recent Posts */
.not-found-recent {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 3rem;
}

.not-found-recent-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 1.75rem;
}

.not-found-recent-grid {
    display: grid;
    gap: 0.75rem;
    text-align: left;
}

.not-found-recent-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--glass);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.not-found-recent-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(212, 175, 55, 0.25);
}

.not-found-recent-date {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    white-space: nowrap;
    min-width: 5rem;
    font-weight: 600;
}

.not-found-recent-card-title {
    flex: 1;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.3;
}

.not-found-recent-arrow {
    color: var(--text-light);
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    opacity: 0.4;
}

.not-found-recent-card:hover .not-found-recent-arrow {
    transform: translateX(4px);
    color: var(--accent);
    opacity: 1;
}

/* 404 Page — Responsive */
@media (max-width: 48rem) {
    .not-found-page {
        padding: 2rem 1rem 4rem;
    }

    .not-found-circle {
        width: 9rem;
        height: 9rem;
    }

    .not-found-number {
        font-size: 3.5rem;
    }

    .not-found-illustration {
        margin-bottom: 2rem;
    }

    .not-found-description {
        font-size: 1rem;
    }

    .not-found-actions {
        flex-direction: column;
        align-items: center;
    }

    .not-found-search .search-form {
        flex-direction: column;
    }

    .not-found-recent-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 1.25rem;
    }

    .not-found-recent-arrow {
        display: none;
    }
}