/* Interactive Elements CSS */

/* Hide from search engines and screen readers */
.banner,
.modal-overlay,
.custom-bubble {
    /* Hide from screen readers */
    aria-hidden: true;
    
    /* Additional SEO hiding */
    position: relative;
}

/* Ensure content inside is also hidden from SEO */
.banner *,
.modal-overlay *,
.custom-bubble * {
    /* Prevent content from being indexed */
    pointer-events: auto; /* Allow interaction but hide from SEO */
}

/* Element Inserter Block */
.element-inserter-block {
    margin: 20px 0;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    text-align: center;
    background: #f9f9f9;
}

.element-inserter-block.no-element {
    color: #666;
    font-style: italic;
}

.element-inserter-block .element-content {
    margin: 0;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: visible;
}

.modal {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modal-content {
    position: relative;
    max-width: 100%;
}

.modal-content-container {
    position: relative;
    background: transparent;
    width: auto;
    max-width: none;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.modal-close svg {
    width: 16px;
    height: 16px;
    fill: #333;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Gutenberg blocks within modal content */
.modal-content-container img {
    max-width: 100%;
    height: auto;
}

.modal-content-container p {
    margin: 0 0 1em 0;
}

.modal-content-container h1,
.modal-content-container h2,
.modal-content-container h3,
.modal-content-container h4,
.modal-content-container h5,
.modal-content-container h6 {
    margin: 0 0 0.5em 0;
}

/* Banner Styles */
.banner {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.banner-top {
    top: 0;
}

.banner-bottom {
    bottom: 0;
}

.banner-content {
    position: relative;
}

.banner-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background-color 0.2s ease;
}

.banner-close:hover {
    background: #f0f0f0;
}

.banner-close svg {
    width: 12px;
    height: 12px;
    fill: #333;
}

/* Bubble Styles */
.custom-bubble {
    position: fixed;
    z-index: 1000;
    max-width: 300px;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    background: white;
}

.bubble-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007cba;
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.bubble-icon-text {
    display: block;
    text-align: center;
}

.bubble-content {
    display: none;
    max-width: none;
    width: auto;
    height: 100%;
    overflow: auto;
    /* padding: 15px; */
}

.custom-bubble.expanded .bubble-content {
    display: block;
    margin-top: 10px;
}

.custom-bubble.expanded {
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    padding: 0;
}

.bubble-bottom-right {
    bottom: 20px;
    right: 20px;
}

.bubble-bottom-left {
    bottom: 20px;
    left: 20px;
}

.bubble-top-right {
    top: 20px;
    right: 20px;
}

.bubble-top-left {
    top: 20px;
    left: 20px;
}

.bubble-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 12px;
    line-height: 1;
    z-index: 2;
}

.bubble-close:hover {
    background: rgba(255, 255, 255, 1);
}
