/* ============================================
   سوق بلدنا - التصميم الرئيسي
   ============================================ */

:root {
    --gold-primary: #d4af37;
    --gold-light: #f4e5c2;
    --gold-dark: #aa8c2c;
    --black-luxury: #1a1a1a;
    --gray-luxury: #2d2d2d;
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e5c2 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --shadow-gold: 0 5px 20px rgba(212, 175, 55, 0.3);
    --shadow-luxury: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   البانر التسويقي
   ============================================ */
.marketing-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.marketing-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.marketing-content {
    position: relative;
    z-index: 1;
}

.marketing-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
    display: inline-block;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.marketing-text {
    color: white;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.marketing-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Responsive للموبايل */
@media (max-width: 768px) {
    .marketing-banner {
        padding: 1.5rem 1rem !important;
        border-radius: 20px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .marketing-icon {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .marketing-text {
        font-size: 1.3rem !important;
        margin-bottom: 0.3rem !important;
        line-height: 1.4 !important;
    }
    
    .marketing-subtext {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 480px) {
    .marketing-banner {
        padding: 1rem 0.8rem !important;
        border-radius: 15px !important;
    }
    
    .marketing-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .marketing-text {
        font-size: 1.1rem !important;
    }
    
    .marketing-subtext {
        font-size: 0.75rem !important;
    }
}

/* ============================================
   التأثيرات الفاخرة
   ============================================ */
.hover-shadow {
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.hover-lift-luxury {
    transition: var(--transition-smooth);
}

.hover-lift-luxury:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-luxury);
}

.fade-in-luxury {
    animation: fadeInLuxury 0.8s ease-out;
}

@keyframes fadeInLuxury {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up-luxury {
    animation: slideUpLuxury 0.6s ease-out;
}

@keyframes slideUpLuxury {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ============================================
   النصوص والتدرجات
   ============================================ */
.gradient-text-luxury {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ============================================
   البطاقات والأقسام
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-luxury);
}

.category-luxury {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.category-luxury:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.category-luxury i {
    font-size: 2.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   الأزرار
   ============================================ */
.btn {
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #146c43 0%, #105d35 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    color: #000;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

/* ============================================
   الظلال
   ============================================ */
.shadow-luxury {
    box-shadow: var(--shadow-luxury) !important;
}

/* ============================================
   التنقل (Navbar)
   ============================================ */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   الفوتر
   ============================================ */
footer {
    background: var(--gradient-dark);
    color: white;
}

/* ============================================
   تحسينات عامة
   ============================================ */
a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .marketing-text {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .marketing-text {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}
/* ============================================
   استايل Light Luxury 2027 - محدث
   ============================================ */

/* خلفية فاتحة متدرجة أنيقة */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #f5f7fa 100%) !important;
    min-height: 100vh;
}

/* البطاقات البيضاء الفاخرة */
.card {
    background: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
}

.card-title, .card-body h6 {
    color: #1a1a2e !important;
    font-weight: 700;
}

.card-body p {
    color: #555 !important;
}

.card-body small {
    color: #888 !important;
}

/* العناوين بتدرج ذهبي */
h1, h2, h3, h4, h5 {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* الأزرار الفاخرة */
.btn-primary, .btn-success, .btn-warning {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 100%) !important;
    color: #1a1a2e !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-success:hover, .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #f4e5c2 0%, #d4af37 100%) !important;
}

/* شريط التنقل الأبيض الفاخر */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    color: #d4af37 !important;
    font-weight: 800;
}

.nav-link {
    color: #333 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #d4af37 !important;
    transform: translateY(-2px);
}

/* ✅ حل مشكلة أزرار الهيدر - تظهر بوضوح */
.navbar .btn {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar .btn:hover {
    background: linear-gradient(135deg, #b8941f 0%, #d4af37 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: #ffffff !important;
}

.navbar .btn-light {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%) !important;
    color: #d4af37 !important;
    font-weight: 700;
    border: 2px solid #d4af37;
}

.navbar .btn-light:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 100%) !important;
    color: #1a1a2e !important;
}

/* ✅ البانر التسويقي بخلفية ذهبية متدرجة مميزة */
.marketing-banner {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 30%, #ffe082 70%, #ffd54f 100%) !important;
    border: 2px solid #d4af37;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.marketing-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20%, 20%); }
}

.marketing-icon {
    color: #1a1a2e !important;
    font-size: 2.5rem;
    animation: rotate 6s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.marketing-text {
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.marketing-subtext {
    color: #4a3c1a !important;
    font-weight: 600;
}

/* مربع البحث الفاخر */
.bg-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.1);
}

.bg-primary h2, .bg-primary h3, .bg-primary h4 {
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
}

.form-control {
    background: #ffffff !important;
    border: 2px solid rgba(212, 175, 55, 0.2) !important;
    color: #333 !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: #ffffff !important;
    border-color: #d4af37 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) !important;
    color: #333 !important;
}

.form-control::placeholder {
    color: #aaa !important;
}

/* الأيقونات الذهبية */
.bi-tag-fill, .bi-grid, .bi-star-fill, .bi-clock-history {
    color: #d4af37 !important;
}

/* الفوتر الفاخر */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%) !important;
    border-top: 3px solid rgba(212, 175, 55, 0.4);
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container > * {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar مخصص فاخر */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f7fa;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f4e5c2 0%, #d4af37 100%);
}
/* ============================================
   إصلاح زر القائمة في الموبايل
   ============================================ */

/* تغيير لون خطوط زر القائمة إلى الغامق */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a1a2e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* إطار ذهبي للزر */
.navbar-toggler {
    border: 2px solid rgba(212, 175, 55, 0.5) !important;
    border-radius: 8px;
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3) !important;
    outline: none;
}

/* إصلاح لون القائمة المنسدلة في الموبايل */
.navbar-collapse {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar-collapse .nav-link {
    color: #1a1a2e !important;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-collapse .nav-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37 !important;
}

.navbar-collapse .btn {
    margin-top: 10px;
    width: 100%;
}
/* ============================================
   تحسينات صفحة "إعلاناتي" - وضوح أعلى
   ============================================ */

/* تحسين وضوح النصوص */
.card-body h5 a {
    color: #1a1a2e !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.card-body h5 a:hover {
    color: #d4af37 !important;
}

/* تحسين badges الحالات */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.badge.bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

/* تحسين الأزرار */
.btn {
    font-weight: 600;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-outline-success {
    border-color: #198754;
    color: #198754;
}

.btn-outline-success:hover {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* تحسين البطاقات */
.card {
    border: 1px solid rgba(0,0,0,0.1);
    background-color: #fff;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    transform: translateY(-2px);
}

/* تحسين الصور */
.img-fluid.rounded {
    border: 2px solid #e0e0e0;
}

/* تحسين الإحصائيات */
.card-body .h4 {
    font-size: 2rem;
    font-weight: 800;
    color: #d4af37;
}

.card-body small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* تحسين الروابط */
.text-decoration-none.text-dark {
    color: #1a1a2e !important;
}

/* تحسين التباين العام */
.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #0d6efd !important;
    font-weight: 700;
}

/* تحسين العناوين */
h2 {
    color: #1a1a2e;
    font-weight: 800;
    font-size: 1.8rem;
}

/* تحسين الفلاتر */
.border-primary.bg-primary.bg-opacity-10 {
    border: 2px solid #d4af37 !important;
    background-color: rgba(212, 175, 55, 0.15) !important;
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
    .card-body h5 a {
        font-size: 1rem;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .img-fluid.rounded {
        height: 100px !important;
    }
}
/* إصلاح صندوق الرسائل في الموبايل */
@media (max-width: 768px) {
    .chat-view {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: #fff !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
    }
    
    .chat-view-header {
        position: sticky !important;
        top: 0 !important;
        background: #fff !important;
        z-index: 10 !important;
        flex-shrink: 0 !important;
    }
    
    .chat-view-body {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 15px !important;
        padding-bottom: 80px !important; /* مساحة لصندوق الإدخال */
        background: #f5f5f5 !important;
    }
    
    .chat-view-footer {
        position: sticky !important;
        bottom: 0 !important;
        background: #fff !important;
        z-index: 10 !important;
        flex-shrink: 0 !important;
        padding: 10px 15px !important;
        border-top: 1px solid #dee2e6 !important;
    }
    
    /* إخفاء بانر التثبيت في صفحة الرسائل */
    .chat-view ~ #install-banner,
    .chat-view ~ footer {
        display: none !important;
    }
}

    /* تحسين ألوان النص للخلفية البيضاء */
    .messages-page .bg-white {
        background-color: #f0f2f5 !important; /* خلفية رمادية فاتحة بدلاً من الأبيض */
        color: #050505 !important; /* نص أسود داكن */
        border: 1px solid #e4e6eb; /* إطار خفيف */
    }
    
    /* تحسين النص داخل الرسائل البيضاء */
    .messages-page .bg-white div {
        color: #050505 !important;
    }
    
    /* تحسين النص الأزرق */
    .messages-page .bg-primary {
        background-color: #0084ff !important; /* أزرق أكثر وضوحاً */
        color: #ffffff !important;
    }
    
    /* تحسين الوقت في الرسائل البيضاء */
    .messages-page .bg-white small {
        color: #65676b !important; /* رمادي غامق للوقت */
    }
    
    /* تحسين الوقت في الرسائل الزرقاء */
    .messages-page .bg-primary small {
        color: rgba(255, 255, 255, 0.9) !important;
    }
/* إصلاح ألوان الرسائل */
#messagesList .bg-white,
#messagesList .bg-white * {
    color: #212529 !important;
}

#messagesList .bg-primary,
#messagesList .bg-primary * {
    color: #fff !important;
}

.list-group-item {
    color: #212529 !important;
}

.list-group-item small {
    color: #6c757d !important;
}

.list-group-item.active,
.list-group-item.active * {
    color: #fff !important;
}
.messages-page .bg-primary{
    background: #0d6efd !important;
    color:#fff !important;
    border:none !important;
}

.messages-page .bg-primary *{
    color:#fff !important;
}