/**
 * Hajj & Umrah Module - Unified Styles
 * Premium Islamic-themed design system
 */

/* ====================
   CSS Variables
   ==================== */
:root {
    --hu-primary: #1a5f3c;
    --hu-primary-light: #2d8659;
    --hu-primary-dark: #0d3d26;
    --hu-hajj: #8B4513;
    --hu-hajj-dark: #5a3009;
    --hu-gold: #d4af37;
    --hu-gold-light: #f0d775;
    --hu-success: #28a745;
    --hu-warning: #ffc107;
    --hu-danger: #dc3545;
    --hu-gradient: linear-gradient(135deg, var(--hu-primary), var(--hu-primary-dark));
    --hu-hajj-gradient: linear-gradient(135deg, var(--hu-hajj), var(--hu-hajj-dark));
    --hu-gold-gradient: linear-gradient(135deg, var(--hu-gold), var(--hu-gold-light));
    --hu-shadow: 0 10px 40px rgba(0,0,0,0.1);
    --hu-shadow-hover: 0 20px 50px rgba(0,0,0,0.15);
    --hu-radius: 16px;
    --hu-radius-sm: 12px;
    --hu-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================
   Typography
   ==================== */
.hu-heading {
    font-weight: 700;
    color: var(--hu-primary-dark);
}
.hu-arabic {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    direction: rtl;
    text-align: right;
    line-height: 2;
}

/* ====================
   Premium Animations
   ==================== */
@keyframes hu-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes hu-slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hu-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes hu-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes hu-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes hu-kaaba-rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}
@keyframes hu-golden-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes hu-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}
@keyframes hu-skeleton {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* ====================
   Premium Kaaba Loader
   ==================== */
.hu-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}
.hu-loader-kaaba {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hu-loader-kaaba .kaaba-icon {
    font-size: 48px;
    animation: hu-kaaba-rotate 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}
.hu-loader-kaaba .golden-orbit {
    position: absolute;
    width: 90px;
    height: 90px;
    border: 3px solid transparent;
    border-top-color: var(--hu-gold);
    border-right-color: var(--hu-gold-light);
    border-radius: 50%;
    animation: hu-golden-ring 1.5s linear infinite;
}
.hu-loader-kaaba .outer-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(26, 95, 60, 0.2);
    border-radius: 50%;
    animation: hu-glow 2s ease-in-out infinite;
}
.hu-loader-particles {
    position: absolute;
    width: 120px;
    height: 120px;
}
.hu-loader-particles span {
    position: absolute;
    font-size: 10px;
    animation: hu-float 3s ease-in-out infinite;
}
.hu-loader-particles span:nth-child(1) { top: 0; left: 50%; animation-delay: 0s; }
.hu-loader-particles span:nth-child(2) { top: 25%; right: 0; animation-delay: 0.5s; }
.hu-loader-particles span:nth-child(3) { bottom: 25%; right: 0; animation-delay: 1s; }
.hu-loader-particles span:nth-child(4) { bottom: 0; left: 50%; animation-delay: 1.5s; }
.hu-loader-particles span:nth-child(5) { bottom: 25%; left: 0; animation-delay: 2s; }
.hu-loader-particles span:nth-child(6) { top: 25%; left: 0; animation-delay: 2.5s; }
.hu-loader-text {
    margin-top: 20px;
    font-size: 14px;
    color: var(--hu-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hu-loader-dots span {
    animation: hu-pulse 1s ease-in-out infinite;
    display: inline-block;
}
.hu-loader-dots span:nth-child(1) { animation-delay: 0s; }
.hu-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.hu-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Compact Loader */
.hu-loader-sm {
    padding: 30px 0;
}
.hu-loader-sm .hu-loader-kaaba {
    width: 60px;
    height: 60px;
}
.hu-loader-sm .kaaba-icon {
    font-size: 28px;
}
.hu-loader-sm .golden-orbit {
    width: 50px;
    height: 50px;
    border-width: 2px;
}
.hu-loader-sm .outer-ring {
    width: 60px;
    height: 60px;
}
.hu-loader-sm .hu-loader-text {
    font-size: 11px;
    margin-top: 12px;
}

/* ====================
   Skeleton Loaders
   ==================== */
.hu-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: hu-skeleton 1.2s ease-in-out infinite;
    border-radius: 4px;
}
.hu-skeleton-card {
    background: #fff;
    border-radius: var(--hu-radius);
    padding: 20px;
    box-shadow: var(--hu-shadow);
}
.hu-skeleton-card .image {
    height: 180px;
    border-radius: var(--hu-radius-sm);
    margin-bottom: 15px;
}
.hu-skeleton-card .title {
    height: 20px;
    width: 70%;
    margin-bottom: 10px;
}
.hu-skeleton-card .text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}
.hu-skeleton-card .text.short {
    width: 60%;
}
.hu-skeleton-card .btn-area {
    height: 40px;
    width: 100%;
    margin-top: 15px;
}

/* ====================
   Premium Cards
   ==================== */
.hu-card {
    background: #fff;
    border: none;
    border-radius: var(--hu-radius);
    box-shadow: var(--hu-shadow);
    transition: var(--hu-transition);
    overflow: hidden;
}
.hu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hu-shadow-hover);
}
.hu-card-image {
    position: relative;
    overflow: hidden;
}
.hu-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}
.hu-card:hover .hu-card-image img {
    transform: scale(1.1);
}
.hu-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.hu-card-badge.umrah {
    background: var(--hu-primary);
    color: white;
}
.hu-card-badge.hajj {
    background: var(--hu-hajj);
    color: white;
}
.hu-card-badge.featured {
    background: var(--hu-gold-gradient);
    color: #333;
}
.hu-card-badge.urgency {
    background: var(--hu-danger);
    color: white;
    animation: hu-pulse 2s infinite;
}
.hu-card-body {
    padding: 20px;
}
.hu-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.hu-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.hu-card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}
.hu-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}
.hu-card-price .amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--hu-primary);
}
.hu-card-price .label {
    font-size: 12px;
    color: #999;
}
.hu-card-countdown {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

/* ====================
   Buttons
   ==================== */
.hu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--hu-transition);
    border: none;
    cursor: pointer;
}
.hu-btn-primary {
    background: var(--hu-gradient);
    color: white;
}
.hu-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 95, 60, 0.4);
    color: white;
}
.hu-btn-gold {
    background: var(--hu-gold-gradient);
    color: #333;
}
.hu-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}
.hu-btn-outline {
    background: transparent;
    border: 2px solid var(--hu-primary);
    color: var(--hu-primary);
}
.hu-btn-outline:hover {
    background: var(--hu-primary);
    color: white;
}
.hu-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
.hu-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}
.hu-btn-block {
    width: 100%;
}

/* ====================
   Hero Section
   ==================== */
.hu-hero {
    background: var(--hu-gradient);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    padding: 60px 0;
}
.hu-hero.hajj {
    background: var(--hu-hajj-gradient);
}
.hu-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></svg>') repeat;
    animation: hu-float 6s ease-in-out infinite;
}
.hu-hero-content {
    position: relative;
    z-index: 1;
    animation: hu-slideUp 0.8s ease-out;
}
.hu-hero-badge {
    display: inline-block;
    background: var(--hu-gold-gradient);
    color: #333;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    animation: hu-shimmer 3s infinite;
    background-size: 200% 100%;
}

/* ====================
   Progress & Stats
   ==================== */
.hu-progress {
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.hu-progress-bar {
    height: 100%;
    background: var(--hu-gradient);
    transition: width 0.5s ease;
    border-radius: 3px;
}
.hu-progress-bar.warning {
    background: var(--hu-warning);
}
.hu-progress-bar.danger {
    background: var(--hu-danger);
}
.hu-stat-card {
    background: white;
    border-radius: var(--hu-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--hu-shadow);
    transition: var(--hu-transition);
}
.hu-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hu-shadow-hover);
}
.hu-stat-icon {
    width: 60px;
    height: 60px;
    background: var(--hu-gradient);
    border-radius: var(--hu-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}
.hu-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--hu-primary-dark);
}
.hu-stat-label {
    font-size: 14px;
    color: #666;
}

/* ====================
   Tabs
   ==================== */
.hu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.hu-tab {
    padding: 15px 25px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--hu-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--hu-transition);
}
.hu-tab:hover {
    border-color: var(--hu-primary);
    background: rgba(26, 95, 60, 0.05);
}
.hu-tab.active {
    background: var(--hu-primary);
    border-color: var(--hu-primary);
    color: white;
}

/* ====================
   Alerts & Badges
   ==================== */
.hu-alert {
    padding: 15px 20px;
    border-radius: var(--hu-radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.hu-alert-info {
    background: rgba(26, 95, 60, 0.1);
    color: var(--hu-primary-dark);
}
.hu-alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}
.hu-alert-success {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
}
.hu-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.hu-badge-primary {
    background: var(--hu-primary);
    color: white;
}
.hu-badge-gold {
    background: var(--hu-gold);
    color: #333;
}
.hu-badge-outline {
    background: transparent;
    border: 1px solid var(--hu-primary);
    color: var(--hu-primary);
}

/* ====================
   Form Elements
   ==================== */
.hu-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: var(--hu-radius-sm);
    font-size: 15px;
    transition: var(--hu-transition);
}
.hu-input:focus {
    outline: none;
    border-color: var(--hu-primary);
    box-shadow: 0 0 0 4px rgba(26, 95, 60, 0.1);
}
.hu-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}
.hu-checkbox {
    width: 22px;
    height: 22px;
    accent-color: var(--hu-primary);
    cursor: pointer;
}

/* ====================
   Mobile Responsiveness
   ==================== */
@media (max-width: 768px) {
    .hu-hero {
        min-height: 300px;
        padding: 40px 0;
    }
    .hu-card-image img {
        height: 180px;
    }
    .hu-tabs {
        flex-direction: column;
    }
    .hu-tab {
        text-align: center;
    }
    .hu-loader {
        padding: 40px 0;
    }
    .hu-loader-kaaba {
        width: 80px;
        height: 80px;
    }
    .hu-loader-kaaba .kaaba-icon {
        font-size: 36px;
    }
}

/* ====================
   Utility Classes
   ==================== */
.hu-animate-float { animation: hu-float 4s ease-in-out infinite; }
.hu-animate-pulse { animation: hu-pulse 2s ease-in-out infinite; }
.hu-animate-fadeIn { animation: hu-fadeIn 0.5s ease-out; }
.hu-animate-slideUp { animation: hu-slideUp 0.5s ease-out; }
.hu-text-primary { color: var(--hu-primary); }
.hu-text-gold { color: var(--hu-gold); }
.hu-bg-gradient { background: var(--hu-gradient); }
.hu-shadow { box-shadow: var(--hu-shadow); }
.hu-rounded { border-radius: var(--hu-radius); }
