/*
Theme Name: August
Theme URI:
Author: Dan
Description: Blog personal cu fonturi elegante si mod intunecat.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: august
*/

@import url('https://fonts.googleapis.com/css2?family=Lobster+Two:ital@0;1&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Ubuntu:wght@300;400;700&display=swap');

:root {
    --bg:           #fdfaf6;
    --bg-card:      #ffffff;
    --text:         #2c2c2c;
    --text-muted:   #777777;
    --accent:       #b85c38;
    --border:       rgba(100, 100, 100, 0.18);
    --shadow:       0 3px 8px -2px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 28px rgba(0,0,0,0.14), 0 3px 8px rgba(0,0,0,0.07);
    --radius:       14px;
    --radius-sm:    8px;
    --font-title:   'Lobster Two', cursive;
    --font-head:    'Ubuntu', sans-serif;
    --font-body:    'Times New Roman', Times, serif;
    --font-desc:    'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
    --bg:           #1a1a1a;
    --bg-card:      #242424;
    --text:         #e8e0d5;
    --text-muted:   #999999;
    --accent:       #d4845e;
    --border:       rgba(200, 200, 200, 0.10);
    --shadow:       0 3px 8px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.20);
    --shadow-hover: 0 10px 28px rgba(0,0,0,0.55), 0 3px 8px rgba(0,0,0,0.30);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Reading progress bar ── */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

.admin-bar #reading-progress-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #reading-progress-bar {
        top: 46px;
    }
}

/* ── Animatii ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .post-card { animation: none !important; }
    .post-card:hover { transform: none !important; }
}

/* ── Layout ── */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-layout {
    margin: 0 auto;
    padding: 0 2rem;
}

.layout-full {
    max-width: 960px;
}

.layout-sidebar-right,
.layout-sidebar-left {
    max-width: 1280px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.layout-sidebar-left {
    grid-template-columns: 280px 1fr;
}

.layout-sidebar-left .sidebar-area {
    order: -1;
}

.content-area {
    min-width: 0;
}

/* ── Header ── */
.site-header {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 65%);
}

.site-branding {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

.site-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    color: var(--accent);
    letter-spacing: 1px;
    line-height: 1.1;
}

.site-title a {
    color: inherit;
}

.site-title a:hover {
    text-decoration: none;
    opacity: 0.85;
}

.site-description {
    font-family: var(--font-desc);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.3rem;
    letter-spacing: 0.2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ── Navigatie ── */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ── Iconite retele sociale ── */
.social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.25s ease;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
    text-decoration: none;
}

/* ── Dark mode toggle ── */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.2s;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Lista articole ── */
.posts-list {
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1.8rem 2rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
    animation: fadeUp 0.6s ease both;
}

.post-card::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 7%;
    right: 7%;
    height: 9px;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.20) 0%, transparent 72%);
    pointer-events: none;
}

[data-theme="dark"] .post-card::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.55) 0%, transparent 72%);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.post-card:nth-child(1) { animation-delay: 0.04s; }
.post-card:nth-child(2) { animation-delay: 0.11s; }
.post-card:nth-child(3) { animation-delay: 0.18s; }
.post-card:nth-child(4) { animation-delay: 0.25s; }
.post-card:nth-child(5) { animation-delay: 0.32s; }

/* ── Placeholder imagine (fara featured image) ── */
.post-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1.8rem -2rem 1.5rem -2rem;
    height: 220px;
    border-radius: 2px 2px 0 0;
    font-family: var(--font-title);
    font-size: 5.5rem;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    letter-spacing: 2px;
    user-select: none;
    text-decoration: none;
    transition: filter 0.35s ease;
}

.post-card:hover .post-card-placeholder {
    filter: brightness(1.1);
}

.post-placeholder-single {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 5rem);
    margin: 1.5rem -2.5rem 2.5rem -2.5rem;
    height: 300px;
    font-family: var(--font-title);
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    user-select: none;
}

/* ── Imagine featured in card ── */
.post-card-image-link {
    display: block;
    margin: -1.8rem -2rem 1.5rem -2rem;
    overflow: hidden;
    border-radius: 2px 2px 0 0;
}

.post-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.05);
}

/* ── Meta articol ── */
.post-meta {
    font-family: var(--font-head);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
}

.post-card h2 {
    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.post-card h2 a {
    color: var(--text);
    transition: color 0.2s;
}

.post-card h2 a:hover {
    color: var(--accent);
    text-decoration: none;
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 20px;
    padding: 0.35rem 1.1rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.read-more:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

/* ── Articol single ── */
.post-single {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin: 2.5rem 0;
    position: relative;
}

.post-single::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 7%;
    right: 7%;
    height: 9px;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.20) 0%, transparent 72%);
    pointer-events: none;
}

[data-theme="dark"] .post-single::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.55) 0%, transparent 72%);
}

.post-single .post-title {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.post-single .page-title {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--text);
}

.post-single .post-meta {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.post-featured-image {
    width: calc(100% + 5rem);
    margin: 1.5rem -2.5rem 2.5rem -2.5rem;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.post-content {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.9;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3 {
    font-family: var(--font-head);
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.post-content blockquote {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1.8rem 1.5rem 3.2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-family: var(--font-desc);
    font-size: 1.1rem;
    color: var(--text-muted);
    position: relative;
}

.post-content blockquote::before {
    content: '\201C';
    position: absolute;
    left: 0.9rem;
    top: 0.4rem;
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
    opacity: 0.55;
}

/* ── Cod si liste ── */
.post-content ul,
.post-content ol {
    margin: 0 0 1.5rem 1.8rem;
}

.post-content li {
    margin-bottom: 0.4rem;
}

.post-content code {
    font-family: 'Courier New', Courier, monospace;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.15rem 0.45rem;
    font-size: 0.88em;
}

.post-content pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.3rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    box-shadow: var(--shadow);
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
}

/* ── Tag-uri ── */
.post-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-head);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.post-tags a {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.post-tags a:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ── Share buttons ── */
.share-section {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.share-label {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.share-btn-fb:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn-wa:hover  { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn-x:hover   { background: #000;    border-color: #000;    color: #fff; }

.share-btn-copy:hover,
.share-btn-copy.share-copied {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ── Navigare intre articole ── */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
}

.post-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    max-width: 48%;
    line-height: 1.4;
    transition: all 0.25s;
}

.post-navigation a:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
    background: var(--bg-card);
}

/* ── Arhiva ── */
.archive-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0 0;
    box-shadow: var(--shadow);
}

.archive-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.archive-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.4rem;
    font-family: var(--font-desc);
    font-style: italic;
}

/* ── Bara laterala ── */
.sidebar-area {
    padding-top: 2.5rem;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.widget:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.widget-title {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 2.5rem;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

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

.widget ul li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-head);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

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

.widget ul li a {
    color: var(--text);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.widget ul li a::before {
    content: '›';
    color: var(--accent);
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 1.15em;
    line-height: 1;
    flex-shrink: 0;
}

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

.widget ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ── Widget search ── */
.widget .search-form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.widget .search-form:focus-within {
    border-color: var(--accent);
}

.widget .search-form label {
    flex: 1;
    display: flex;
}

.widget .search-field {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text);
    padding: 0.6rem 0.9rem;
    font-family: var(--font-head);
    font-size: 0.88rem;
    outline: none;
}

.widget .search-field::placeholder {
    color: var(--text-muted);
}

.widget .search-submit {
    border: none;
    border-left: 1px solid var(--border);
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.widget .search-submit:hover {
    opacity: 0.82;
}

/* ── Count badge (categorii / arhive) ── */
.widget-count {
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-family: var(--font-head);
    font-weight: 700;
    padding: 0.1rem 0.48rem;
    border-radius: 20px;
    line-height: 1.6;
    flex-shrink: 0;
    opacity: 0.85;
}

/* ── Widget-uri subsol ── */
.footer-widgets {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0;
}

.footer-widgets-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.footer-widget-col .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* ── Related posts ── */
.related-posts {
    margin-top: 2rem;
}

.related-posts-title {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    text-decoration: none;
}

.related-card-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.related-card:hover .related-card-image {
    transform: scale(1.05);
}

.related-card-placeholder {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    transition: filter 0.3s ease;
}

.related-card:hover .related-card-placeholder {
    filter: brightness(1.1);
}

.related-card-body {
    padding: 0.9rem 1rem;
}

.related-card-meta {
    font-family: var(--font-head);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.35rem;
}

.related-card-title {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    transition: color 0.2s;
}

.related-card:hover .related-card-title {
    color: var(--accent);
}

@media (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .related-card-image,
    .related-card-placeholder {
        height: 160px;
    }
}

/* ── Comentarii ── */
.comments-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
}

.comments-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border);
}

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

.comment-body {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s;
}

.comment-body:hover {
    border-color: var(--accent);
}

.comment-author b {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
}

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

.comment-metadata {
    font-family: var(--font-head);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

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

.comment-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.comment-reply-link {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
}

#reply-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 1.2rem;
    color: var(--text);
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.comment-form label {
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text);
    letter-spacing: 0.3px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form input[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.8rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.2s;
}

.comment-form input[type="submit"]:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── Pagina 404 ── */
.error-404-wrap {
    max-width: 580px;
    margin: 5rem auto 4rem;
    text-align: center;
    padding: 0 1.5rem;
    animation: fadeUp 0.6s ease both;
}

.error-404-number {
    font-family: var(--font-title);
    font-size: clamp(7rem, 20vw, 13rem);
    line-height: 1;
    color: transparent;
    background: linear-gradient(135deg, var(--accent) 0%, #e8a87c 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: -4px;
    margin-bottom: 0.2rem;
    user-select: none;
    filter: drop-shadow(0 4px 18px rgba(184, 92, 56, 0.25));
}

.error-404-title {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.error-404-desc {
    font-family: var(--font-desc);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.2rem;
}

.error-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 20px;
    padding: 0.5rem 1.4rem;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-home:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.error-404-search {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.error-404-search:focus-within {
    border-color: var(--accent);
}

.error-404-search input {
    background: none;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    width: 200px;
}

.error-404-search button {
    background: none;
    border: none;
    border-left: 1.5px solid var(--border);
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.2s;
}

.error-404-search button:hover {
    color: var(--accent);
}

.error-404-recent {
    border-top: 1px solid var(--border);
    padding-top: 1.8rem;
    text-align: left;
}

.error-404-recent-label {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.error-404-recent li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.error-404-recent li:last-child {
    border-bottom: none;
}

.error-404-recent a {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.2s;
    flex: 1;
}

.error-404-recent a:hover {
    color: var(--accent);
    text-decoration: none;
}

.error-404-date {
    font-family: var(--font-head);
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.footer-name {
    font-family: var(--font-title);
    font-size: 1.15rem;
    background: linear-gradient(135deg, #9b59b6 0%, #3d7fcc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Paginare ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 2rem;
    font-family: var(--font-head);
}

.pagination a,
.pagination span {
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
    background: var(--bg-card);
}

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}

/* ── Hamburger meniu ── */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text);
    transition: all 0.2s;
}

.menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .layout-sidebar-right,
    .layout-sidebar-left {
        grid-template-columns: 1fr;
    }

    .layout-sidebar-left .sidebar-area {
        order: 0;
    }
}

@media (max-width: 600px) {
    .site-title { font-size: 2rem; }
    .site-header { flex-direction: column; align-items: flex-start; }
    .post-single { padding: 1.5rem; }
    .post-single .post-title { font-size: 1.6rem; }
    .post-featured-image { width: calc(100% + 3rem); margin: 1.5rem -1.5rem 2rem; }

    .menu-toggle { display: block; }

    .header-right {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 10;
    }

    .main-nav.nav-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.5rem 0;
    }

    .post-card {
        padding: 1.3rem 1.5rem;
    }

    .post-card-image-link {
        margin: -1.3rem -1.5rem 1.2rem -1.5rem;
    }

    .post-card-placeholder {
        margin: -1.3rem -1.5rem 1.2rem -1.5rem;
        height: 160px;
        font-size: 4rem;
    }

    .post-placeholder-single {
        width: calc(100% + 3rem);
        margin: 1.5rem -1.5rem 2rem;
        height: 200px;
        font-size: 5.5rem;
    }

    .archive-header {
        padding: 1.5rem;
    }

    .comments-section {
        padding: 1.5rem;
    }
}
