/* TLTChurch Registration Plugin Styles */

/* CSS Variables (can be overridden via admin settings) */
:root {
    --tltchurch-primary: #3b82f6;
    --tltchurch-secondary: #2563eb;
    --tltchurch-text: #333333;
    --tltchurch-bg: #ffffff;
    --tltchurch-radius: 12px;
    --tltchurch-font-size: 16px;
}

.tltchurch-registration-form,
.tltchurch-events {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: var(--tltchurch-bg);
    border-radius: var(--tltchurch-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.tltchurch-form-group {
    margin-bottom: 20px;
}

.tltchurch-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--tltchurch-text);
    font-size: calc(var(--tltchurch-font-size) - 2px);
}

.tltchurch-form-group input,
.tltchurch-form-group select,
.tltchurch-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: var(--tltchurch-font-size);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    color: var(--tltchurch-text);
}

.tltchurch-form-group input:focus,
.tltchurch-form-group select:focus,
.tltchurch-form-group textarea:focus {
    outline: none;
    border-color: var(--tltchurch-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tltchurch-form-row {
    display: flex;
    gap: 20px;
}

.tltchurch-form-row .tltchurch-form-group {
    flex: 1;
}

.tltchurch-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.tltchurch-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--tltchurch-primary);
}

.tltchurch-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--tltchurch-primary), var(--tltchurch-secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: var(--tltchurch-font-size);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tltchurch-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.tltchurch-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tltchurch-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.tltchurch-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.tltchurch-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.tltchurch-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Events List Styles */
.tltchurch-event-card {
    background: #f8fafc;
    border-radius: var(--tltchurch-radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tltchurch-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tltchurch-event-card h3 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 18px;
}

.tltchurch-event-card .event-date {
    color: var(--tltchurch-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.tltchurch-event-card .event-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.tltchurch-event-card .event-banner {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.tltchurch-event-card .event-qr {
    margin-top: 15px;
    text-align: center;
}

.tltchurch-event-card .event-qr-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.tltchurch-event-card .event-register-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--tltchurch-primary), var(--tltchurch-secondary));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tltchurch-event-card .event-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* QR Code Styles */
.tltchurch-qr-container {
    text-align: center;
    padding: 20px;
}

.tltchurch-qr-code {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: var(--tltchurch-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tltchurch-qr-code img {
    display: block;
}

.tltchurch-qr-text {
    margin-top: 15px;
    color: #6b7280;
    font-size: 14px;
}

/* Widget Styles */
.tltchurch-widget-event {
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.tltchurch-widget-banner {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.tltchurch-widget-title {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
}

.tltchurch-widget-date {
    color: var(--tltchurch-primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.tltchurch-widget-desc {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.tltchurch-widget-qr {
    text-align: center;
    margin: 15px 0;
}

.tltchurch-widget-qr img {
    border-radius: 8px;
}

.tltchurch-widget-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--tltchurch-primary), var(--tltchurch-secondary));
    color: white !important;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.tltchurch-widget-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    text-decoration: none;
}

.tltchurch-widget-empty,
.tltchurch-widget-error {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .tltchurch-registration-form,
    .tltchurch-events {
        padding: 20px;
        margin: 10px;
    }
    
    .tltchurch-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .tltchurch-qr-code {
        padding: 10px;
    }
}

/* Admin Styles */
.wrap .tltchurch-registration-form {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
