/*
 * Stash Theme — Main Stylesheet
 * Version: 1.0.0
 *
 * Structură:
 * 1.  CSS Reset & Base
 * 2.  CSS Custom Properties (variabile - suprascrise de Redux via inline style)
 * 3.  Layout & Grid
 * 4.  Typography
 * 5.  Butoane
 * 6.  Header
 * 7.  Navigare
 * 8.  Mobile Menu
 * 9.  Hero / Page Header
 * 10. Blog & Cards
 * 11. Single Post
 * 12. Sidebar & Widgets
 * 13. Footer
 * 14. Paginare
 * 15. Formulare
 * 16. Preloader
 * 17. Back to Top
 * 18. 404
 * 19. Utilitare
 * 20. Animații
 */

/* =============================================================
   1. CSS RESET & BASE
   ============================================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--stash-body-font, 'Open Sans', sans-serif);
    font-size: var(--stash-body-size, 16px);
    line-height: var(--stash-body-lh, 1.7);
    color: var(--stash-body-color, #444444);
    background-color: var(--stash-body-bg, #ffffff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--stash-primary, #0066cc);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--stash-secondary, #ff6b35);
}

ul, ol {
    list-style: none;
}

/* =============================================================
   2. CSS CUSTOM PROPERTIES (fallback-uri — suprascrise de Redux)
   ============================================================= */

:root {
    --stash-primary:        #0066cc;
    --stash-secondary:      #ff6b35;
    --stash-accent:         #00c896;
    --stash-body-bg:        #ffffff;
    --stash-body-color:     #444444;
    --stash-heading-color:  #111111;
    --stash-border-color:   #e8e8e8;
    --stash-body-font:      'Open Sans', sans-serif;
    --stash-heading-font:   'Montserrat', sans-serif;
    --stash-body-size:      16px;
    --stash-body-lh:        1.7;
    --stash-h1-size:        48px;
    --stash-h2-size:        36px;
    --stash-h3-size:        28px;
    --stash-container:      1200px;
    --stash-header-height:  80px;
    --stash-transition:     0.25s ease;
    --stash-radius:         6px;
    --stash-shadow:         0 4px 20px rgba(0,0,0,0.08);
    --stash-shadow-hover:   0 8px 40px rgba(0,0,0,0.15);
}

/* =============================================================
   3. LAYOUT & GRID
   ============================================================= */

.stash-container {
    max-width: var(--stash-container, 1200px);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.stash-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Coloane */
.stash-col-12 { flex: 0 0 100%; max-width: 100%; }
.stash-col-8  { flex: 0 0 calc(66.666% - 15px); max-width: calc(66.666% - 15px); }
.stash-col-6  { flex: 0 0 calc(50% - 15px); max-width: calc(50% - 15px); }
.stash-col-4  { flex: 0 0 calc(33.333% - 15px); max-width: calc(33.333% - 15px); }
.stash-col-3  { flex: 0 0 calc(25% - 15px); max-width: calc(25% - 15px); }

/* Page Wrap */
.stash-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.stash-main {
    min-width: 0; /* previne overflow în grid */
}

/* Wrapper conținut principal cu padding */
.stash-page-wrap,
.stash-single-wrap,
.stash-archive-wrap,
.stash-blog-wrap,
.stash-search-wrap {
    padding: 60px 0;
}

/* =============================================================
   4. TYPOGRAPHY
   ============================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--stash-heading-font, 'Montserrat', sans-serif);
    color: var(--stash-heading-color, #111111);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

h1 { font-size: var(--stash-h1-size, 48px); }
h2 { font-size: var(--stash-h2-size, 36px); }
h3 { font-size: var(--stash-h3-size, 28px); }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* Conținut articol */
.stash-entry-content h1,
.stash-entry-content h2,
.stash-entry-content h3,
.stash-entry-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.stash-entry-content ul,
.stash-entry-content ol {
    list-style: initial;
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.stash-entry-content blockquote {
    border-left: 4px solid var(--stash-primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: #f8f9fa;
    border-radius: 0 var(--stash-radius) var(--stash-radius) 0;
    font-style: italic;
    font-size: 1.1em;
}

.stash-entry-content pre {
    background: #1e1e1e;
    color: #9cdcfe;
    padding: 20px;
    border-radius: var(--stash-radius);
    overflow-x: auto;
    margin-bottom: 1.2em;
}

.stash-entry-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.stash-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2em;
}

.stash-entry-content table th,
.stash-entry-content table td {
    border: 1px solid var(--stash-border-color);
    padding: 10px 14px;
    text-align: left;
}

.stash-entry-content table th {
    background: #f5f5f5;
    font-weight: 700;
}

/* =============================================================
   5. BUTOANE
   ============================================================= */

.stash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--stash-radius);
    font-family: var(--stash-heading-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--stash-transition);
    text-decoration: none;
    white-space: nowrap;
}

.stash-btn-primary {
    background-color: var(--stash-primary);
    color: #ffffff;
    border-color: var(--stash-primary);
}

.stash-btn-primary:hover {
    background-color: transparent;
    color: var(--stash-primary);
}

.stash-btn-secondary {
    background-color: var(--stash-secondary);
    color: #ffffff;
    border-color: var(--stash-secondary);
}

.stash-btn-secondary:hover {
    background-color: transparent;
    color: var(--stash-secondary);
}

.stash-btn-outline {
    background: transparent;
    color: var(--stash-primary);
    border-color: var(--stash-primary);
}

.stash-btn-outline:hover {
    background-color: var(--stash-primary);
    color: #ffffff;
}

/* =============================================================
   6. HEADER
   ============================================================= */

.stash-header-wrap {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--stash-header-bg, #ffffff);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all var(--stash-transition);
}

.stash-header-sticky {
    position: sticky;
}

.stash-header-transparent {
    position: absolute;
    background: transparent;
    box-shadow: none;
}

.stash-header-transparent.stash-header-scrolled {
    position: fixed;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stash-header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    height: var(--stash-header-height, 80px);
}

/* Logo */
.stash-logo-wrap {
    flex-shrink: 0;
}

.stash-logo-wrap a {
    display: flex;
    align-items: center;
}

.stash-logo-wrap img {
    max-height: calc(var(--stash-header-height, 80px) - 20px);
    width: auto;
}

.stash-site-name {
    font-family: var(--stash-heading-font);
    font-size: 24px;
    font-weight: 800;
    color: var(--stash-heading-color);
    letter-spacing: -0.5px;
}

.stash-site-tagline {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Header Right */
.stash-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    flex-shrink: 0;
}

.stash-search-toggle,
.stash-mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--stash-heading-color);
    display: flex;
    align-items: center;
    transition: color var(--stash-transition);
}

.stash-search-toggle:hover,
.stash-mobile-toggle:hover {
    color: var(--stash-primary);
}

/* Cart Icon */
.stash-cart-icon {
    position: relative;
    color: var(--stash-heading-color);
    display: flex;
    align-items: center;
}

.stash-cart-icon:hover { color: var(--stash-primary); }

.stash-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--stash-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Search Bar */
.stash-search-bar {
    border-top: 1px solid var(--stash-border-color);
    background: #f9f9f9;
    padding: 16px 0;
}

.stash-search-bar .stash-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stash-search-bar[hidden] {
    display: none;
}

.stash-search-bar .search-form {
    flex: 1;
    display: flex;
    gap: 8px;
}

.stash-search-bar .search-field {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--stash-border-color);
    border-radius: var(--stash-radius);
    font-size: 15px;
}

.stash-search-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    padding: 4px;
}

/* =============================================================
   7. NAVIGARE DESKTOP
   ============================================================= */

.stash-main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.stash-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.stash-menu > li {
    position: relative;
}

.stash-menu > li > a {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    font-family: var(--stash-heading-font);
    font-weight: 600;
    font-size: 14px;
    color: var(--stash-heading-color);
    border-radius: 4px;
    transition: all var(--stash-transition);
    white-space: nowrap;
}

.stash-menu > li > a:hover,
.stash-menu > li.current-menu-item > a,
.stash-menu > li.current-menu-ancestor > a {
    color: var(--stash-primary);
    background: rgba(0, 102, 204, 0.06);
}

/* Dropdown */
.stash-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border-radius: var(--stash-radius);
    box-shadow: var(--stash-shadow-hover);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--stash-transition);
    list-style: none;
    border: 1px solid var(--stash-border-color);
    z-index: 999;
}

.stash-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stash-menu .sub-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--stash-heading-color);
    transition: all var(--stash-transition);
}

.stash-menu .sub-menu li a:hover {
    color: var(--stash-primary);
    background: #f5f8ff;
    padding-left: 24px;
}

/* Hamburger */
.stash-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.stash-hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all var(--stash-transition);
}

.stash-mobile-toggle[aria-expanded="true"] .stash-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.stash-mobile-toggle[aria-expanded="true"] .stash-hamburger span:nth-child(2) {
    opacity: 0;
}
.stash-mobile-toggle[aria-expanded="true"] .stash-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================================
   8. MOBILE MENU
   ============================================================= */

.stash-mobile-toggle {
    display: none;
}

.stash-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--stash-transition);
}

.stash-mobile-overlay.is-visible {
    opacity: 1;
}

/* =============================================================
   9. TOPBAR
   ============================================================= */

.stash-topbar {
    font-size: 13px;
    padding: 8px 0;
    color: rgba(255,255,255,0.8);
}

.stash-topbar a { color: rgba(255,255,255,0.8); }
.stash-topbar a:hover { color: #fff; }

.stash-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =============================================================
   10. BLOG & CARDS
   ============================================================= */

/* Grid de articole */
.stash-posts-grid {
    display: grid;
    gap: 30px;
}

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

.stash-blog-standard .stash-posts-grid {
    grid-template-columns: 1fr;
}

.stash-blog-masonry .stash-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
}

/* Card */
.stash-post-card {
    background: #fff;
    border-radius: calc(var(--stash-radius) * 2);
    overflow: hidden;
    box-shadow: var(--stash-shadow);
    transition: box-shadow var(--stash-transition), transform var(--stash-transition);
}

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

.stash-post-thumb {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.stash-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.stash-post-card:hover .stash-post-thumb img {
    transform: scale(1.05);
}

.stash-post-body {
    padding: 24px;
}

.stash-post-cats {
    margin-bottom: 10px;
}

.stash-post-cats a {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--stash-primary);
    background: rgba(0, 102, 204, 0.08);
    padding: 3px 10px;
    border-radius: 30px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.stash-post-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.stash-post-title a {
    color: var(--stash-heading-color);
}

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

/* Meta */
.stash-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.stash-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stash-post-meta a { color: #888; }
.stash-post-meta a:hover { color: var(--stash-primary); }

.stash-post-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Butoane standard în articole */
.stash-read-more {
    font-size: 14px;
    padding: 8px 20px;
}

/* Archive Header */
.stash-archive-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--stash-border-color);
}

.stash-archive-title { margin-bottom: 8px; }

.stash-archive-description {
    color: #666;
    font-size: 16px;
}

/* =============================================================
   11. SINGLE POST
   ============================================================= */

.stash-single-post {}

.stash-single-thumb {
    margin-bottom: 36px;
    border-radius: calc(var(--stash-radius) * 2);
    overflow: hidden;
    box-shadow: var(--stash-shadow);
}

.stash-single-thumb img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.stash-single-header {
    margin-bottom: 32px;
}

.stash-single-title {
    font-size: clamp(28px, 4vw, var(--stash-h1-size, 48px));
    margin-bottom: 16px;
    line-height: 1.2;
}

.stash-single-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--stash-border-color);
}

.stash-post-tags a {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    margin-right: 4px;
    margin-bottom: 4px;
    transition: all var(--stash-transition);
}

.stash-post-tags a:hover {
    background: var(--stash-primary);
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: calc(var(--stash-radius) * 2);
}

.nav-previous, .nav-next { flex: 1; }
.nav-next { text-align: right; }

.nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 4px;
}

.nav-title { font-weight: 700; color: var(--stash-heading-color); }

/* Meta read time */
.stash-meta-read-time {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 12px;
}

/* =============================================================
   12. SIDEBAR & WIDGETS
   ============================================================= */

.stash-sidebar-col {
    min-width: 0;
}

.widget {
    margin-bottom: 36px;
    padding: 24px;
    background: #fff;
    border-radius: calc(var(--stash-radius) * 2);
    box-shadow: var(--stash-shadow);
}

.widget:last-child { margin-bottom: 0; }

.widget-title span {
    display: block;
    font-family: var(--stash-heading-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--stash-heading-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--stash-primary);
}

.widget ul { list-style: none; }
.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #555; }
.widget ul li a:hover { color: var(--stash-primary); }

/* Search widget */
.widget_search .search-form {
    display: flex;
    gap: 8px;
}

.widget_search .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--stash-border-color);
    border-radius: var(--stash-radius);
    font-size: 14px;
}

.widget_search .search-submit {
    padding: 10px 18px;
    background: var(--stash-primary);
    color: #fff;
    border: none;
    border-radius: var(--stash-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--stash-transition);
}

.widget_search .search-submit:hover {
    background: var(--stash-secondary);
}

/* =============================================================
   13. FOOTER
   ============================================================= */

.stash-footer-wrap {
    margin-top: auto;
}

.stash-footer-widgets {
    padding: 60px 0 40px;
}

.stash-footer-cols {
    gap: 30px;
}

.stash-footer-cols-4 .stash-footer-col { flex: 1; min-width: 200px; }
.stash-footer-cols-3 .stash-footer-col { flex: 1; min-width: 200px; }
.stash-footer-cols-2 .stash-footer-col { flex: 0 0 calc(50% - 15px); }
.stash-footer-cols-1 .stash-footer-col { flex: 0 0 100%; }

/* Footer Widget Overrides */
.stash-footer-wrap .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.stash-footer-wrap .widget-title span {
    color: #ffffff;
    border-color: var(--stash-primary);
}

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

.stash-footer-wrap .widget a:hover {
    color: #ffffff;
}

.stash-footer-wrap .widget ul li {
    border-color: rgba(255,255,255,0.08);
}

/* Footer Bottom */
.stash-footer-bottom {
    padding: 20px 0;
}

.stash-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.stash-copyright {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.stash-footer-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.stash-footer-menu a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.stash-footer-menu a:hover { color: #fff; }

/* Social Icons */
.stash-social-icons {
    display: flex;
    gap: 12px;
}

.stash-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--stash-transition);
}

.stash-social-icon:hover {
    background: var(--stash-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* =============================================================
   14. PAGINARE
   ============================================================= */

.stash-pagination {
    margin-top: 50px;
}

.stash-pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.stash-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--stash-radius);
    border: 1px solid var(--stash-border-color);
    font-weight: 600;
    font-size: 14px;
    color: var(--stash-heading-color);
    transition: all var(--stash-transition);
}

.stash-pagination .page-numbers:hover,
.stash-pagination .page-numbers.current {
    background: var(--stash-primary);
    border-color: var(--stash-primary);
    color: #fff;
}

.stash-pagination .page-numbers.dots {
    border: none;
    cursor: default;
}

/* =============================================================
   15. FORMULARE
   ============================================================= */

.stash-no-results { padding: 60px 20px; text-align: center; }
.stash-no-results h2 { margin-bottom: 16px; }
.stash-no-results p { color: #666; margin-bottom: 24px; }

.search-form {
    display: flex;
    gap: 8px;
}

.search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--stash-border-color);
    border-radius: var(--stash-radius);
    font-size: 15px;
    font-family: var(--stash-body-font);
    outline: none;
    transition: border-color var(--stash-transition);
}

.search-field:focus {
    border-color: var(--stash-primary);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}

.search-submit {
    padding: 12px 22px;
    background: var(--stash-primary);
    color: #fff;
    border: none;
    border-radius: var(--stash-radius);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--stash-heading-font);
    transition: background var(--stash-transition);
}

.search-submit:hover { background: var(--stash-secondary); }

/* Page Links (paginare în conținut) */
.stash-page-links {
    margin: 24px 0;
    font-weight: 600;
}

/* =============================================================
   16. PRELOADER
   ============================================================= */

.stash-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.stash-preloader.is-loaded {
    opacity: 0;
    visibility: hidden;
}

.stash-spinner {
    width: 48px;
    height: 48px;
}

.stash-spinner-ring {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--stash-primary);
    border-radius: 50%;
    animation: stash-spin 0.8s linear infinite;
}

.stash-preloader-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f0f0f0;
}

.stash-preloader-fill {
    height: 100%;
    background: var(--stash-primary);
    animation: stash-progress 1.5s ease-in-out infinite;
}

/* =============================================================
   17. BACK TO TOP
   ============================================================= */

.stash-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--stash-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--stash-transition);
}

.stash-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stash-back-to-top:hover {
    background: var(--stash-secondary);
    transform: translateY(-3px);
}

/* =============================================================
   18. PAGINA 404
   ============================================================= */

.stash-404-wrap {
    padding: 80px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.stash-404-code {
    font-size: clamp(100px, 20vw, 180px);
    font-weight: 900;
    font-family: var(--stash-heading-font);
    color: var(--stash-primary);
    line-height: 1;
    opacity: 0.15;
    margin-bottom: -20px;
}

.stash-404-image {
    margin-bottom: 30px;
}

.stash-404-image img {
    max-height: 280px;
    margin: 0 auto;
}

.stash-404-title {
    font-size: clamp(24px, 4vw, 40px);
    margin-bottom: 16px;
}

.stash-404-description {
    color: #666;
    font-size: 17px;
    margin-bottom: 30px;
}

.stash-404-search {
    margin-top: 36px;
}

.stash-404-search p {
    color: #888;
    margin-bottom: 12px;
}

/* =============================================================
   19. UTILITARE
   ============================================================= */

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

.stash-page-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--stash-border-color);
}

.stash-page-title {
    margin-bottom: 0;
}

/* Alignments WP */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto 16px; display: block; }
.alignwide { margin-left: -60px; margin-right: -60px; }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

/* =============================================================
   20. ANIMAȚII
   ============================================================= */

@keyframes stash-spin {
    to { transform: rotate(360deg); }
}

@keyframes stash-progress {
    0%   { width: 0; margin-left: 0; }
    50%  { width: 80%; margin-left: 0; }
    100% { width: 0; margin-left: 100%; }
}

@keyframes stash-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stash-post-card {
    animation: stash-fade-in 0.4s ease both;
}

/* =============================================================
   RESPONSIVE — BREAKPOINTS
   ============================================================= */

/* Tablet — max 1024px */
@media (max-width: 1024px) {
    .stash-col-8 { flex: 0 0 60%; max-width: 60%; }
    .stash-col-4 { flex: 0 0 calc(40% - 30px); max-width: calc(40% - 30px); }
    .stash-blog-grid .stash-posts-grid,
    .stash-blog-masonry .stash-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile — max 768px */
@media (max-width: 768px) {
    :root {
        --stash-h1-size: 32px;
        --stash-h2-size: 26px;
        --stash-h3-size: 22px;
        --stash-header-height: 65px;
    }

    /* Mobile Nav — slide in din stânga */
    .stash-mobile-toggle {
        display: flex;
    }

    .stash-main-nav {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 999;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 40px;
        overflow-y: auto;
        box-shadow: var(--stash-shadow-hover);
        transition: left var(--stash-transition);
    }

    .stash-main-nav.is-open {
        left: 0;
    }

    .stash-mobile-overlay {
        display: block;
        pointer-events: none;
    }

    .stash-mobile-overlay.is-visible {
        pointer-events: all;
    }

    .stash-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .stash-menu > li { width: 100%; }
    .stash-menu > li > a {
        padding: 12px 8px;
        font-size: 16px;
        border-bottom: 1px solid var(--stash-border-color);
        border-radius: 0;
    }

    .stash-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        border-radius: 0;
        display: none;
    }

    .stash-menu > li.is-open > .sub-menu {
        display: block;
    }

    /* Layout Mobile — full width pentru tot */
    .stash-col-8,
    .stash-col-6,
    .stash-col-4,
    .stash-col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .stash-row { gap: 20px; }

    .stash-blog-grid .stash-posts-grid,
    .stash-blog-masonry .stash-posts-grid {
        grid-template-columns: 1fr;
    }

    .stash-footer-cols-4 .stash-footer-col,
    .stash-footer-cols-3 .stash-footer-col,
    .stash-footer-cols-2 .stash-footer-col {
        flex: 0 0 100%;
    }

    .stash-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .stash-footer-menu { justify-content: center; }
    .stash-social-icons { justify-content: center; }

    .stash-back-to-top {
        bottom: 16px;
        right: 16px;
    }

    .alignwide, .alignfull {
        margin-left: 0;
        margin-right: 0;
    }

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

/* Mobile mic — max 480px */
@media (max-width: 480px) {
    .stash-container { padding: 0 16px; }
    .stash-page-wrap,
    .stash-single-wrap,
    .stash-archive-wrap,
    .stash-blog-wrap { padding: 40px 0; }
}
