/* 
 * 33FIGs Event Planner AI - Public Styles
 * Designed to integrate seamlessly with any WordPress theme
 */

/* Event List */
.epa-events-container {
    margin: 2rem 0;
}

.epa-event-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #8B5CF6;
}

.epa-event-item:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.epa-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.epa-event-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 0.5rem 0;
}

.epa-event-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.875rem;
}

.epa-event-description {
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.epa-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.epa-event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.875rem;
}

.epa-event-actions {
    display: flex;
    gap: 0.75rem;
}

/* Event Details */
.epa-event-details {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.epa-event-details-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #E5E7EB;
}

.epa-event-details-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
}

.epa-event-details-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.epa-info-card {
    background: #F9FAFB;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #8B5CF6;
}

.epa-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.epa-info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1F2937;
}

/* Registration Form */
.epa-registration-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.epa-form-header {
    margin-bottom: 2rem;
}

.epa-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.epa-form-description {
    color: #6B7280;
    line-height: 1.6;
}

.epa-form-field {
    margin-bottom: 1.5rem;
}

.epa-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.epa-form-label .required {
    color: #EF4444;
    margin-left: 0.25rem;
}

.epa-input,
.epa-textarea,
.epa-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.epa-input:focus,
.epa-textarea:focus,
.epa-select:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.epa-textarea {
    min-height: 120px;
    resize: vertical;
}

.epa-option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

.epa-option-label input[type="radio"],
.epa-option-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Ticket Selector */
.epa-ticket-selector {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.epa-tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.epa-ticket-card {
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.epa-ticket-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.epa-ticket-card.selected {
    border-color: #8B5CF6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.epa-ticket-type {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.epa-ticket-price {
    font-size: 2rem;
    font-weight: 700;
    color: #8B5CF6;
    margin-bottom: 0.75rem;
}

.epa-ticket-description {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.epa-ticket-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6B7280;
}

.epa-ticket-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.epa-quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #D1D5DB;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.epa-quantity-btn:hover {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: #ffffff;
}

.epa-quantity-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Buttons */
.epa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.epa-btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #ffffff;
}

.epa-btn-primary:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.epa-btn-secondary {
    background: #F3F4F6;
    color: #374151;
}

.epa-btn-secondary:hover {
    background: #E5E7EB;
}

.epa-btn-outline {
    background: transparent;
    border: 2px solid #8B5CF6;
    color: #8B5CF6;
}

.epa-btn-outline:hover {
    background: #8B5CF6;
    color: #ffffff;
}

.epa-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* Loading State */
.epa-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.epa-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: epa-spin 0.8s linear infinite;
}

@keyframes epa-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.epa-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.epa-message-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10B981;
    color: #065F46;
}

.epa-message-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.epa-message-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #F59E0B;
    color: #92400E;
}

.epa-message-info {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid #8B5CF6;
    color: #5B21B6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .epa-event-header {
        flex-direction: column;
    }

    .epa-event-actions {
        width: 100%;
        margin-top: 1rem;
    }

    .epa-event-actions .epa-btn {
        flex: 1;
    }

    .epa-tickets-grid {
        grid-template-columns: 1fr;
    }

    .epa-event-details-info {
        grid-template-columns: 1fr;
    }
}

/* Custom Form Styles */
.epa-custom-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.epa-field-text,
.epa-field-email,
.epa-field-tel,
.epa-field-url,
.epa-field-number,
.epa-field-date,
.epa-field-textarea,
.epa-field-select,
.epa-field-radio,
.epa-field-checkbox {
    margin-bottom: 1.5rem;
}

/* Progress Bar for Multi-step Forms */
.epa-progress-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.epa-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 100%);
    transition: width 0.3s ease;
}

/* Accessibility */
.epa-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {

    .epa-btn,
    .epa-event-actions {
        display: none;
    }

    .epa-event-item,
    .epa-event-details,
    .epa-registration-form {
        box-shadow: none;
        border: 1px solid #E5E7EB;
    }
}