/* CSS styly pro sjednocený footer
 *
 * POŽADAVEK: brát footer CSS z `TESTZABEZPECENI/HTML/index.html`
 * - Níže jsou základní pravidla (.footer, .footer-content, .footer-section, .warning-text, .divider, @media)
 *   sjednocená tak, aby odpovídala `index.html`.
 * - Dodatečné třídy (.footer-nav, .footer-contact, .footer-social, .footer-bottom...) zůstávají,
 *   protože je používá `components/footer.html`.
 */

/* ✅ Lokální proměnné jen pro footer (stránka je nemůže změnit) */
#footer-placeholder {
    --primary-color: #19192a;
    --secondary-color: #252542;
    --accent-color: #fab427;
    --text-color: #ffffff;
    /* stejné jako index.html */
    --text-secondary: rgba(255, 255, 255, 0.7);
}

#footer-placeholder .footer {
    background: linear-gradient(0deg, rgba(25, 25, 42, 0.95) 0%, rgba(25, 25, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* index.html */
    padding: 20px 0;
    margin-top: 50px;
}

#footer-placeholder .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* index.html */
    align-items: center;
    gap: 20px;
}

#footer-placeholder .footer-section {
    flex: 1;
    /* index.html */
    min-width: 250px;
}

#footer-placeholder .footer-section.full-width {
    width: 100%;
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 10px;
}

#footer-placeholder .footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 12px;
    /* index.html (runtime) */
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#footer-placeholder .warning-text {
    /* index.html */
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.7;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

/* Navigace v footeru */
#footer-placeholder .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#footer-placeholder .footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    /* index.html (runtime) */
    font-size: 12px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    padding-left: 0;
}

#footer-placeholder .footer-nav a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Kontaktní informace */
#footer-placeholder .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#footer-placeholder .footer-contact p {
    margin: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

/* ✅ Fix: sjednocení vzdálenosti ikon od textu (na některých stránkách bylo 0px) */
#footer-placeholder .footer-contact p i {
    margin-right: 8px;
    width: 16px;
    flex: 0 0 16px;
    text-align: center;
}

#footer-placeholder .footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer-placeholder .footer-contact a:hover {
    color: var(--accent-color);
}

/* Sociální sítě */
#footer-placeholder .footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

#footer-placeholder .footer-social a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

#footer-placeholder .footer-social a:hover {
    color: var(--accent-color);
    background: rgba(250, 180, 39, 0.15);
    transform: translateY(-2px);
}

/* Spodní část footeru */
#footer-placeholder .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

#footer-placeholder .footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#footer-placeholder .footer-bottom-left,
#footer-placeholder .footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

#footer-placeholder .footer-bottom-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

#footer-placeholder .footer-bottom-right a:hover {
    color: var(--accent-color);
}

#footer-placeholder .divider {
    color: rgba(255, 255, 255, 0.3);
    /* index.html */
    margin: 0 10px;
}

/* Responzivní design */
@media (max-width: 768px) {
    #footer-placeholder .footer {
        /* index.html footer drží stejné padding, necháme jen lehké zmenšení */
        padding: 20px 0;
    }
    
    #footer-placeholder .footer-content {
        flex-direction: column;
        text-align: center;
        /* index.html */
        gap: 15px;
    }
    
    #footer-placeholder .footer-section {
        width: 100%;
        min-width: 100%;
    }
    
    #footer-placeholder .footer-section.full-width {
        margin-bottom: 15px;
    }
    
    #footer-placeholder .footer-nav {
        align-items: center;
    }
    
    #footer-placeholder .footer-contact {
        align-items: center;
    }
    
    #footer-placeholder .footer-contact p {
        justify-content: center;
    }
    
    #footer-placeholder .footer-social {
        justify-content: center;
    }
    
    #footer-placeholder .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    #footer-placeholder .footer-bottom-left,
    #footer-placeholder .footer-bottom-right {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #footer-placeholder .footer-content {
        padding: 0 1rem;
    }
    
    #footer-placeholder .footer-section h4 {
        font-size: 13px;
    }
    
    #footer-placeholder .footer-nav a,
    #footer-placeholder .footer-contact p {
        font-size: 12px;
    }
    
    #footer-placeholder .warning-text {
        font-size: 0.7rem;
    }
}


