/* GTD CMS - Light Modern Cool Theme */
:root {
    --bg-body: #eef6ff;
    --bg-soft: #f7fbff;
    --bg-elevated: #ffffff;
    --bg-header: linear-gradient(135deg, #ecf7ff 0%, #dff2ff 55%, #d3ecff 100%);
    --bg-footer: #eaf5ff;
    --bg-admin-bar: linear-gradient(90deg, #daf0ff, #c8e7ff);

    --accent: #1479ff;
    --accent-hover: #0f67db;
    --accent-soft: #41c4ff;
    --accent-2: #00a9c7;

    --text-main: #16324a;
    --text-strong: #0d2235;
    --text-muted: #5f7890;

    --border-subtle: #d7e8f7;
    --border-strong: #bfd9ef;

    --btn-bg: linear-gradient(135deg, #1479ff 0%, #00b4db 100%);
    --btn-bg-hover: linear-gradient(135deg, #0f67db 0%, #0898b8 100%);
    --btn-text: #ffffff;

    --danger-bg: #e15656;
    --danger-bg-hover: #cc4343;

    --success-bg: #e7fff4;
    --success-text: #187b52;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-soft: 0 14px 38px rgba(20, 84, 145, 0.08);
    --shadow-card: 0 18px 44px rgba(20, 84, 145, 0.10);
    --shadow-hover: 0 24px 52px rgba(20, 84, 145, 0.16);
}

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

html, body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(65, 196, 255, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(20, 121, 255, 0.12), transparent 30%),
        linear-gradient(180deg, #f7fbff 0%, #eef6ff 45%, #e8f2fb 100%);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .18s ease, opacity .18s ease, transform .18s ease;
}

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

/* Layout */

header,
footer {
    background: var(--bg-header);
    color: var(--text-main);
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(20, 121, 255, 0.08);
    box-shadow: 0 10px 30px rgba(20, 84, 145, 0.05);
}

footer {
    background: var(--bg-footer);
    border-top: 1px solid rgba(20, 121, 255, 0.08);
    border-bottom: none;
    margin-top: 2.4rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

main {
    margin-top: 2rem;
    margin-bottom: 2.4rem;
}

/* Admin bar */

.admin-bar {
    background: var(--bg-admin-bar);
    color: var(--text-muted);
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(20, 121, 255, 0.10);
    display:block;
    width:100%;
    position: fixed;
    top: 0;
    z-index:999999;
    opacity:0.65;
}
.admin-bar:hover {
    opacity:1;
    transition:all 0.9s;
}
.admin-bar strong {
    color: var(--text-strong);
}

.admin-bar a {
    color: var(--accent);
    margin-right: 0.75rem;
    font-weight: 600;
}

.admin-bar a:hover {
    color: var(--accent-hover);
}

/* Header */

header h1 {
    font-size: 1.7rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-strong);
}

header h1 a {
    color: var(--text-strong);
}

header h1::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0, #8fe7ff 20%, #3dc6ff 48%, #1479ff 100%);
    box-shadow: 0 0 0 5px rgba(20, 121, 255, 0.08), 0 8px 18px rgba(20, 121, 255, 0.18);
}

nav {
    margin-top: 0.9rem;
}

/* Cards & content */

.card {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.7rem 1.8rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.page-header {
    margin-bottom: 1.6rem;
}

.page-header h2 {
    font-size: 1.7rem;
    margin-bottom: 0.35rem;
    color: var(--text-strong);
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.post {
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(246,251,255,0.98) 100%);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(191, 217, 239, 0.85);
    position: relative;
    overflow: hidden;
}

.post::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(65, 196, 255, 0.14), transparent 26%),
        radial-gradient(circle at bottom left, rgba(20, 121, 255, 0.08), transparent 28%);
    pointer-events: none;
}

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

.post h2,
.post h3 {
    margin-bottom: 0.35rem;
    font-size: 1.45rem;
    line-height: 1.35;
    color: var(--text-strong);
    position: relative;
    z-index: 1;
}

.post h2 a,
.post h3 a {
    color: var(--text-strong);
}

.post h2 a:hover,
.post h3 a:hover {
    color: var(--accent);
}

.post-meta,
.post > p[style] {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
}

.post img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(191, 217, 239, 0.9);
    box-shadow: 0 10px 26px rgba(20, 84, 145, 0.10);
    position: relative;
    z-index: 1;
}

.post-excerpt,
.post > p:not([style]) {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Home + category archive: imagine mică în dreapta */

.post-list > .post,
.container > h2 + .post {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-areas:
        "title thumb"
        "meta thumb"
        "excerpt thumb"
        "button thumb";
    column-gap: 1.3rem;
    align-items: start;
}

.post-list > .post h3,
.post-list > .post h2,
.container > h2 + .post h3,
.container > h2 + .post h2 {
    grid-area: title;
}

.post-list > .post .post-meta,
.post-list > .post > p[style],
.container > h2 + .post .post-meta,
.container > h2 + .post > p[style] {
    grid-area: meta;
}

.post-list > .post img,
.container > h2 + .post img {
    grid-area: thumb;
    width: 220px;
    height: 145px;
    object-fit: cover;
    margin: 0;
    justify-self: end;
}

.post-list > .post .post-excerpt,
.post-list > .post > p:not([style]),
.container > h2 + .post .post-excerpt,
.container > h2 + .post > p:not([style]) {
    grid-area: excerpt;
    margin-bottom: 0.9rem;
}

.post-list > .post .btn,
.container > h2 + .post .btn {
    grid-area: button;
    justify-self: start;
    margin-top: 0;
}

/* Single content */

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

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

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 1.4rem;
    margin-bottom: 0.55rem;
    font-weight: 700;
    color: var(--text-strong);
}

.post-content ul,
.post-content ol {
    margin-left: 1.4rem;
    margin-bottom: 1rem;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 16px;
}

/* Forms */

form label {
    display: block;
    margin-top: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text-muted);
}

form input[type="text"],
form input[type="password"],
form textarea,
form select,
form input[type="file"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.98rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: 0 2px 8px rgba(20, 84, 145, 0.04);
}

form input[type="file"] {
    padding: 0.55rem 0.55rem;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form textarea:focus,
form select:focus {
    border-color: rgba(20, 121, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(20, 121, 255, 0.10);
    background: #ffffff;
}

form textarea {
    min-height: 200px;
    resize: vertical;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: background .18s ease, transform .10s ease, box-shadow .18s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(20, 121, 255, 0.18);
}

.btn:hover {
    background: var(--btn-bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(20, 121, 255, 0.24);
    color: #fff;
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    background: rgba(20, 121, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(20, 121, 255, 0.18);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(20, 121, 255, 0.14);
    color: var(--accent-hover);
}

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

.btn-danger:hover {
    background: var(--danger-bg-hover);
    box-shadow: 0 10px 22px rgba(225, 86, 86, 0.22);
}

/* Flash messages */

.flash {
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.94rem;
    border: 1px solid transparent;
}

.flash-error {
    background: #fff1f1;
    color: #a93838;
    border-color: #f4c5c5;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: #bde9d2;
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.93rem;
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

th,
td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid #e5f0f9;
}

th {
    background: #f1f8ff;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.79rem;
    letter-spacing: 0.06em;
}

tr:hover td {
    background: rgba(20, 121, 255, 0.03);
}

/* Footer */

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

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

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

/* Code blocks */

.code-block-wrapper {
    position: relative !important;
    display: block;
    margin: 1.5rem 0;
    overflow: visible !important;
}

.code-block-wrapper pre.code-block {
    margin: 0;
    background: #0f1b2a;
    color: #e8f6ff;
    padding: 1rem;
    border-radius: 14px;
    overflow-x: auto;
    font-family: Consolas, Monaco, "Courier New", monospace;
    white-space: pre;
    border: 1px solid #1b3856;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.code-block-wrapper .code-copy-btn {
    position: absolute !important;
    top: 0.6rem;
    right: 0.8rem;
    z-index: 50 !important;
    font-size: 0.8rem;
    padding: 0.32rem 0.7rem;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, background .15s ease;
}

.code-block-wrapper:hover .code-copy-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0);
}

.code-block-wrapper .code-copy-btn:hover {
    background: rgba(255,255,255,0.22);
}

/* Navigation */

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    position: relative;
}

.main-nav .nav-link,
.main-nav .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(20, 121, 255, 0.10);
    border-radius: 999px;
    background: rgba(255,255,255,0.68);
    color: var(--text-strong);
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 6px 16px rgba(20, 84, 145, 0.06);
}

.main-nav .nav-link:hover,
.main-nav .nav-dropdown-toggle:hover,
.main-nav .nav-link:focus,
.main-nav .nav-dropdown-toggle:focus {
    background: #ffffff;
    border-color: rgba(20, 121, 255, 0.22);
    outline: none;
    box-shadow: 0 10px 24px rgba(20, 84, 145, 0.10);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 12px;
}

.nav-dropdown-toggle {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.nav-caret {
    margin-left: 8px;
    font-size: 12px;
    color: var(--accent);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 8px;
    margin-top: 0;
    border-radius: 16px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(20, 121, 255, 0.12);
    box-shadow: 0 18px 38px rgba(20, 84, 145, 0.14);
    z-index: 9999;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus {
    background: rgba(20, 121, 255, 0.08);
    color: var(--accent-hover);
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }
}

/* Responsive */

@media (max-width: 900px) {
    .post-list > .post,
    .container > h2 + .post {
        grid-template-columns: 1fr 180px;
    }

    .post-list > .post img,
    .container > h2 + .post img {
        width: 180px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.35rem;
    }

    .card,
    .post {
        padding: 1.2rem 1.15rem;
    }

    .main-nav {
        gap: 8px;
    }

    .main-nav .nav-link,
    .main-nav .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown {
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .nav-dropdown::after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        margin-top: 8px;
        min-width: 100%;
    }

    .post-list > .post,
    .container > h2 + .post {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "meta"
            "thumb"
            "excerpt"
            "button";
    }

    .post-list > .post img,
    .container > h2 + .post img {
        width: 100%;
        height: auto;
        max-height: 240px;
        justify-self: stretch;
        margin-bottom: 0.4rem;
    }

    footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
}


.post.single-post{display:block;}
.honeypot-field{position:absolute!important;left:-9999px!important;opacity:0!important;pointer-events:none!important;}
.post-toc{margin:1.2rem 0 1.5rem;padding:1rem 1.1rem;background:#f4faff;border:1px solid #d9ebfa;border-radius:16px;box-shadow:0 10px 24px rgba(20,84,145,.06);}
.post-toc-title{font-size:1rem;font-weight:800;color:var(--text-strong);margin-bottom:.75rem;}
.post-toc-list{list-style:none;margin:0;padding:0;}
.post-toc-list li{margin:.35rem 0;}
.post-toc-list li.toc-h3{padding-left:14px;}
.post-toc-list li.toc-h4{padding-left:28px;}
.post-toc-list a{color:var(--accent);text-decoration:none;font-weight:600;}
.post-toc-list a:hover{color:var(--accent-hover);text-decoration:underline;}
.post-content h2[id],.post-content h3[id],.post-content h4[id]{scroll-margin-top:90px;}
.pagination{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 10px;}
.pagination-link{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 14px;border-radius:999px;background:#fff;border:1px solid #cfe3f5;color:#1479ff;text-decoration:none;font-weight:700;box-shadow:0 8px 18px rgba(20,84,145,.08);}
.pagination-link:hover{background:#f2f9ff;}
.pagination-link.is-active{background:linear-gradient(135deg,#1479ff 0%,#00b4db 100%);color:#fff;border-color:transparent;}
.error-404-box{text-align:center;padding:2.2rem 1.5rem;margin-bottom:2rem;}
.error-404-badge{display:inline-flex;align-items:center;justify-content:center;min-width:92px;height:92px;margin-bottom:1rem;border-radius:50%;background:linear-gradient(135deg,#1479ff 0%,#00b4db 100%);color:#fff;font-size:2rem;font-weight:800;box-shadow:0 18px 34px rgba(20,121,255,.22);}
.error-404-title{font-size:2rem;line-height:1.2;margin-bottom:.8rem;color:var(--text-strong);}
.error-404-text{max-width:700px;margin:0 auto 1.2rem;color:var(--text-muted);font-size:1.05rem;}
.error-404-actions{margin-top:1rem;}
.error-404-latest{margin-top:1.5rem;}
.error-404-latest h2{margin-bottom:1rem;color:var(--text-strong);font-size:1.4rem;}
/* content_edit.php - formular mai lat */
.container .card {
    width: calc(100vw - 24px);
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.container .card form {
    width: 100%;
}

.container .card .form-row,
.container .card textarea,
.container .card input[type="text"],
.container .card input[type="file"],
.container .card select {
    width: 100%;
    max-width: 100%;
}

.container .card textarea {
    min-height: 520px;
}

.tox.tox-tinymce {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .container .card {
        width: calc(100vw - 16px);
        max-width: none !important;
        padding: 14px !important;
        border-radius: 24px;
    }

    .container .card textarea {
        min-height: 60vh;
    }

    .tox.tox-tinymce {
        min-height: 60vh !important;
    }
}
.site-branding {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.site-branding-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-title {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-strong);
}

.site-description {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.site-logo {
    width: 156px;
    height: 156px;
    object-fit: contain;
    border-radius: 14px;
    display: block;
}

.site-logo-fallback {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    background: radial-gradient(circle at 35% 35%, #ffffff 0, #8fe7ff 20%, #3dc6ff 48%, #1479ff 100%);
    box-shadow: 0 0 0 5px rgba(20, 121, 255, 0.08), 0 8px 18px rgba(20, 121, 255, 0.18);
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .site-branding-link {
        gap: 10px;
    }

    .site-logo {
        width: 48px;
        height: 48px;
    }

    .site-title {
        font-size: 1.45rem;
    }

    .site-description {
        font-size: 0.75rem;
    }
}



/* Admin: photo gallery fields */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.admin-gallery-item {
    background: #f8fbff;
    border: 1px solid #dbe9f5;
    border-radius: 16px;
    padding: 12px;
}

.admin-gallery-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 10px;
}

.admin-gallery-item input[type="text"] {
    width: 100%;
    margin-bottom: 8px;
}

.admin-gallery-delete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #5f7890;
}

.gallery-new-alt-row + .gallery-new-alt-row {
    margin-top: 8px;
}

/* Front: photo gallery mosaic */
.photo-gallery-section {
    margin-top: 1.8rem;
}

.photo-gallery-section h3 {
    margin-bottom: 1rem;
}

.photo-gallery-mosaic {
    columns: 3 220px;
    column-gap: 14px;
}

.photo-gallery-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 84, 145, 0.10);
    transition: transform .18s ease, box-shadow .18s ease;
}

.photo-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(20, 84, 145, 0.16);
}

.photo-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 14, 24, 0.94);
    z-index: 999999;
    display: none;
}

.gallery-lightbox.is-open {
    display: block;
}

.gallery-lightbox-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 12px 24px;
    box-sizing: border-box;
}

.gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.gallery-lightbox-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-lightbox-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery-lightbox-inner {
        padding: 72px 8px 20px;
    }

    .gallery-lightbox-image {
        max-width: 100%;
        max-height: calc(100vh - 110px);
        border-radius: 10px;
    }

    .gallery-lightbox-close {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }

    .gallery-lightbox-caption {
        font-size: 0.9rem;
        bottom: 10px;
    }
}

.gallery-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, transform .18s ease;
}

.gallery-lightbox-nav:hover {
    background: rgba(255,255,255,.26);
}

.gallery-lightbox-prev {
    left: 16px;
}

.gallery-lightbox-next {
    right: 16px;
}

@media (max-width: 768px) {
    .gallery-lightbox-nav {
        width: 48px;
        height: 48px;
        font-size: 30px;
    }

    .gallery-lightbox-prev {
        left: 8px;
    }

    .gallery-lightbox-next {
        right: 8px;
    }
}


/* Zona comentarii */
.comments-section {
    margin-top: 2rem;
    padding: 0 10px;
}

.comments-shell {
    background: linear-gradient(180deg, #f4faff 0%, #edf7ff 100%);
    border: 1px solid #d8eaf8;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(20, 84, 145, 0.08);
}

.comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.comments-title {
    margin: 0;
    color: var(--text-strong);
}

.comments-count {
    color: var(--text-muted);
    font-weight: 600;
}

.comments-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comments-list-wrap {
    margin-top: 16px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comments-empty {
    margin-top: 10px;
    color: var(--text-muted);
}

.comment-item {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dbe9f5;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(20, 84, 145, 0.06);
}

.comment-meta {
    color: #5f7890;
    font-size: 0.92rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.comment-body {
    color: #16324a;
    line-height: 1.7;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.comment-overlay.is-open {
    display: block !important;
}

.comment-overlay[hidden] {
    display: none !important;
}

.comment-overlay-backdrop {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(4px);
    background: rgba(8, 14, 24, 0.72);
    z-index: 1;
}

.comment-overlay-dialog {
    position: fixed !important;
    inset: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    z-index: 2;
}

.comment-overlay-content {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.comment-overlay-content .form-row,
.comment-overlay-content input[type="text"],
.comment-overlay-content textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-overlay-content textarea {
    min-height: 220px;
    resize: vertical;
}

.comment-overlay-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #0f2740;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 1000001;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.comment-overlay-close:hover {
    background: #f2f8ff;
}
body.comment-overlay-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .comment-overlay-dialog {
        padding: 8px;
    }

    .comment-overlay-content {
        width: 100%;
        max-height: calc(100vh - 16px);
        padding: 18px 14px;
        border-radius: 18px;
    }

    .comment-overlay-content textarea {
        min-height: 180px;
    }
}
.legal-notice-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 999998;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.legal-notice-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.legal-notice-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d9e8f6;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(20, 84, 145, 0.16);
    padding: 16px;
}

.legal-notice-banner__text {
    color: #16324a;
    line-height: 1.6;
    font-size: 0.96rem;
}

.legal-notice-banner__text a {
    font-weight: 700;
    text-decoration: underline;
}

.legal-notice-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.legal-notice-banner__close {
    cursor: pointer;
}

@media (max-width: 768px) {
    .legal-notice-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .legal-notice-banner__inner {
        padding: 14px;
        border-radius: 16px;
    }

    .legal-notice-banner__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .legal-notice-banner__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.post-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    color: #5f7890;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.share-inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.share-inline__label {
    color: #5f7890;
    font-weight: 600;
}

.share-btn-inline {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #cfe3f5;
    border-radius: 8px;
    background: #ffffff;
    color: #1479ff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.share-btn-inline:hover {
    background: #1479ff;
    color: #ffffff;
    border-color: #1479ff;
}
.product-form-box {
    margin-bottom: 1.5rem;
    background: #f8fbff;
    border: 1px solid #dbe9f5;
    border-radius: 18px;
    padding: 18px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-form-box form {
    width: 100%;
    max-width: 100%;
}

.product-form-box .form-row {
    width: 100%;
    min-width: 0;
}

.product-form-box input[type="text"],
.product-form-box input[type="file"],
.product-form-box textarea,
.product-form-box select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-form-box textarea {
    min-height: 180px;
    resize: vertical;
}

.product-form-box {
    display: none;
}

.product-form-box:target {
    display: block;
}
.video-embed{
    position:relative;
    width:100%;
    max-width:100%;
    aspect-ratio:16/9;
    margin:1rem 0;
    overflow:hidden;
    border-radius:12px;
    background:#000;
}

.video-embed iframe{
    width:100%;
    height:100%;
    border:0;
    display:block;
}
html,
body {
    overscroll-behavior-y: contain;
}

/* GTD themes v2 — shared accessible mobile navigation */
.gtd-header-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.gtd-header-top .site-branding{min-width:0}
.gtd-mobile-menu-toggle{display:none;align-items:center;justify-content:center;gap:10px;flex:0 0 auto;min-height:44px;padding:9px 15px;border:1px solid #b9d2e8;border-radius:13px;background:#fff;color:#143a60;font:700 14px/1.2 system-ui,sans-serif;cursor:pointer;box-shadow:0 5px 15px rgba(16,50,86,.08);-webkit-tap-highlight-color:transparent}
.gtd-mobile-menu-toggle:focus-visible,.main-nav a:focus-visible,.main-nav button:focus-visible{outline:3px solid #2582e7;outline-offset:3px}
.gtd-menu-icon{display:flex;width:20px;flex-direction:column;gap:4px}
.gtd-menu-icon>span{display:block;width:20px;height:2px;border-radius:4px;background:currentColor;transition:transform .22s ease,opacity .18s ease}
.gtd-mobile-menu-toggle.is-open .gtd-menu-icon>span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.gtd-mobile-menu-toggle.is-open .gtd-menu-icon>span:nth-child(2){opacity:0}
.gtd-mobile-menu-toggle.is-open .gtd-menu-icon>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.gtd-blog-intro,.gtd-blog-list-heading{display:none}
@media(max-width:768px){
  body>header{position:relative;z-index:100}
  body>header .gtd-header-top{align-items:center;gap:8px}
  .gtd-header-top .site-branding{flex:1 1 auto;margin:0;min-width:0}
  .gtd-header-top .site-branding-link{max-width:100%;min-width:0}
  .gtd-header-top .site-branding-text{min-width:0}
  .gtd-header-top .site-title{font-size:clamp(1.04rem,4.8vw,1.45rem);overflow-wrap:anywhere;line-height:1.18}
  .gtd-header-top .site-description{font-size:.69rem;line-height:1.3}
  .gtd-mobile-menu-toggle{display:inline-flex}
  body>header .main-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:5px;max-height:0;margin:0;padding:0 10px;opacity:0;visibility:hidden;overflow:hidden;pointer-events:none;transform:translateY(-6px);transition:max-height .32s ease,padding .25s ease,opacity .22s ease,transform .25s ease,visibility 0s linear .32s}
  body>header .main-nav.is-open{max-height:min(75vh,900px);margin-top:10px;padding:12px;opacity:1;visibility:visible;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;transform:translateY(0);border:1px solid rgba(51,94,143,.13);border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 14px 30px rgba(19,52,89,.1);transition:max-height .32s ease,padding .25s ease,opacity .22s ease,transform .25s ease}
  body>header .main-nav>.nav-link,body>header .main-nav>.nav-dropdown,body>header .main-nav .nav-dropdown-toggle{width:100%;max-width:100%;margin:0}
  body>header .main-nav>.nav-dropdown{display:block;padding:0}
  body>header .main-nav .nav-link,body>header .main-nav .nav-dropdown-toggle{min-height:45px;justify-content:space-between;padding:12px 14px;border-radius:10px;box-shadow:none;font-size:.94rem;text-align:left}
  body>header .main-nav .nav-dropdown::after{display:none}
  body>header .main-nav .nav-dropdown-menu{position:static;display:none;min-width:0;max-width:100%;margin:5px 0 0;padding:5px;box-shadow:none;overflow:visible;white-space:normal}
  body>header .main-nav .nav-dropdown.open .nav-dropdown-menu{display:block}
  body>header .main-nav .nav-dropdown-link{white-space:normal;overflow-wrap:anywhere;min-height:43px}
  body .blog-layout{min-width:0}
  body .blog-main,body .blog-sidebar{min-width:0}
}
@media(prefers-reduced-motion:reduce){.gtd-mobile-menu-toggle .gtd-menu-icon>span,body>header .main-nav{transition:none!important}}
@media(max-width:768px){body>header .main-nav .nav-dropdown:not(.open) .nav-dropdown-menu{display:none}}

/* GTD CMS — bara admin pe mobil (fix suprapunere cu butonul Meniu)
   Bara ocupa spatiu propriu si ramane disponibila la scroll.
   Linkurile sunt pe un singur rand, derulabil orizontal cu degetul. */
@media (max-width: 768px) {
  body > .admin-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 5px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    line-height: 32px;
    opacity: 1;
  }
  body > .admin-bar a {
    display: inline-block;
    min-height: 32px;
    line-height: 32px;
    margin-right: 8px;
    vertical-align: middle;
  }
}
/* GTD CMS 4.2: pagini legacy + filtre produse mobile */
.gtd-legacy-page-body{display:block!important;visibility:visible!important;opacity:1!important;min-height:1.5em;overflow-wrap:anywhere;max-width:100%}
.gtd-legacy-page-body img,.gtd-legacy-page-body video,.gtd-legacy-page-body iframe{max-width:100%;height:auto}
.gtd-legacy-page-body table{display:block;max-width:100%;overflow-x:auto}
.gtd-products-archive{width:100%;max-width:100%;overflow:visible}
.gtd-filter-options [hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* GTD CMS 4.5 shortcode output */
.gtd-shortcode{margin:1.25rem 0}.gtd-shortcode-info-box{padding:1rem 1.2rem;border:1px solid #bfd5f0;border-left:4px solid #2d6cdf;border-radius:12px;background:#f2f7ff}.gtd-shortcode-info-box h3{margin:.1rem 0 .5rem}.gtd-shortcode-info-box p{margin:.3rem 0}
