/* public/assets/css/modules/footer.css */

:root {
    --footer-bg-dark: #3C3939;
    --footer-text-main: #94a3b8;
    --footer-text-light: #f1f5f9;
    --brand-green: var(--fl-green-primary);
    --brand-green-hover: #00c853;
    --brand-green-soft-bg: rgba(0, 155, 58, 0.15);
}

/* 1. HLAVNÍ KONTEJNER */
.site-footer-premium {
    background-color: var(--footer-bg-dark);
    position: relative;
    padding-top: 80px;
    padding-bottom: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: var(--footer-text-main);
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 2. DEKORACE POZADÍ */
.footer-bg-glow {
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 155, 58, 0.06) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

.footer-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* 3. BRAND & LOGO */
.footer-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: white !important;
    text-decoration: none;
    letter-spacing: -1px;
    line-height: 1;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-brand span { color: var(--brand-green); }

/* POPIS */
.footer-desc {
    color: #e2e8f0 !important;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 350px;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* 4. NAVIGACE & ODKAZY (UPRAVENO) */
.footer-col-title {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    display: inline-block;
    border-bottom: 2px solid var(--brand-green);
    padding-bottom: 5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    margin-left: -16px;
    white-space: nowrap;
}

.footer-links-col {
    min-width: 0;
}

.footer-links a:hover {
    color: white;
    background-color: var(--brand-green-soft-bg);
    box-shadow: 0 4px 12px rgba(0, 155, 58, 0.1);
}

.footer-links a::before {
    content: '›';
    display: inline-block;
    margin-right: 10px;
    color: var(--brand-green);
    font-weight: bold;
    opacity: 0.8;
}

/* 5. KONTAKTY (Box) */
.contact-box-wrapper {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 25px;
}

.contact-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.contact-row:last-child { margin-bottom: 0; }

.contact-icon {
    width: 40px; height: 40px;
    background: rgba(0, 155, 58, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green);
    margin-right: 15px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-text {
    line-height: 1.3;
}

.contact-text strong {
    display: block;
    color: white !important;
    font-size: 1rem;
    font-weight: 700;
}

.contact-text span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.text-brand-light { color: #4ade80 !important; }
.text-brand-green { color: var(--brand-green) !important; }

/* 6. STATUS WIDGET */
.system-status-widget {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    flex-wrap: wrap;
}

.status-indicator {
    width: 8px; height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.status-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: #10b981;
    letter-spacing: 0.06em;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}

.footer-hours {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
}

.footer-hours-icon {
    display: flex;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.footer-hours-title {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.footer-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-width: 11.5rem;
}

.footer-hours-list strong {
    color: #fff;
    font-weight: 700;
}

/* 7. SOCIÁLNÍ SÍTĚ */
.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-btn:hover {
    background: var(--brand-green);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 155, 58, 0.3);
    border-color: var(--brand-green);
}

/* 8. SPODNÍ LIŠTA */
.footer-bottom {
    margin-top: 5rem;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--footer-bg-dark);
    font-size: 0.85rem;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 25px;
    transition: color 0.2s;
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Responzivita */
@media (max-width: 991px) {
    .site-footer-premium { padding-top: 40px; }
    .footer-col-title { margin-top: 2rem; margin-bottom: 1rem; }
    .footer-brand { margin-top: 0; margin-bottom: 1rem; }
    .contact-box-wrapper { padding: 20px; }
    .footer-links a { white-space: normal; }
}

/* Refined footer; every rule is limited to the footer component. */
footer.site-footer-premium {
    padding-top: clamp(48px, 6vw, 80px);
    background: linear-gradient(125deg, #102b22, #142720 55%, #172923) !important;
    border-top: 0;
    color: #b6c9bf;
}

.site-footer-premium::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, #28bb68 30%, #a0e3b5 60%, transparent);
}

.site-footer-premium .footer-bg-glow {
    width: 800px;
    height: 800px;
    top: -400px;
    right: -150px;
    background: radial-gradient(circle, rgba(65, 180, 108, 0.17), transparent 65%);
}

.site-footer-premium .footer-pattern {
    opacity: 0.3;
    background-size: 24px 24px;
}

.site-footer-premium .footer-main {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.8fr 1.25fr;
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
}

.site-footer-premium .footer-main > div {
    min-width: 0;
}

.site-footer-premium .footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(1.6rem, 1.1rem + 1vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.15;
    margin: 0 0 22px;
}

.site-footer-premium .footer-brand-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 17px;
    color: #b0f1c8;
    background: rgba(121, 223, 155, 0.1);
    border: 1px solid rgba(149, 230, 176, 0.2);
    font-size: 1.8rem;
}

.site-footer-premium .footer-brand-copy {
    color: #fff !important;
}

.site-footer-premium .footer-brand-copy > span {
    display: block;
    color: #7ade9f !important;
}

.site-footer-premium .footer-desc {
    color: #bed0c6 !important;
    font-size: 0.94rem;
    line-height: 1.85;
    opacity: 1;
    margin-bottom: 24px;
}

.site-footer-premium .footer-col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 22px;
    padding: 0;
    border: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.5;
    color: #e9f4ed;
}

.site-footer-premium .footer-col-title i {
    font-size: 1.1rem;
    color: #7ade9f;
}

.site-footer-premium .footer-links li {
    margin-bottom: 6px;
}

.site-footer-premium .footer-links a {
    color: #bfd0c6;
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 9px 10px;
    margin-left: -10px;
    white-space: normal;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-footer-premium .footer-links a::before {
    color: #7ade9f;
    opacity: 1;
}

.site-footer-premium .footer-links a:hover {
    color: #fff;
    background: rgba(132, 224, 165, 0.1);
    box-shadow: none;
}

.site-footer-premium .contact-box-wrapper {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(180, 225, 194, 0.15);
    background: linear-gradient(135deg, rgba(175, 226, 193, 0.08), rgba(175, 226, 193, 0.025));
}

.site-footer-premium .contact-row {
    gap: 12px;
    margin-bottom: 20px;
}

.site-footer-premium .contact-row:last-child {
    margin-bottom: 0;
}

.site-footer-premium .contact-icon {
    margin: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(132, 224, 165, 0.12);
}

.site-footer-premium .contact-text {
    min-width: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.site-footer-premium .contact-text strong {
    font-size: 0.92rem;
}

.site-footer-premium .contact-text strong.fs-5 {
    font-size: 1.15rem !important;
    letter-spacing: -0.02em;
}

.site-footer-premium .contact-text span {
    color: #b8cec1;
    font-size: 0.79rem;
}

.site-footer-premium .footer-hours {
    padding: 18px 5px 0 !important;
    margin-top: 18px !important;
    gap: 12px;
    color: #b8cec1;
}

.site-footer-premium .footer-hours-copy {
    flex: 1;
    min-width: 0;
}

.site-footer-premium .footer-hours-title {
    color: #e9f4ed;
    margin-bottom: 10px;
}

.site-footer-premium .footer-hours-list {
    gap: 7px;
}

.site-footer-premium .footer-hours-list li {
    min-width: 0;
}

.site-footer-premium .social-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(132, 224, 165, 0.08);
    border-color: rgba(180, 225, 194, 0.16);
}

.site-footer-premium a:focus-visible {
    outline: 2px solid #a0e3b5;
    outline-offset: 5px;
    border-radius: 6px;
}

.site-footer-premium .footer-bottom {
    margin-top: clamp(40px, 5vw, 64px);
    padding: 24px 0;
    background: rgba(5, 18, 12, 0.2) !important;
    border-color: rgba(180, 225, 194, 0.12);
}

.site-footer-premium .footer-bottom .text-white-50 {
    color: #a9c0b2 !important;
    line-height: 1.7;
}

.site-footer-premium .footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.site-footer-premium .footer-bottom-links a {
    color: #b8cec1;
    margin: 0;
    padding: 4px 0;
    font-size: 0.8rem;
}

.site-footer-premium .footer-bottom-links a:hover {
    color: #fff;
}

/* Keep contrast on the dark footer even with a darker administrator brand color. */
footer.site-footer-premium .footer-brand-icon,
footer.site-footer-premium .contact-icon,
footer.site-footer-premium .contact-icon .florenc-icon,
footer.site-footer-premium .contact-icon .florenc-icon::before,
footer.site-footer-premium .footer-col-title i,
footer.site-footer-premium .footer-links a::before {
    color: #8ce5ad !important;
}

footer.site-footer-premium .footer-links a:hover,
footer.site-footer-premium .footer-bottom-links a:hover {
    color: #b3f3cb !important;
}

@media (max-width: 991.98px) {
    .site-footer-premium .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .site-footer-premium .footer-about,
    .site-footer-premium .footer-contact-col {
        grid-column: 1 / -1;
    }

    .site-footer-premium .footer-desc {
        max-width: 34rem;
    }
}

@media (max-width: 767.98px) {
    .site-footer-premium .footer-main {
        gap: 32px 20px;
    }

    .site-footer-premium .footer-bottom-links {
        justify-content: center;
    }
}
