/* ==========================================================================
   Amelia Next Events (by Dani) - Plugin Styles
   ========================================================================== */

/* Block Editor Preview Styles */
.amelia-next-event-preview,
.amelia-next-events-preview {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Single Next Event Block Styles
   ========================================================================== */

.amelia-next-event-container {
    margin: 20px 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.amelia-next-event-header {
    background: var(--inner-gold);
    color: white;
    padding: 15px 20px;
    margin: 0;
}

.amelia-next-event-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.amelia-next-event-content {
    padding: 0;
}
.am-elf{
    background-color: transparent !important;
}

.amelia-next-event-notice {
    padding: 15px 20px;
    background: #f0f8ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    margin: 20px 0;
}

.amelia-next-event-notice p {
    margin: 0;
    color: #0073aa;
}

/* ==========================================================================
   Multiple Events Block Styles
   ========================================================================== */

.amelia-next-events-container {
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.amelia-next-events-header {
    background: var(--inner-gold);
    color: white;
    padding: 15px 20px;
    margin: 0;
}

.amelia-next-events-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.amelia-next-events-list {
    padding: 0;
    background: #fff;
}

.amelia-event-item {
    border-bottom: 1px solid #eee;
    margin: 0;
}

.amelia-event-item:last-child {
    border-bottom: none;
}

.amelia-event-content {
    padding: 0;
}

.amelia-next-events-notice {
    padding: 15px 20px;
    background: #fef7f7;
    border: 1px solid #d63638;
    border-radius: 4px;
    margin: 20px 0;
}

.amelia-next-events-notice p {
    margin: 0;
    color: #d63638;
}

/* ==========================================================================
   Calendar Link Button Styles
   ========================================================================== */

.amelia-calendar-link-container {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.amelia-calendar-link-btn {
    display: inline-block;
    background-color: #7c3e2d;
    color: #F4EFEC;
    text-decoration: none;
    padding: 15px 25px;
    border: 2px solid #7c3e2d;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s ease;
    box-shadow: none;
}

.amelia-calendar-link-btn:hover {
    background-color: #F4EFEC;
    color: #7c3e2d;
    border: 2px solid #7c3e2d;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.amelia-calendar-link-btn:focus {
    outline: 2px solid #7c3e2d;
    outline-offset: 2px;
    color: #7c3e2d;
    text-decoration: none;
    background-color: #F4EFEC;
    border: 2px solid #7c3e2d;
}

/* Deprecated load more styles - can be removed in future versions */
.amelia-load-more-container,
.amelia-load-more-btn,
.amelia-load-more-spinner,
.amelia-load-more-error-message {
    display: none;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .amelia-next-event-container,
    .amelia-next-events-container {
        margin: 15px 0;
        border-radius: 4px;
    }
    
    .amelia-next-event-header,
    .amelia-next-events-header {
        padding: 12px 15px;
    }
    
    .amelia-next-event-header h3,
    .amelia-next-events-header h3 {
        font-size: 16px;
    }
    
    .amelia-calendar-link-container {
        padding: 15px;
    }
    
    .amelia-calendar-link-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Integration with Amelia's Native Styles
   ========================================================================== */

/* Ensure Amelia's booking forms display properly within our containers */
.amelia-next-event-content .amelia-booking,
.amelia-event-content .amelia-booking {
    margin: 0;
    padding: 20px;
}

/* Override any potential conflicts with Amelia's styles */
.amelia-next-event-container .amelia-booking *,
.amelia-next-events-container .amelia-booking * {
    box-sizing: border-box;
}

/* Ensure proper spacing for Amelia forms */
.amelia-next-event-content > div:first-child,
.amelia-event-content > div:first-child {
    margin-top: 0;
}

.amelia-next-event-content > div:last-child,
.amelia-event-content > div:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Admin Editor Styles
   ========================================================================== */

.wp-block-amelia-dani-next-event,
.wp-block-amelia-dani-next-events {
    max-width: 100%;
}

/* Loading states in editor */
.amelia-tags-loading {
    text-align: center;
    padding: 10px;
    color: #666;
    font-style: italic;
}

.amelia-tags-error {
    padding: 10px;
    background: #fef7f7;
    border: 1px solid #d63638;
    border-radius: 4px;
    color: #d63638;
    font-size: 12px;
}
