html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #E77716;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* =========================
   BASE
========================= */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: #fafafa;
    color: #222;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,.95);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.nav-inner {
    max-width: 1200px;
    margin: auto;
    padding: .75rem 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-self: center;
}


.nav-links a {
    margin-left: 1.5rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: #E77716;
}

/* =========================
   MOBILE NAVBAR
========================= */
.nav-toggle {
    display: none;
    justify-self: end;
    margin-left: auto;

    width: 44px;
    height: 44px;
    place-items: center;

    font-size: 1.6rem;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}


/* DESKTOP */
.nav-links {
    display: flex;
}

/* MOBILE */
@media (max-width: 768px) {

    .nav-toggle {
        display: block;
        color: #222;
        padding-left: 24px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        display: none;
        flex-direction: column;
        padding: 1rem 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,.15);
        gap: 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: .75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* =========================
   ANCHOR OFFSET – STICKY NAVBAR FIX
========================= */

/* DESKTOP */
section[id] {
    scroll-margin-top: 88px;
}

/* MOBILE */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 72px;
    }
}


/* =========================
   BRAND / LOGO – UNI MAJSTER
========================= */
.brand {
    display: inline-flex;
    align-items: center;           /* ZAROVNANIE NA BASELINE */
    gap: .35rem;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .6px;
}

/* ORANŽOVÝ BOX */
.brand-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .6rem;
    background: #E77716;
    color: white;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1;
}

/* TEXT MAJSTER */
.brand-name {
    font-size: 1.15rem;
    color: #222;
    line-height: 1;               /* ROVNAKÁ BASELINE */
    position: relative;
}

/* JEMNÝ ORANŽOVÝ DETAIL POD MAJSTER */
.brand-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 45%;
    height: 3px;
    border-radius: 99px;
    background: #E77716;
    transition: width .75s ease;
}

/* ZÁKLAD – LEN TRANSITION, ŽIADEN HOVER */
.brand-box {
    transition: transform .75s ease, box-shadow .75s ease;
    transform-origin: center;
}

/* ZRUŠENIE všetkých animácií */
.brand--hero .brand-box,
.brand--hero .brand-name::after {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (min-width: 600px) {
/* =========================
   BRAND – HERO (3x väčšie)
========================= */
.brand--hero {
    gap: 0.5rem;
}

.brand--hero .brand-box {
    font-size: 3.5rem;      /* 1.05rem × 3 */
    padding: 1.15rem 1.9rem; /* pôvodné × 3 */
    border-radius: 20px;

}

.brand--hero .brand-name {
    color: #141414;
    font-size: 3.75rem;      /* 1.15rem × 3 */
    text-shadow: 4px 2px white;
}

.brand--hero .brand-name::after {
    height: 10px;             /* 3px × 3 */
    bottom: -14px;
    width: 100%;
}
}

@media (max-width: 600px) {

    .brand--hero {
        gap: 0.5rem;
    }

    .brand--hero .brand-box {
        font-size: 1.75rem;      /* 3.5rem / 2 */
        padding: 0.575rem 0.95rem;
        border-radius: 12px;
    }

    .brand--hero .brand-name {
        color: #141414;
        font-size: 1.875rem;     /* 3.75rem / 2 */
        text-shadow: 2px 1px white;  /* jemnejší tieň */
    }

    .brand--hero .brand-name::after {
        height: 5px;             /* 10px / 2 */
        bottom: -7px;
        width: 100%;
    }

}

/* HOVER EFEKTY – IBA DESKTOP */
@media (hover: hover) and (pointer: fine) {

    .brand:hover .brand-box {
        transform: scale(1.06);
        box-shadow: 0 10px 24px rgba(231,119,22,.45);
    }

    .brand:hover .brand-name::after {
        width: 100%;
    }
}

@media (hover: none) and (pointer: coarse) {

    .brand-name::after {
        width: 100%;
    }
}


/* MOBILE ÚPRAVA */
@media (max-width: 600px) {
    .brand-box {
        font-size: .95rem;
        padding: .3rem .5rem;
    }

    .brand-name {
        font-size: 1.55rem;
    }
}

/* =========================
   BRAND – MOBILE ALIGN FIX
========================= */
@media (max-width: 600px) {

    .brand {
        align-items: center;
    }

    .brand-box {
        font-size: 1.05rem;     /* mierne väčšie UNI */
        line-height: 1;
        padding: .38rem .6rem;
    }

    .brand-name {
        font-size: 1.05rem;     /* rovnaká veľkosť */
        line-height: 1;
        transform: translateY(1px); /* optické zarovnanie */
    }
}


.logo {
    background-image: url("/img/logo.png");
}


/* =========================
   HERO
========================= */
.hero {
    min-height: 90vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    background:
            linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
            url("/img/hero.jpg") center / cover no-repeat;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: .9;
}

/* =========================
   HERO SLIDER
========================= */
.hero-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: white;
}

/* SLIDES CONTAINER */
.slides {
    position: absolute;
    inset: 0;
    z-index: -2;
}

/* JEDNOTLIVÝ SLIDE */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlide 18s infinite;
    transform: scale(1.05);
}

/* KONKRÉTNE OBRÁZKY */
.slide-1 {
    background-image: url("/img/hero-1.jpg");
    animation-delay: 0s;
}

.slide-2 {
    background-image: url("/img/hero-2.jpg");
    animation-delay: 6s;
}

.slide-3 {
    background-image: url("/img/hero-3.jpg");
    animation-delay: 12s;
}

/* OVERLAY – ABY SA TEXT NESTRATIL */
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    rgba(0,0,0,.65),
                    rgba(0,0,0,.65)
            );
    z-index: -1;
}

/* TEXT */
.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: .95;
}

/* SLIDER ANIMÁCIA */
@keyframes heroSlide {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    5% {
        opacity: 1;
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
    35% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* TEXT ANIMÁCIA */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   SECTIONS
========================= */
.section {
    max-width: 1200px;
    margin: auto;
    padding: clamp(2rem, 4vw, 4rem) 1rem;
}

.section.light {
    background: #f5f5f5;
}

.section.dark {
    background: #222;
    color: white;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 2.5rem;
    letter-spacing: -.5px;
}

h3 {
    letter-spacing: -.3px;
}

/* =========================
   ABOUT – FULL WIDTH BAND
========================= */
.about-band {
    background:
            linear-gradient(
                    to right,
                    #f4f4f4,
                    #ffffff,
                    #f4f4f4
            );
    padding: clamp(2rem, 4vw, 4rem) 1rem;
}

/* vnútorný kontajner */
.about-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

/* jemný horný akcent */
.about-content::before {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 0 auto 2rem;
    background: #E77716;
    border-radius: 99px;
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.3rem;
    color: #333;
}

/* zvýraznená veta */
.about-strong {
    margin-top: 2rem;
    font-weight: 600;
    color: #222;
}

/* =========================
   SERVICES – FULL WIDTH BAND
========================= */
#services.section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(2rem, 4vw, 4rem) 0;

    /* jemne tmavšie než About */
    background: linear-gradient(
            to bottom,
            #e9e9e9,
            #f2f2f2
    );
}

/* vnútorné centrovanie obsahu */
#services > h2,
#services > .service-accordion {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* nadpis sekcie */
#services > h2 {
    padding: 0 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* accordion má dýchať */
#services .service-accordion {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


/* =========================
   SERVICES – ACCORDION
========================= */

.service-accordion {
    background: white;
    border-radius: 12px;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    transition: box-shadow .3s ease;
}

.service-accordion:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
}

.service-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.service-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #E77716;
}

.service-header p {
    margin: .3rem 0 0;
    font-size: .95rem;
    color: #555;
    max-width: 90%;
}

.arrow {
    font-size: 1.8rem;
    color: #E77716;
    transition: transform .3s ease;
}

.service-accordion.open .arrow {
    transform: rotate(45deg);
}

.service-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
            max-height .45s ease,
            opacity .3s ease;
}

.service-accordion.open .service-content {
    max-height: 800px;
    opacity: 1;
}

.service-content ul {
    padding: 0 0 1.5rem 1.2rem;
}

.service-content li {
    margin-bottom: .5rem;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: #E77716;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231,119,22,.35);
}
/* =========================
   GALLERY – FULL WIDTH BAND
========================= */
#gallery.section {
    max-width: none;   /* zruší 1200px limit */
    padding: clamp(2rem, 4vw, 4rem) 0;
}

/* centrovanie obsahu */
#gallery > h2,
#gallery .gallery-grid {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* nadpis */
#gallery > h2 {
    padding: 0 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* grid spacing */
.gallery-grid {
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}


.gallery-item {
    min-height: 220px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ddd, #bbb);
    box-shadow: 0 10px 10px rgba(0,0,0,.12);
}
/* =========================
   CONTACT – FULL WIDTH BAND
========================= */
#contact.section {
    max-width: none;
    margin: 0;
    padding: clamp(3rem, 5vw, 5rem) 0;
    background: #121212;
    color: white;
}

.contact-content {
    max-width: 900px;
    margin: auto;
    padding: 0 1.5rem;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center; /* ⬅️ kľúčové */
}


/* názov firmy */
.contact-company {
    font-size: 1.6rem;
    margin-bottom: .75rem;
    letter-spacing: .5px;
}

/* adresa */
.contact-address {
    opacity: .9;
    margin-bottom: .75rem;
}

/* IČO / DIČ */
.contact-ids {
    font-size: .95rem;
    opacity: .8;
    margin-bottom: 2rem;
}

/* telefón – hlavné CTA */
.contact-phone a {
    display: inline-block;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    color: #E77716;
    margin-bottom: 1rem;
}

/* email */
.contact-email a {
    color: white;
    opacity: .9;
    font-size: 1.05rem;
}

/* hover */
.contact-phone a:hover,
.contact-email a:hover {
    text-decoration: underline;
}

#contact h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}


#contact.section {
    position: relative;
}

#contact.section::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background: #E77716;
    border-radius: 99px;
}

/* MOBILE DOLADENIE */
@media (max-width: 600px) {
    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-phone a {
        font-size: 1.6rem;
    }
}

/* =========================
   FOOTER
========================= */
.footer {
    text-align: center;
    padding: 2rem;
    background: #0b0b0b;
    color: white;
}

/* =========================
   FOOTER – SECRET LINK
========================= */
.footer-secret {
    color: rgba(255,255,255,.4); /* skoro neviditeľné */
    text-decoration: none;
    font-weight: 600;
    transition: color .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .footer-secret:hover {
        color: #E77716;
        text-decoration: underline;
        cursor: pointer;
    }
}

/* =========================
   ADMIN LOGIN PAGE
========================= */
.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #111;
    color: white;
    text-align: center;
    padding: 2rem;
}

.admin-login h1 {
    margin-bottom: 2rem;
}

.admin-login input {
    width: 100%;
    max-width: 320px;
    padding: .9rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    margin-bottom: 1.5rem;
}

.admin-login button {
    padding: .8rem 1.8rem;
    background: #E77716;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* =========================
   ADMIN – ACTIONS
========================= */
.admin-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

/* návrat späť */
.admin-back {
    font-size: .95rem;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .admin-back:hover {
        color: #E77716;
        text-decoration: underline;
    }
}




/* =========================
   HELPERS
========================= */
.center {
    text-align: center;
}

.big {
    font-size: 1.3rem;
}

.highlight {
    color: #E77716;
}

.admin-error {
    color: #ff6b6b;
    margin-bottom: 1rem;
}


/* =========================
   ADMIN – PAGE LAYOUT
========================= */
.admin-page {
    min-height: 100vh;
    background: #111;
    color: white;
    padding: 2.5rem 1.5rem;
}

/* =========================
   ADMIN HEADER
========================= */
.admin-header {
    max-width: 1100px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

/* horná navigácia */
.admin-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-link {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .95rem;
}

@media (hover: hover) and (pointer: fine) {
    .admin-link:hover {
        color: #E77716;
        text-decoration: underline;
    }
}

/* logout */
.admin-logout {
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    padding: .45rem .9rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
}

.admin-logout:hover {
    border-color: #E77716;
    color: #E77716;
}

/* =========================
   ADMIN CONTENT
========================= */
.admin-content {
    max-width: 1100px;
    margin: auto;
}

/* pridanie albumu */
.admin-add {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.admin-add input {
    flex: 1;
    min-width: 240px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    cursor: pointer;
}

.gallery-item h3 {
    margin-bottom: .5rem;
    color: #E77716;
}

.album-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #ddd;
}

.album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-album {
    height: 100%;
    display: grid;
    place-items: center;
    color: #666;
    font-size: .9rem;
}

.admin-album {
    background: #1c1c1c;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.admin-album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.admin-photos {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.admin-photo {
    position: relative;
}

.admin-photo img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-photo button {
    position: absolute;
    top: 4px;
    right: 4px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ⬅️ vždy 3 stĺpce */
    gap: 2rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.album-card {
    cursor: pointer;
}

.album-preview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6px;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #ddd;
}

.album-main img,
.album-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
}

.album-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .75rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album-count {
    font-size: .85rem;
    opacity: .85;
}

/* SKRYTÉ PRE PHOTOSWIPE */
.pswp-gallery {
    display: none;
}

/* HOVER EFEKT */
.album-card:hover .album-preview {
    transform: scale(1.01);
    transition: transform .25s ease;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

,.btn-primary {
     background: #E77716;
     color: white;
     padding: .6rem 1.2rem;
     border-radius: 8px;
     font-weight: 600;
 }

.btn-secondary {
    background: #eee;
    color: #222;
    padding: .5rem 1rem;
    border-radius: 8px;
}

.danger {
    background: #e63946;
    color: white;
    padding: .35rem .6rem;
    border-radius: 6px;
    font-weight: 600;
}

.danger:hover {
    background: #c92a36;
}

.admin-album {
    background: white;
    padding: 1.2rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    margin-bottom: 2rem;
}

.admin-album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
}

.admin-photo {
    position: relative;
}

.admin-photo img {
    width: 100%;
    border-radius: 8px;
}

.admin-photo .danger {
    position: absolute;
    top: 6px;
    right: 6px;
}

.hidden-file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.admin-album {
    background: white;
    color: #222;           /* ⬅️ KĽÚČOVÉ */
}

.admin-album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #222;           /* ⬅️ PREPÍŠE BIELU */
}



/* =========================
   HERO CONTENT CENTERING & LOGO
========================= */
.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center; /* centrovanie všetkého obsahu */
    gap: 1rem; /* medzera medzi logom a textom */
}

/* H1 styling so zarovnaným logom */
.hero-content h1 {
    display: flex;
    flex-direction: column; /* logo nad textom */
    align-items: center;    /* centrovanie horizontálne */
    justify-content: center;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    gap: .5rem; /* medzera medzi logom a textom */
}

/* LOGO styling */
.logo {
    width: 600px;
    height: 120px;
    background-image: url(/img/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* TEXT POD LOGOM */
.hero-content p {
    font-size: 1.2rem;
    opacity: .95;
    max-width: 600px;
    text-align: center;
}

/* RESPONSIVE LOGO */
@media (max-width: 600px) {
    .logo {
        width: 280px;
        height: 80px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .hero-content p {
        font-size: 1rem;
    }
}
