/* Toledo Center Popup Styles */

.toledo-popup {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90vw;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: transparent;
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toledo-popup::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toledo-popup.toledo-popup-open {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.toledo-popup.toledo-popup-open::backdrop {
    opacity: 1;
}

.toledo-popup.toledo-popup-closing {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
}

.toledo-popup.toledo-popup-closing::backdrop {
    opacity: 0;
}

.toledo-popup-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.toledo-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
    line-height: 1;
}

.toledo-popup-close:hover {
    background: #f5f5f5;
    color: #333;
    border-radius: 50%;
}

.toledo-popup-close:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    border-radius: 50%;
}

.toledo-popup-text {
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
    white-space: pre-wrap;
    padding-right: 3rem;
}

.toledo-popup-text h1,
.toledo-popup-text h2,
.toledo-popup-text h3,
.toledo-popup-text h4,
.toledo-popup-text h5,
.toledo-popup-text h6 {
    color: #333;
    margin-top: 0;
    margin-bottom: 1rem;
}

.toledo-popup-text h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

.toledo-popup-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.toledo-popup-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.toledo-popup-text p:last-child {
    margin-bottom: 0;
}

.toledo-popup-text a {
    color: #007cba;
    text-decoration: underline;
}

.toledo-popup-text a:hover {
    color: #005a87;
}

.toledo-popup-text strong {
    font-weight: 600;
}

.toledo-popup-text ul,
.toledo-popup-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.toledo-popup-text li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toledo-popup {
        width: 95vw;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        margin: 0;
    }
    
    .toledo-popup.toledo-popup-open {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .toledo-popup.toledo-popup-closing {
        transform: translate(-50%, -50%) scale(0.95);
    }
    
    .toledo-popup-content {
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .toledo-popup-text h1 {
        font-size: 1.5rem;
    }
    
    .toledo-popup-text h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .toledo-popup-content {
        padding: 1rem;
    }
    
    .toledo-popup-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        font-size: 1.25rem;
        line-height: 1;
    }
}