:root {
    --bg: #0f1115;
    --card: #151822;
    --muted: #9aa3b2;
    --text: #eef2f6;
    --accent: #60a5fa;
    --accent2: #6ee7b7;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
    --maxw: 1100px;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    background: linear-gradient(180deg, #0b0d12 0, #0f1115 100%);
    color: var(--text);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px 20px
}

.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.pad {
    padding: 20px
}

.muted {
    color: var(--muted)
}

.two {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px
}

@media (max-width: 900px) {
    .two {
        grid-template-columns:1fr
    }
}

.logo {
    background-image: url("/assets/logo_mic.png");
    width: 36px;
    height: 36px;
    display: flex
}

/* Modal (shared for all pages) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, .9);
    padding: 20px;
    box-sizing: border-box;
}

.footer {
    margin-top: 32px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: var(--muted);
    text-align: center
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
}

#caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    font-size: 1.1em;
}

.modal-content, #caption {
    animation: zoom .4s;
}

@keyframes zoom {
    from {
        transform: scale(.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #bbb;
}

header {
    position: sticky;
    top: 0;
    background: rgba(15, 17, 21, .75);
    backdrop-filter: blur(8px);
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, .04)
}

/* Modal navigation buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.nav-btn:hover {
    background: rgba(0, 0, 0, .5)
}

.nav-btn.prev {
    left: 18px
}

.nav-btn.next {
    right: 18px
}

.nav-btn:focus {
    outline: 2px solid rgba(110, 231, 183, .5)
}

/* Shared gallery containers */
.gallery, .section-media, .recycle-media {
    display: grid;
    gap: 16px;
    grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
}

.gallery img, .section-media img, .recycle-media img {
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(255, 255, 255, .08);
}

.gallery img:hover, .section-media img:hover, .recycle-media img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-switch {
    display: flex;
    gap: 10px;
    align-items: center
}

.lang-switch a {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid transparent
}

.lang-switch a.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #0b0f19;
    border-color: rgba(255, 255, 255, .1)
}

.lang-switch a:hover {
    border-color: rgba(255, 255, 255, .2)
}

#scrollTopButton {
    display: none; /* Ascuns implicit */
    position: fixed; /* Rămâne pe loc la scroll */
    bottom: 20px;
    right: 30px;
    z-index: 99; /* Se asigură că e deasupra altor elemente */

    /* Stil opțional */
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-color: rgba(255, 255, 255, .1);
    color: #0b0f19;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 20px;
}

#scrollTopButton:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}
