/* Add to Calendar Button Styles */

/* Modal Overlay */
.awecal-calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.awecal-calendar-modal.awecal-calendar-modal-open {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.75);
}

.awecal-calendar-modal.awecal-calendar-modal-closing {
    opacity: 0;
}

/* Modal Content */
.awecal-calendar-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.awecal-calendar-modal-open .awecal-calendar-modal-content {
    transform: scale(1);
}

.awecal-calendar-modal-closing .awecal-calendar-modal-content {
    transform: scale(0.9);
}

/* Modal Header */
.awecal-calendar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.awecal-calendar-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.awecal-calendar-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.awecal-calendar-modal-close:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

/* Modal Body */
.awecal-calendar-modal-body {
    padding: 24px;
}

.awecal-calendar-modal-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 0.95rem;
}

/* Calendar Options */
.awecal-calendar-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.awecal-calendar-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.awecal-calendar-option:hover {
    border-color: #0073aa;
    background-color: #f5f9fc;
    transform: translateX(4px);
}

.awecal-calendar-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.awecal-calendar-option svg.awecal-calendar-icon {
    color: #0073aa;
}

.awecal-calendar-option span {
    flex: 1;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .awecal-calendar-modal-content {
        width: 95%;
        margin: 20px;
    }

    .awecal-calendar-modal-header {
        padding: 16px;
    }

    .awecal-calendar-modal-header h3 {
        font-size: 1.25rem;
    }

    .awecal-calendar-modal-body {
        padding: 16px;
    }

    .awecal-calendar-option {
        padding: 12px 16px;
    }
}

/* Editor Styles */
.editor-styles-wrapper .is-style-add-to-calendar {
    position: relative;
}

.editor-styles-wrapper .is-style-add-to-calendar::after {
    content: '📅';
    margin-left: 8px;
}
