/**
 * Enhanced Responsive Styles for Church Event Manager
 */

/* Base Mobile Styles for Event Components */
@media (max-width: 768px) {
    /* Horizontal Card Improvements */
    .church-event-horizontal-card .church-event-horizontal-inner {
        flex-direction: column;
    }
    
    .church-event-horizontal-image {
        width: 100%;
        height: 200px;
    }
    
    .church-event-horizontal-content {
        width: 100%;
        padding: 15px;
    }
    
    .church-event-horizontal-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .church-event-horizontal-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .church-event-horizontal-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Grid Layout Adjustments */
    .church-events-list.double-column,
    .church-events-list.triple-column {
        grid-template-columns: 1fr;
    }
    
    /* Single Event View Improvements */
    .church-event-single-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .church-event-single-button {
        justify-content: center;
    }
    
    .church-event-single-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .church-event-single-title {
        font-size: 24px;
    }
    
    /* Category Filter Adjustments */
    .church-event-filter-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .church-event-filter-options {
        margin-top: 10px;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .church-event-filter-item {
        display: inline-block;
    }
    
    /* Registration Form Improvements */
    .church-event-form-row input[type="text"],
    .church-event-form-row input[type="email"],
    .church-event-form-row input[type="tel"],
    .church-event-form-row textarea {
        font-size: 16px; /* Prevent zoom on mobile */
    }
}

/* Extra small device enhancements */
@media (max-width: 480px) {
    .church-event-horizontal-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .church-event-horizontal-meta-item {
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .church-event-horizontal-title {
        font-size: 18px;
    }
    
    .church-event-horizontal-description {
        margin-bottom: 15px;
    }
    
    .church-event-single-meta-item {
        margin-bottom: 12px;
    }
    
    .church-event-view-toggle {
        flex-direction: column;
        gap: 8px;
    }
    
    .church-event-view-button {
        width: 100%;
        justify-content: center;
    }
    
    /* Make sure search works well on mobile */
    .church-event-search-input-group {
        flex-direction: column;
    }
    
    .church-event-search-field {
        border-radius: 6px;
        margin-bottom: 8px;
    }
    
    .church-event-search-submit {
        border-radius: 6px;
        width: 100%;
        padding: 10px;
    }
    
    .church-event-advanced-search-options .church-event-search-row {
        flex-direction: column;
    }
}

/* Print styles for events (for printing calendar or event details) */
@media print {
    .church-event-template-wrapper {
        margin: 0;
    }
    
    .church-event-filter,
    .church-event-search-container,
    .church-event-view-toggle,
    .church-event-single-actions,
    .church-event-single-footer {
        display: none !important;
    }
    
    .church-event-single-content,
    .church-event-horizontal-content {
        padding: 0;
    }
    
    .church-event-calendar-event {
        break-inside: avoid;
    }
}