/**
 * MUFTI ZUBAIR ISLAMIC HUB - Premium Clean Islamic Styling
 * White background, elegant cards, mobile-first, fast loading
 */

:root {
    --mzih-green: #059669;
    --mzih-green-dark: #047857;
    --mzih-gold: #c5a26f;
}

body.mzih-islamic-hub {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Arabic / RTL support */
.font-arabic {
    font-family: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
    font-feature-settings: "kern" "liga" "clig" "calt";
}

/* Premium Card Style */
.mzih-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.2s cubic-bezier(0.4, 0.0, 0.2, 1),
                border-color 0.2s;
}

.mzih-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    border-color: #e2e8f0;
}

/* Input & Select Styles */
.mzih-input,
.mzih-select {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 13px 18px;
    font-size: 15px;
    transition: all 0.2s;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.mzih-input:focus,
.mzih-select:focus {
    outline: none;
    border-color: var(--mzih-green);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.mzih-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 42px;
}

/* Tabs */
.mzih-tab {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    cursor: pointer;
}

.mzih-tab.active {
    color: var(--mzih-green);
    border-bottom-color: var(--mzih-green);
    font-weight: 600;
}

/* Pills / Category buttons */
.mzih-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 9999px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.15s;
    cursor: pointer;
    white-space: nowrap;
}

.mzih-pill:hover {
    background: #f1f5f9;
}

.mzih-pill.active {
    background: var(--mzih-green);
    color: white;
    border-color: var(--mzih-green);
}

/* Tasbeeh specific */
.mzih-preset-btn {
    padding: 8px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 9999px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #334155;
    transition: all 0.2s;
}

.mzih-preset-btn.active,
.mzih-preset-btn:hover {
    border-color: var(--mzih-green);
    color: var(--mzih-green);
    background: #ecfdf5;
}

/* Admin Styles */
.mzih-admin-wrap {
    max-width: 1100px;
}

.mzih-admin-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

/* Hub Hero */
.mzih-hub-hero {
    text-align: center;
    padding: 40px 20px 20px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .mzih-card {
        padding: 18px;
        border-radius: 16px;
    }
    
    .mzih-input, .mzih-select {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* Subtle Islamic accent */
.mzih-module h1 {
    position: relative;
    display: inline-block;
}

.mzih-module h1:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(to right, var(--mzih-green), var(--mzih-gold));
    border-radius: 3px;
}

/* Loading / Error states */
.mzih-module .loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print friendly */
@media print {
    .mzih-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
