:root {
    --az-dark:    #0d3b3e;
    --az-mid:     #135058;
    --az-light:   #1e7a6e;
    --az-accent:  #3cc042;
    --az-text:    #e8f5e9;
    --az-muted:   rgba(255,255,255,0.6);
}

/* ─── Base ─────────────────────────────────────────────────────────────── */
html, body {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--az-dark) 0%, #2c6b55 50%, #a8c97f 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--az-text);
    min-height: 100vh;
}

h1 { font-size: 1.6rem; font-weight: 600; }
h2 { font-size: 1.2rem; font-weight: 600; margin-top: 1.5rem; }

a { color: var(--az-accent); text-decoration: none; }
a:hover { color: #fff; }

pre {
    white-space: pre-wrap;
    font-family: inherit;
    color: var(--az-text);
}

/* ─── Navbar ────────────────────────────────────────────────────────────── */
.az-navbar {
    background-color: rgba(13, 59, 62, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.6rem 0;
}

.az-logo {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: #fff !important;
}

.az-logo .bi-tree-fill {
    color: var(--az-accent);
}

.az-navbar .nav-link {
    color: var(--az-muted) !important;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.az-navbar .nav-link:hover,
.az-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.az-navbar .nav-link.active {
    border-bottom: 2px solid var(--az-accent);
    border-radius: 6px 6px 0 0;
}

/* ─── Main content ──────────────────────────────────────────────────────── */
.az-main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.az-main .container-xl {
    background: rgba(0,0,0,0.32);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

/* ─── Shared page padding ───────────────────────────────────────────────── */
.az-page-header {
    padding: 1.75rem 1.75rem 0;
}

.az-page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ─── Intro hero (o-nas) ────────────────────────────────────────────────── */
.az-hero {
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.az-hero-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.az-hero-title span {
    font-weight: 300;
}

.az-hero-subtitle {
    font-size: 1rem;
    color: var(--az-muted);
    margin-bottom: 1.25rem;
}

.az-hero-perex {
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 720px;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.az-section {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.az-section:last-child {
    border-bottom: none;
}

.az-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--az-accent);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.az-section p {
    line-height: 1.75;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
}

.az-team-list, .az-collab-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.az-team-list li, .az-collab-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 0.95rem;
}

.az-team-list li:last-child, .az-collab-list li:last-child {
    border-bottom: none;
}

.az-team-name {
    font-weight: 600;
    min-width: 180px;
}

.az-team-role {
    color: var(--az-muted);
    font-size: 0.88rem;
}

/* ─── Contact card ──────────────────────────────────────────────────────── */
.az-contact-card {
    padding: 1.75rem;
}

.az-contact-avatar {
    width: 100%;
    max-width: 260px;
    border-radius: 10px;
    object-fit: cover;
}

.az-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.az-contact-info .az-contact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.az-contact-info .az-contact-row i {
    color: var(--az-accent);
    font-size: 1.2rem;
    width: 24px;
    flex-shrink: 0;
}

.az-contact-info a {
    color: var(--az-text);
}

.az-contact-info a:hover {
    color: var(--az-accent);
}

/* ─── Tags / section nav ────────────────────────────────────────────────── */
.tags {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tags span {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.tags span:hover {
    background: rgba(255,255,255,0.18);
}

.tags a {
    color: var(--az-text);
}

.p {
    padding: 1rem 1.25rem;
}

section {
    padding-bottom: 0.5rem;
}

/* ─── Garden grid ───────────────────────────────────────────────────────── */
.az-garden-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 1.75rem;
}

.garden-item {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--az-dark);
    background-image: url('/img/loading.svg');
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
}

.garden-item > a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.garden-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.garden-item:hover img {
    transform: scale(1.05);
}

.garden-item div.title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    transition: background 0.3s;
}

.garden-item:hover div.title {
    background: rgba(19, 80, 88, 0.75);
}

/* ─── Single garden ─────────────────────────────────────────────────────── */
.garden > img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* ─── Admin layout (mimo grid100 konflikty) ─────────────────────────────── */
.az-admin-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.az-admin-layout-sidebar {
    flex: 0 0 220px;
    min-width: 0;
}

.az-admin-layout-main {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 768px) {
    .az-admin-layout {
        flex-direction: column;
    }
    .az-admin-layout-sidebar {
        flex: none;
        width: 100%;
    }
}

/* ─── Admin ─────────────────────────────────────────────────────────────── */
.az-admin-sidebar {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 1rem 0.75rem;
}

.az-admin-sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--az-muted);
    padding: 0.25rem 0.5rem;
}

.az-admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    color: var(--az-text);
    font-size: 0.9rem;
    transition: background 0.15s;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.az-admin-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.az-admin-nav-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
}

.az-form-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.az-form-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.8);
}

.az-input {
    background: rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 6px !important;
    color: #fff !important;
}

.az-input:focus {
    border-color: var(--az-accent) !important;
    box-shadow: 0 0 0 2px rgba(60,192,66,0.2) !important;
    background: rgba(0,0,0,0.35) !important;
}

.az-input::placeholder { color: rgba(255,255,255,0.35); }

.az-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--az-text);
}

.az-admin-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.az-btn {
    background: var(--az-mid);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 6px;
    padding: 0.4rem 1rem;
}

.az-btn:hover { background: var(--az-light); color: #fff; }

.az-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--az-text);
    border-radius: 6px;
    padding: 0.4rem 1rem;
}

.az-btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

.az-btn-danger {
    background: rgba(180,50,50,0.4);
    border: 1px solid rgba(255,100,100,0.3);
    color: #ffaaaa;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
}

.az-btn-danger:hover { background: rgba(180,50,50,0.7); color: #fff; }

.az-alert {
    background: rgba(60,192,66,0.15);
    border: 1px solid rgba(60,192,66,0.4);
    color: #a8f0ab;
    border-radius: 6px;
}

.az-table {
    color: var(--az-text);
    border-color: rgba(255,255,255,0.1);
}

.az-table td { border-color: rgba(255,255,255,0.08); }

.az-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 1.25rem 0;
}

.form-check-input {
    background-color: rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}

.form-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.message {
    text-align: center;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* ─── Forms ─────────────────────────────────────────────────────────────── */
input[type='password'],
input[type='text'],
input[type='number'],
textarea {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    color: #fff;
    padding: 5px 10px;
    min-height: 34px;
}

input[type='password']:focus,
input[type='text']:focus,
input[type='number']:focus,
textarea:focus {
    outline: none;
    border-color: var(--az-accent);
    background: rgba(0,0,0,0.3);
}

input[type='submit'], button[type='submit'], button {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    color: #fff;
    padding: 5px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

input[type='submit']:hover, button:hover {
    background: rgba(255,255,255,0.22);
}

input[type='file'] {
    color: var(--az-text);
    min-width: 275px;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.az-footer {
    background: rgba(0,0,0,0.3);
    color: var(--az-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.az-footer-link {
    color: var(--az-muted);
}

.az-footer-link:hover {
    color: #fff;
}

/* ─── Scroll-to-top button ──────────────────────────────────────────────── */
#up-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(13, 59, 62, 0.85);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

#up-button:hover {
    background: var(--az-mid);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .az-garden-grid {
        grid-template-columns: 1fr;
    }

    .garden-item {
        height: 180px;
    }

    .az-main .container-xl {
        border-radius: 0;
    }
}

@media (max-width: 920px) {
    .container-xl {
        width: 100% !important;
    }
}

@media print {
    h1, pre { color: #000; }
    .az-navbar, #up-button { display: none; }
}
