/* assets/css/style.css - Zawaj VIP Theme */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --primary-color: #d81b60;
    --primary-hover: #c2185b;
    --secondary-color: #ad1457;
    --accent-gold: #d4af37;
    --gold-light: #fff8e1;
    --dark-bg: #2b0b18;
    --light-bg: #fff5f8;
    --text-color: #2c3e50;
    --shadow-soft: 0 10px 30px rgba(216, 27, 96, 0.12);
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-custom {
    background: linear-gradient(135deg, #880e4f 0%, #d81b60 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff !important;
}

.navbar-brand span {
    color: var(--accent-gold);
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(43, 11, 24, 0.82), rgba(136, 14, 79, 0.88)), url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
    color: #fff;
    padding: 75px 0 60px 0;
    border-bottom: 5px solid var(--accent-gold);
    border-radius: 0 0 30px 30px;
}

.hero-title {
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #fce4ec;
    font-weight: 500;
}

.vip-badge-glow {
    background: linear-gradient(45deg, #ffd700, #ff9800);
    color: #4a001f;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    display: inline-block;
}

/* Search Box */
.search-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 2px solid #f8bbd0;
    padding: 25px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

/* Feature Cards */
.feature-box {
    background: #fff;
    border-radius: 18px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #fce4ec;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f8bbd0 0%, #f48fb1 100%);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
}

/* VIP Special Offer Card */
.vip-pricing-card {
    background: linear-gradient(145deg, #ffffff 0%, #fff0f5 100%);
    border: 3px solid var(--accent-gold);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
    position: relative;
}

.vip-pricing-header {
    background: linear-gradient(135deg, #ad1457 0%, #880e4f 100%);
    color: #fff;
    padding: 25px;
    text-align: center;
}

.price-tag {
    font-size: 3.5rem;
    font-weight: 900;
    color: #d81b60;
}

.price-tag span {
    font-size: 1.5rem;
    color: #666;
}

/* Profile Card */
.profile-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid #f8bbd0;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.profile-img-container {
    height: 220px;
    background: #fce4ec;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    color: #b07a8f;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.profile-photo-placeholder span {
    font-size: 0.78rem;
    font-weight: 700;
}

/* الصورة الشخصية مشوّشة حتى يفعّل صاحب الحساب إظهارها للعامة */
.profile-img-blurred {
    filter: blur(11px) saturate(0.7);
    transform: scale(1.25);
}

/* تشويش مضمون يعمل في كل مكان (بحث / ملف شخصي / محادثة) */
img.blurred {
    filter: blur(11px) saturate(0.7);
    transform: scale(1.25);
    user-select: none;
    -webkit-user-select: none;
}

.photo-blur-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 2;
}

/* =========================================================
   تصفية نتائج البحث: سكرول مستقل جوه الكارت
   عشان ما تضطرش تسكرول الصفحة كلها عشان توصل لآخر فلتر
   ========================================================= */
.search-filter-card {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #f8bbd0 transparent;
}

.search-filter-card::-webkit-scrollbar {
    width: 7px;
}

.search-filter-card::-webkit-scrollbar-track {
    background: transparent;
}

.search-filter-card::-webkit-scrollbar-thumb {
    background: #f8bbd0;
    border-radius: 20px;
}

.search-filter-card::-webkit-scrollbar-thumb:hover {
    background: #f48fb1;
}

/* =========================================================
   شعار المنصة أعلى شاشتَي الدخول وإنشاء الحساب
   ========================================================= */
.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    background: linear-gradient(135deg, #ad1457, #d81b60);
    box-shadow: 0 8px 22px rgba(216, 27, 96, 0.32);
    margin-bottom: 12px;
}

.auth-brand-name {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ad1457;
    line-height: 1.25;
    margin: 0 0 4px;
    text-shadow: 0 2px 10px rgba(173, 20, 87, 0.12);
}

.auth-brand-name span {
    color: var(--accent-gold);
    background: linear-gradient(45deg, #ffd700, #ff8f00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-brand-sub {
    color: #8a6b78;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

/* عنوان الكارت (تسجيل الدخول / إنشاء حساب جديد) — ألوان صريحة عشان يبان دايماً */
.auth-card-header {
    background: linear-gradient(135deg, #ad1457, #d81b60) !important;
    color: #fff !important;
    text-align: center;
    padding: 24px 16px;
}

.auth-card-header h3 {
    color: #fff !important;
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.6;
}

.auth-card-header h3 i {
    color: #ffd700;
}

.auth-card-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.vip-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ffd700, #ff8f00);
    color: #3e2723;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.blur-phone {
    filter: blur(4px);
    user-select: none;
    opacity: 0.7;
}

/* =========================================================
   الشات / المحادثات
   ========================================================= */
.chat-list-item {
    transition: background-color 0.2s ease;
}

.chat-list-item:hover {
    background-color: var(--light-bg);
}

.chat-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8bbd0, #f48fb1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.chat-header {
    background: var(--light-bg);
    border-bottom: 1px solid #f8bbd0;
}

.chat-body {
    height: 46vh;
    min-height: 320px;
    overflow-y: auto;
    background: #faf7f8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    line-height: 1.7;
}

.chat-bubble.mine {
    align-self: flex-start; /* RTL: رسالتي على اليمين */
    background: linear-gradient(135deg, #d81b60, #ad1457);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
    align-self: flex-end;
    background: #fff;
    color: var(--text-color);
    border: 1px solid #f8bbd0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.chat-time {
    display: block;
    font-size: 0.68rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: left;
}

.chat-photos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chat-photo-item {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #f8bbd0;
    background: #fce4ec;
}

.chat-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* الصور الشخصية تبقى مشوشة حتى يضغط صاحب الحساب زر الإظهار */
.chat-photo-item img.blurred {
    filter: blur(11px) saturate(0.7);
    transform: scale(1.25);
    user-select: none;
    -webkit-user-select: none;
}

/* =========================================================
   بطاقات المواصفات (لون البشرة / الطول / الوزن / الديانة)
   ========================================================= */
.spec-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--light-bg);
    border: 1px solid #fce4ec;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
}

.spec-tag i {
    color: var(--primary-color);
}

.spec-clean {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #1b5e20;
}

.spec-warn {
    background: #fff3e0;
    border-color: #ffe0b2;
    color: #e65100;
}

/* Custom Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #d81b60 0%, #ad1457 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #c2185b 0%, #880e4f 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(216, 27, 96, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #3e2723;
    border: none;
    font-weight: 800;
    padding: 14px 35px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ffca28 0%, #ffa000 100%);
    color: #000;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2b0b18 0%, #4a0e26 100%);
    color: #fce4ec;
    padding: 50px 0 20px 0;
    margin-top: 60px;
    border-top: 4px solid var(--accent-gold);
}

footer a {
    color: #f8bbd0;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-gold);
}

/* =========================================================
   عناصر مساعدة
   ========================================================= */
.dir-ltr {
    direction: ltr;
    unicode-bidi: embed;
}

.package-card .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.package-card.selected .card {
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

html {
    scroll-behavior: smooth;
}

/* =========================================================
   التوافق مع الموبايل (Responsive)
   ========================================================= */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    .hero-section {
        padding: 55px 0 45px 0;
        border-radius: 0 0 20px 20px;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .search-card {
        margin-top: -25px;
        padding: 20px;
        border-radius: 16px;
    }
    .profile-img-container {
        height: 240px;
    }
    /* فلتر البحث لا يلتصق بالأعلى على الموبايل، وبيسير مع الصفحة بشكل طبيعي */
    .search-filter-card {
        position: static !important;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 42px 0 36px 0;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .search-card {
        margin-top: 0;
    }
    .profile-img-container {
        height: 220px;
    }
    .price-tag {
        font-size: 2.6rem;
    }
    .chat-body {
        height: 55vh;
        min-height: 260px;
    }
    .table {
        font-size: 0.9rem;
    }
    .btn-lg {
        font-size: 1rem;
        padding: 0.6rem 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .display-6 {
        font-size: 1.7rem;
    }
    .navbar-brand {
        font-size: 1.35rem;
    }
    .nav-link {
        font-size: 1rem;
    }
    .profile-img-container {
        height: 200px;
    }
    .chat-bubble {
        max-width: 88%;
    }
    .chat-photo-item {
        width: 74px;
        height: 74px;
    }
    /* الأزرار الرئيسية بعرض كامل لأسهل استخداماً باللمس */
    .mobile-full-btn {
        width: 100%;
    }
}
