/**
 * Azure Events Hub - Public Styles
 * المسار: assets/css/public.css
 */

/* ==================== 
   Base Styles 
==================== */
.aeh-public-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

.aeh-public-container * {
    box-sizing: border-box;
}

/* ==================== 
   Buttons 
==================== */
.aeh-btn-public {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.aeh-btn-public:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.aeh-btn-public:active {
    transform: translateY(0);
}

.aeh-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.aeh-btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* ==================== 
   Cards 
==================== */
.aeh-public-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.aeh-public-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.aeh-card-gradient-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
}

.aeh-card-gradient-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.aeh-card-gradient-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* ==================== 
   Forms 
==================== */
.aeh-form-field {
    margin-bottom: 20px;
}

.aeh-form-label-public {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.aeh-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    background: #fff;
}

.aeh-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.aeh-form-input::placeholder {
    color: #94a3b8;
}

.aeh-form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.aeh-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.aeh-form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
}

.aeh-form-radio,
.aeh-form-checkbox {
    margin-bottom: 12px;
}

.aeh-form-radio label,
.aeh-form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.aeh-form-radio label:hover,
.aeh-form-checkbox label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.aeh-form-radio input:checked + label,
.aeh-form-checkbox input:checked + label {
    border-color: #667eea;
    background: #f0f4ff;
}

/* ==================== 
   Alerts & Messages 
==================== */
.aeh-alert-public {
    padding: 18px 24px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 15px;
}

.aeh-alert-success {
    background: #d1fae5;
    border-right: 4px solid #10b981;
    color: #065f46;
}

.aeh-alert-warning {
    background: #fef3c7;
    border-right: 4px solid #f59e0b;
    color: #92400e;
}

.aeh-alert-error {
    background: #fee2e2;
    border-right: 4px solid #ef4444;
    color: #991b1b;
}

.aeh-alert-info {
    background: #dbeafe;
    border-right: 4px solid #3b82f6;
    color: #1e40af;
}

/* ==================== 
   Status Badges 
==================== */
.aeh-status-public {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}

.aeh-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.aeh-status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.aeh-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* ==================== 
   Event Details 
==================== */
.aeh-event-details-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid #bae6fd;
}

.aeh-event-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #bae6fd;
}

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

.aeh-event-detail-icon {
    font-size: 20px;
}

.aeh-event-detail-label {
    font-weight: 600;
    color: #0c4a6e;
    min-width: 80px;
}

.aeh-event-detail-value {
    color: #0369a1;
}

/* ==================== 
   Guest Info 
==================== */
.aeh-guest-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.aeh-guest-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.aeh-guest-info {
    flex: 1;
}

.aeh-guest-greeting {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 5px 0;
}

.aeh-guest-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #1e293b;
}

.aeh-guest-meta {
    font-size: 14px;
    color: #64748b;
}

/* ==================== 
   QR Code Display 
==================== */
.aeh-qr-container {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 25px 0;
}

.aeh-qr-code-image {
    max-width: 250px;
    margin: 0 auto 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aeh-qr-code-label {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 8px 0;
}

.aeh-unique-code {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    background: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    letter-spacing: 2px;
}

/* ==================== 
   Loading & Spinner 
==================== */
.aeh-loading-public {
    text-align: center;
    padding: 60px 20px;
}

.aeh-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: aeh-spin 1s linear infinite;
}

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

/* ==================== 
   Success/Error Pages 
==================== */
.aeh-result-page {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 40px 20px;
}

.aeh-result-icon {
    font-size: 80px;
    margin-bottom: 25px;
    animation: aeh-bounce 0.6s ease;
}

@keyframes aeh-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.aeh-result-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1e293b;
}

.aeh-result-message {
    font-size: 18px;
    color: #64748b;
    margin: 0 0 35px 0;
}

/* ==================== 
   Responsive 
==================== */
@media (max-width: 768px) {
    .aeh-card-gradient-header h1 {
        font-size: 24px;
    }
    
    .aeh-card-gradient-header p {
        font-size: 14px;
    }
    
    .aeh-guest-card {
        flex-direction: column;
        text-align: center;
    }
    
    .aeh-guest-name {
        font-size: 20px;
    }
    
    .aeh-btn-public {
        width: 100%;
    }
    
    .aeh-event-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .aeh-result-title {
        font-size: 24px;
    }
    
    .aeh-result-message {
        font-size: 16px;
    }
}

/* ==================== 
   Print Styles 
==================== */
@media print {
    .aeh-btn-public,
    .aeh-form-field {
        display: none !important;
    }
    
    .aeh-public-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .aeh-qr-code-image {
        page-break-inside: avoid;
    }
}