/* Custom Styles - TopLocal */

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sticky Header */
body.toplocal-sticky-header header,
body.toplocal-sticky-header .wp-block-template-part-header,
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: all 0.3s ease;
}

/* Conversion UI: Sticky Call Bar Mobile */
.sticky-call-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--wp--preset--color--primary, #0056b3);
    color: white;
    z-index: 9999;
    padding: 10px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-call-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .sticky-call-bar {
        display: block;
    }
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.5s ease;
}

#cookie-banner p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

#cookie-banner button {
    background: var(--wp--preset--color--primary, #0056b3);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

#cookie-banner button:hover {
    opacity: 0.9;
}

/* Visual Hooks System */
.toplocal-hook-label {
    background: #ff0055;
    color: #fff;
    font-family: monospace;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    margin: 2px;
    z-index: 9999;
    position: relative;
    border: 1px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    /* Let clicks pass through */
}

.toplocal-hook-label .dashicons {
    font-size: 10px;
    width: 10px;
    height: 10px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 70px;
    }
}