/**
 * StoryMap Modal Styles
 * Modal overlay for embedding StoryMap landing page
 */

.storymap-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.storymap-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.storymap-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

.storymap-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 1.1rem;
    transition: all 0.2s;
    z-index: 11;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.storymap-modal-close:hover {
    background: #f9fafb;
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.storymap-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.storymap-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.storymap-modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6b7280;
}

.storymap-modal-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #7c9885;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .storymap-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
}
