/*  
 * app/static/css/experience_detail.css - الهوية البصرية الاحترافية  
 * تصميم صفحة تفاصيل التجربة: "تميز رقمي فاخر متكامل"  
 * متوافق مع index.css - نظام موحد احترافي  
 */  

/* ========================================================= */  
/* استيراد الخطوط الاحترافية */  
/* ========================================================= */  
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');  

/* ========================================================= */  
/* نظام المتغيرات المتقدم - متوافق مع النظام الأساسي */  
/* ========================================================= */  
:root {  
    /* الألوان الأساسية - نظام متدرج احترافي */  
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);  
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);  
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);  
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);  
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);  
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);  
    
    /* ألوان صلبة للنصوص والحدود */  
    --primary-solid: #667eea;  
    --secondary-solid: #f5576c;  
    --accent-solid: #00f2fe;  
    --success-solid: #43e97b;  
    --warning-solid: #fa709a;  
    --danger-solid: #ff6b6b;  
    
    /* خلفيات متدرجة للصفحة */  
    --page-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);  
    --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);  
    --glass-light: rgba(255, 255, 255, 0.95);  
    --glass-medium: rgba(255, 255, 255, 0.98);  
    --glass-dark: rgba(15, 23, 42, 0.95);  
    
    /* نظام الخلفيات */  
    --bg-primary: #ffffff;  
    --bg-secondary: #f8fafc;  
    --bg-tertiary: #f1f5f9;  
    --bg-dark: #0f172a;  
    --bg-overlay: rgba(15, 23, 42, 0.8);  
    
    /* نظام النصوص - تباين مثالي */  
    --text-primary: #0f172a;  
    --text-secondary: #475569;  
    --text-muted: #64748b;  
    --text-light: #cbd5e1;  
    --text-white: #ffffff;  
    
    /* الظلال المتدرجة المتطورة */  
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);  
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);  
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);  
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);  
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);  
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);  
    --shadow-3xl: 0 35px 60px rgba(0, 0, 0, 0.2);  
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);  
    --shadow-glow-accent: 0 0 40px rgba(0, 242, 254, 0.4);  
    --shadow-glow-secondary: 0 0 35px rgba(245, 87, 108, 0.3);  
    
    /* الخطوط الاحترافية */  
    --font-primary: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;  
    --font-heading: 'Playfair Display', 'Cairo', serif;  
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;  
    
    /* أوزان الخطوط */  
    --font-light: 300;  
    --font-normal: 400;  
    --font-medium: 500;  
    --font-semibold: 600;  
    --font-bold: 700;  
    --font-extrabold: 800;  
    --font-black: 900;  
    
    /* أحجام الخطوط - نظام متناسق */  
    --text-xs: 0.75rem;  
    --text-sm: 0.875rem;  
    --text-base: 1rem;  
    --text-lg: 1.125rem;  
    --text-xl: 1.25rem;  
    --text-2xl: 1.5rem;  
    --text-3xl: 1.875rem;  
    --text-4xl: 2.25rem;  
    --text-5xl: 3rem;  
    --text-6xl: 3.75rem;  
    
    /* الانحناءات */  
    --radius-none: 0;  
    --radius-sm: 0.25rem;  
    --radius-md: 0.375rem;  
    --radius-lg: 0.5rem;  
    --radius-xl: 0.75rem;  
    --radius-2xl: 1rem;  
    --radius-3xl: 1.5rem;  
    --radius-4xl: 2rem;  
    --radius-full: 9999px;  
    
    /* المسافات */  
    --space-px: 1px;  
    --space-0: 0;  
    --space-1: 0.25rem;  
    --space-2: 0.5rem;  
    --space-3: 0.75rem;  
    --space-4: 1rem;  
    --space-5: 1.25rem;  
    --space-6: 1.5rem;  
    --space-8: 2rem;  
    --space-10: 2.5rem;  
    --space-12: 3rem;  
    --space-16: 4rem;  
    --space-20: 5rem;  
    --space-24: 6rem;  
    --space-32: 8rem;  
    
    /* الانتقالات المتطورة */  
    --transition-fast: all 0.15s ease-out;  
    --transition-normal: all 0.25s ease-out;  
    --transition-slow: all 0.4s ease-out;  
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);  
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);  
}  

/* ========================================================= */  
/* إعادة تعيين الأساسيات */  
/* ========================================================= */  
* {  
    box-sizing: border-box;  
    margin: 0;  
    padding: 0;  
}  

/* ========================================================= */  
/* خلفية الصفحة الاحترافية */  
/* ========================================================= */  
body {  
    font-family: var(--font-primary);  
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);  
    background-attachment: fixed;  
    min-height: 100vh;  
    color: var(--text-primary);  
    line-height: 1.7;  
    direction: rtl;  
    text-align: right;  
    overflow-x: hidden;  
    -webkit-font-smoothing: antialiased;  
    -moz-osx-font-smoothing: grayscale;  
    position: relative;  
}  

body::before {  
    content: '';  
    position: fixed;  
    top: 0;  
    left: 0;  
    right: 0;  
    bottom: 0;  
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(102,126,234,0.03)"/><circle cx="80" cy="80" r="1" fill="rgba(245,87,108,0.03)"/><circle cx="50" cy="10" r="1" fill="rgba(0,242,254,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;  
    opacity: 0.4;  
    pointer-events: none;  
    z-index: 0;  
}  

.container-fluid, .container, .row, .col-md-8 {  
    position: relative;  
    z-index: 1;  
}  

/* ========================================================= */  
/* البطاقة الرئيسية - تصميم فاخر */  
/* ========================================================= */  
.experience-detail-card {  
    background: var(--card-gradient);  
    border: 1px solid rgba(102, 126, 234, 0.1);  
    border-radius: var(--radius-4xl);  
    box-shadow: var(--shadow-2xl);  
    overflow: hidden;  
    position: relative;  
    margin: var(--space-8) 0;  
    transition: var(--transition-smooth);  
}  

.experience-detail-card::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 0;  
    right: 0;  
    height: 6px;  
    background: var(--primary-gradient);  
    opacity: 0.8;  
}  

.experience-detail-card:hover {  
    transform: translateY(-5px);  
    box-shadow: var(--shadow-3xl), var(--shadow-glow);  
    border-color: rgba(102, 126, 234, 0.2);  
}  

.card-body {  
    padding: var(--space-10);  
    position: relative;  
    z-index: 2;  
    color: var(--text-primary);  
}  

/* ========================================================= */  
/* Header فاخر مع تأثيرات متقدمة */  
/* ========================================================= */  
.experience-header {  
    background: var(--primary-gradient);  
    padding: var(--space-12) var(--space-10);  
    position: relative;  
    overflow: hidden;  
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;  
    margin: calc(-1 * var(--space-10)) calc(-1 * var(--space-10)) var(--space-10) calc(-1 * var(--space-10));  
}  

.experience-header::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 0;  
    right: 0;  
    bottom: 0;  
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300" fill="none"><path d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat center;  
    background-size: cover;  
    opacity: 0.3;  
    animation: float 6s ease-in-out infinite;  
}  

@keyframes float {  
    0%, 100% { transform: translateY(0px); }  
    50% { transform: translateY(-10px); }  
}  

.experience-header h1 {  
    font-family: var(--font-heading);  
    font-size: clamp(2rem, 5vw, 4rem);  
    font-weight: var(--font-black);  
    color: var(--text-white);  
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.2);  
    position: relative;  
    z-index: 2;  
    letter-spacing: -0.02em;  
    line-height: 1.1;  
    margin: 0;  
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);  
    -webkit-background-clip: text;  
    background-clip: text;  
    color: transparent;  
    text-shadow: none;  
    filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.3)) drop-shadow(0 0 30px rgba(255,255,255,0.2));  
}  

.experience-header .hero-divider {  
    width: 120px;  
    height: 5px;  
    background: var(--accent-gradient);  
    border: none;  
    border-radius: var(--radius-full);  
    margin: var(--space-6) auto 0;  
    box-shadow: var(--shadow-glow-accent);  
    position: relative;  
    z-index: 2;  
}  

/* ========================================================= */  
/* Carousel احترافي مع تأثيرات متطورة */  
/* ========================================================= */  
#experienceMediaCarousel {  
    margin-bottom: var(--space-12);  
    border-radius: var(--radius-3xl);  
    overflow: hidden;  
    box-shadow: var(--shadow-xl);  
    position: relative;  
    border: 1px solid rgba(102, 126, 234, 0.15);  
    background: var(--bg-secondary);  
}  

#experienceMediaCarousel::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 0;  
    right: 0;  
    bottom: 0;  
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.05) 50%, transparent 70%);  
    pointer-events: none;  
    z-index: 1;  
    opacity: 0;  
    transition: var(--transition-normal);  
}  

#experienceMediaCarousel:hover::before {  
    opacity: 1;  
}  

.carousel-inner {  
    border-radius: var(--radius-3xl);  
    overflow: hidden;  
}  

.carousel-item {  
    transition: var(--transition-smooth);  
    position: relative;  
}  

.carousel-item::after {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 0;  
    right: 0;  
    bottom: 0;  
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.1));  
    opacity: 0;  
    transition: var(--transition-normal);  
    pointer-events: none;  
}  

.carousel-item:hover::after {  
    opacity: 1;  
}  

.experience-detail-image,  
.experience-media {  
    width: 100%;  
    height: 600px;  
    object-fit: cover;  
    transition: var(--transition-slow);  
    border-radius: var(--radius-3xl);  
}  

.carousel-item:hover .experience-detail-image,  
.carousel-item:hover .experience-media {  
    transform: scale(1.02);  
    filter: brightness(1.05) saturate(1.1);  
}  

/* أزرار التحكم المتطورة */  
.carousel-control-prev,  
.carousel-control-next {  
    width: 60px;  
    height: 60px;  
    top: 50%;  
    transform: translateY(-50%);  
    opacity: 0.8;  
    transition: var(--transition-bounce);  
}  

.carousel-control-prev {  
    left: var(--space-6);  
}  

.carousel-control-next {  
    right: var(--space-6);  
}  

.carousel-control-prev-icon,  
.carousel-control-next-icon {  
    width: 60px;  
    height: 60px;  
    background: var(--primary-gradient);  
    border-radius: 50%;  
    border: 3px solid rgba(255, 255, 255, 0.9);  
    transition: var(--transition-bounce);  
    box-shadow: var(--shadow-lg), var(--shadow-glow);  
    position: relative;  
    overflow: hidden;  
}  

.carousel-control-prev-icon::before,  
.carousel-control-next-icon::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: -100%;  
    width: 100%;  
    height: 100%;  
    background: var(--secondary-gradient);  
    transition: var(--transition-normal);  
}  

.carousel-control-prev:hover .carousel-control-prev-icon::before,  
.carousel-control-next:hover .carousel-control-next-icon::before {  
    left: 0;  
}  

.carousel-control-prev:hover,  
.carousel-control-next:hover {  
    opacity: 1;  
    transform: translateY(-50%) scale(1.1);  
}  

.carousel-control-prev:hover .carousel-control-prev-icon,  
.carousel-control-next:hover .carousel-control-next-icon {  
    box-shadow: var(--shadow-2xl), var(--shadow-glow-secondary);  
    border-color: rgba(255, 255, 255, 1);  
}  

/* مؤشرات الكاروسيل */  
.carousel-indicators {  
    bottom: var(--space-6);  
    margin-bottom: 0;  
}  

.carousel-indicators [data-bs-target] {  
    width: 15px;  
    height: 15px;  
    border-radius: 50%;  
    margin: 0 var(--space-2);  
    background: var(--glass-light);  
    border: 2px solid rgba(255,255,255,0.8);  
    transition: var(--transition-bounce);  
    opacity: 0.6;  
}  

.carousel-indicators [data-bs-target].active {  
    background: var(--accent-gradient);  
    opacity: 1;  
    transform: scale(1.2);  
    box-shadow: var(--shadow-glow-accent);  
}  

/* ========================================================= */  
/* وصف التجربة الأنيق */  
/* ========================================================= */  
.experience-description {  
    font-size: var(--text-xl);  
    line-height: 1.8;  
    color: var(--text-secondary);  
    text-align: justify;  
    padding: var(--space-10);  
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.03) 0%, rgba(245, 87, 108, 0.03) 100%);  
    border-radius: var(--radius-3xl);  
    border-left: 6px solid var(--primary-solid);  
    box-shadow: var(--shadow-lg);  
    position: relative;  
    margin-bottom: var(--space-12);  
    transition: var(--transition-normal);  
}  

.experience-description::before {  
    content: '"';  
    position: absolute;  
    top: var(--space-4);  
    right: var(--space-4);  
    font-size: 6rem;  
    color: rgba(102, 126, 234, 0.05);  
    font-family: Georgia, serif;  
    line-height: 1;  
    z-index: 1;  
}  

.experience-description::after {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 0;  
    right: 0;  
    bottom: 0;  
    background: linear-gradient(45deg, transparent 30%, rgba(0, 242, 254, 0.02) 50%, transparent 70%);  
    border-radius: var(--radius-3xl);  
    opacity: 0;  
    transition: var(--transition-normal);  
    pointer-events: none;  
}  

.experience-description:hover::after {  
    opacity: 1;  
}  

.experience-description:hover {  
    transform: translateX(5px);  
    box-shadow: var(--shadow-xl), 0 0 40px rgba(102, 126, 234, 0.1);  
    border-left-color: var(--accent-solid);  
}  

/* ========================================================= */  
/* معلومات التجربة المتطورة */  
/* ========================================================= */  
.experience-meta {  
    display: grid;  
    gap: var(--space-4);  
    margin-bottom: var(--space-12);  
}  

.experience-meta p {  
    font-size: var(--text-lg);  
    color: var(--text-primary);  
    margin: 0;  
    padding: var(--space-5) var(--space-6);  
    background: var(--card-gradient);  
    border-radius: var(--radius-2xl);  
    transition: var(--transition-bounce);  
    border: 1px solid rgba(102, 126, 234, 0.1);  
    box-shadow: var(--shadow-sm);  
    position: relative;  
    overflow: hidden;  
}  

.experience-meta p::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: -100%;  
    width: 100%;  
    height: 100%;  
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);  
    transition: var(--transition-normal);  
}  

.experience-meta p:hover::before {  
    left: 100%;  
}  

.experience-meta p:hover {  
    transform: translateX(8px) scale(1.02);  
    box-shadow: var(--shadow-md), 0 0 20px rgba(102, 126, 234, 0.1);  
    border-color: rgba(102, 126, 234, 0.2);  
}  

.experience-meta i {  
    font-size: var(--text-2xl);  
    width: 40px;  
    text-align: center;  
    display: inline-block;  
    color: var(--accent-solid);  
    margin-left: var(--space-3);  
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));  
}  

/* رابط المؤلف المتطور */  
.author-link {  
    font-weight: var(--font-bold);  
    background: var(--primary-gradient);  
    -webkit-background-clip: text;  
    -webkit-text-fill-color: transparent;  
    background-clip: text;  
    position: relative;  
    transition: var(--transition-bounce);  
    display: inline-block;  
}  

.author-link::after {  
    content: '';  
    position: absolute;  
    bottom: -3px;  
    right: 0;  
    width: 0;  
    height: 3px;  
    background: var(--primary-gradient);  
    border-radius: var(--radius-full);  
    transition: var(--transition-normal);  
}  

.author-link:hover::after {  
    width: 100%;  
}  

.author-link:hover {  
    transform: scale(1.05);  
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.4));  
}  

/* ========================================================= */  
/* البادجات الأنيقة */  
/* ========================================================= */  
.meta-badge {  
    font-size: var(--text-base);  
    padding: var(--space-3) var(--space-6);  
    border-radius: var(--radius-full);  
    font-weight: var(--font-semibold);  
    background: var(--card-gradient);  
    color: var(--text-primary);  
    border: 2px solid transparent;  
    box-shadow: var(--shadow-md);  
    transition: var(--transition-bounce);  
    cursor: pointer;  
    position: relative;  
    overflow: hidden;  
    display: inline-flex;  
    align-items: center;  
    margin: var(--space-2);  
}  

.meta-badge::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: -100%;  
    width: 100%;  
    height: 100%;  
    background: var(--primary-gradient);  
    transition: var(--transition-normal);  
    z-index: -1;  
}  

.meta-badge:hover::before {  
    left: 0;  
}  

.meta-badge:hover {  
    color: var(--text-white);  
    transform: translateY(-3px) scale(1.05);  
    box-shadow: var(--shadow-xl), var(--shadow-glow);  
    border-color: rgba(102, 126, 234, 0.3);  
}  

/* ========================================================= */  
/* أزرار الإجراءات المتطورة */  
/* ========================================================= */  
.experience-actions {  
    display: flex;  
    gap: var(--space-4);  
    flex-wrap: wrap;  
    justify-content: center;  
    margin-bottom: var(--space-16);  
    padding: var(--space-8) 0;  
}  

.experience-actions .action-btn {  
    border-radius: var(--radius-2xl);  
    padding: var(--space-4) var(--space-8);  
    font-size: var(--text-lg);  
    font-weight: var(--font-semibold);  
    position: relative;  
    overflow: hidden;  
    transition: var(--transition-bounce);  
    border: none;  
    cursor: pointer;  
    text-decoration: none;  
    display: inline-flex;  
    align-items: center;  
    justify-content: center;  
    min-width: 150px;  
    text-transform: uppercase;  
    letter-spacing: 0.05em;  
}  

.experience-actions .action-btn::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: -100%;  
    width: 100%;  
    height: 100%;  
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);  
    transition: var(--transition-normal);  
}  

.experience-actions .action-btn:hover::before {  
    left: 100%;  
}  

.experience-actions .action-btn:hover {  
    transform: translateY(-5px) scale(1.05);  
    box-shadow: var(--shadow-2xl);  
}  

.experience-actions .btn-warning {  
    background: var(--warning-gradient);  
    color: var(--text-white);  
    box-shadow: var(--shadow-lg);  
}  

.experience-actions .btn-warning:hover {  
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(250, 112, 154, 0.4);  
    color: var(--text-white);  
}  

.experience-actions .btn-danger {  
    background: var(--danger-gradient);  
    color: var(--text-white);  
    box-shadow: var(--shadow-lg);  
}  

.experience-actions .btn-danger:hover {  
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(255, 107, 107, 0.4);  
    color: var(--text-white);  
}  

/* ========================================================= */  
/* قسم التقييمات الفاخر */  
/* ========================================================= */  
.rating-section {  
    background: var(--card-gradient);  
    border-radius: var(--radius-4xl);  
    border: 1px solid rgba(102, 126, 234, 0.1);  
    box-shadow: var(--shadow-xl);  
    margin: var(--space-16) 0;  
    overflow: hidden;  
    position: relative;  
    transition: var(--transition-normal);  
}  

.rating-section::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 0;  
    right: 0;  
    height: 4px;  
    background: var(--warning-gradient);  
    opacity: 0.8;  
}  

.rating-section:hover {  
    transform: translateY(-5px);  
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(250, 112, 154, 0.1);  
}  

.rating-header {  
    background: var(--warning-gradient);  
    color: var(--text-white);  
    padding: var(--space-8) var(--space-10);  
    position: relative;  
    overflow: hidden;  
}  

.rating-header::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    right: 0;  
    width: 200px;  
    height: 200px;  
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);  
    transform: translate(50%, -50%);  
}  

.rating-header h4 {  
    font-family: var(--font-heading);  
    font-weight: var(--font-extrabold);  
    font-size: var(--text-3xl);  
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);  
    margin: 0;  
    position: relative;  
    z-index: 2;  
}  

.rating-form {  
    padding: var(--space-10);  
}  

.rating-select {  
    border-radius: var(--radius-2xl);  
    padding: var(--space-4) var(--space-6);  
    border: 2px solid rgba(250, 112, 154, 0.2);  
    transition: var(--transition-bounce);  
    font-size: var(--text-lg);  
    font-weight: var(--font-medium);  
    color: var(--text-primary);  
    background: var(--card-gradient);  
    width: 100%;  
    margin-bottom: var(--space-6);  
}  

.rating-select:focus {  
    border-color: var(--warning-solid);  
    box-shadow: 0 0 20px rgba(250, 112, 154, 0.2);  
    transform: scale(1.02);  
    outline: none;  
}  

.rating-submit-btn {  
    background: var(--warning-gradient);  
    border: none;  
    border-radius: var(--radius-2xl);  
    padding: var(--space-4) var(--space-10);  
    font-weight: var(--font-bold);  
    font-size: var(--text-lg);  
    transition: var(--transition-bounce);  
    box-shadow: var(--shadow-lg);  
    color: var(--text-white);  
    text-transform: uppercase;  
    letter-spacing: 0.05em;  
    position: relative;  
    overflow: hidden;  
}  

.rating-submit-btn::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: -100%;  
    width: 100%;  
    height: 100%;  
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);  
    transition: var(--transition-normal);  
}  

.rating-submit-btn:hover::before {  
    left: 100%;  
}  

.rating-submit-btn:hover {  
    transform: translateY(-3px) scale(1.05);  
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(250, 112, 154, 0.4);  
}  

.average-rating-badge {  
    font-size: var(--text-2xl);  
    padding: var(--space-4) var(--space-8);  
    border-radius: var(--radius-full);  
    font-weight: var(--font-black);  
    background: var(--warning-gradient);  
    color: var(--text-white);  
    box-shadow: var(--shadow-xl), 0 0 30px rgba(250, 112, 154, 0.3);  
    display: inline-flex;  
    align-items: center;  
    gap: var(--space-2);  
    margin: var(--space-4) 0;  
    animation: pulse 2s infinite;  
}  

@keyframes pulse {  
    0%, 100% { transform: scale(1); }  
    50% { transform: scale(1.05); }  
}  

/* ========================================================= */  
/* قسم التعليقات المتطور */  
/* ========================================================= */  
.comment-section {  
    background: var(--card-gradient);  
    border-radius: var(--radius-4xl);  
    border: 1px solid rgba(0, 242, 254, 0.1);  
    box-shadow: var(--shadow-xl);  
    margin: var(--space-16) 0;  
    overflow: hidden;  
    position: relative;  
    transition: var(--transition-normal);  
}  

.comment-section::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 0;  
    right: 0;  
    height: 4px;  
    background: var(--accent-gradient);  
    opacity: 0.8;  
}  

.comment-section:hover {  
    transform: translateY(-5px);  
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(0, 242, 254, 0.1);  
}  

.comment-header {  
    background: var(--accent-gradient);  
    color: var(--text-white);  
    padding: var(--space-8) var(--space-10);  
    position: relative;  
    overflow: hidden;  
}  

.comment-header::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 0;  
    width: 200px;  
    height: 200px;  
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);  
    transform: translate(-50%, -50%);  
}  

.comment-header h4 {  
    font-family: var(--font-heading);  
    font-weight: var(--font-extrabold);  
    font-size: var(--text-3xl);  
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);  
    margin: 0;  
    position: relative;  
    z-index: 2;  
}  

.comment-form {  
    padding: var(--space-10);  
}  

.comment-textarea {  
    border-radius: var(--radius-2xl);  
    border: 2px solid rgba(0, 242, 254, 0.2);  
    padding: var(--space-6);  
    font-size: var(--text-lg);  
    transition: var(--transition-bounce);  
    resize: vertical;  
    min-height: 150px;  
    color: var(--text-primary);  
    background: var(--card-gradient);  
    width: 100%;  
    font-family: var(--font-primary);  
    line-height: 1.6;  
}  

.comment-textarea:focus {  
    border-color: var(--accent-solid);  
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);  
    transform: scale(1.01);  
    outline: none;  
}  

.comment-submit-btn {  
    background: var(--accent-gradient);  
    border: none;  
    border-radius: var(--radius-2xl);  
    padding: var(--space-4) var(--space-10);  
    font-weight: var(--font-bold);  
    font-size: var(--text-lg);  
    transition: var(--transition-bounce);  
    box-shadow: var(--shadow-lg);  
    color: var(--text-white);  
    text-transform: uppercase;  
    letter-spacing: 0.05em;  
    position: relative;  
    overflow: hidden;  
    margin-top: var(--space-6);  
}  

.comment-submit-btn::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: -100%;  
    width: 100%;  
    height: 100%;  
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);  
    transition: var(--transition-normal);  
}  

.comment-submit-btn:hover::before {  
    left: 100%;  
}  

.comment-submit-btn:hover {  
    transform: translateY(-3px) scale(1.05);  
    box-shadow: var(--shadow-2xl), var(--shadow-glow-accent);  
}  

/* ========================================================= */  
/* بطاقات التعليقات الأنيقة */  
/* ========================================================= */  
.comment-card {  
    background: var(--card-gradient);  
    border: 1px solid rgba(0, 242, 254, 0.1);  
    border-radius: var(--radius-3xl);  
    transition: var(--transition-smooth);  
    box-shadow: var(--shadow-md);  
    margin-bottom: var(--space-8);  
    overflow: hidden;  
    position: relative;  
}  

.comment-card::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    right: 0;  
    width: 100px;  
    height: 100px;  
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 70%);  
    transform: translate(30%, -30%);  
}  

.comment-card:hover {  
    transform: translateX(8px) scale(1.02);  
    border-color: rgba(0, 242, 254, 0.3);  
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 242, 254, 0.1);  
}  

.comment-card .card-body {  
    padding: var(--space-8);  
    position: relative;  
    z-index: 2;  
}  

.comment-header-info {  
    display: flex;  
    align-items: center;  
    margin-bottom: var(--space-6);  
    gap: var(--space-4);  
}  

.comment-avatar {  
    width: 60px;  
    height: 60px;  
    border: 3px solid transparent;  
    border-image: var(--accent-gradient) 1;  
    border-radius: 50%;  
    transition: var(--transition-bounce);  
    box-shadow: var(--shadow-md);  
}  

.comment-avatar:hover {  
    transform: scale(1.1) rotate(5deg);  
    box-shadow: var(--shadow-xl), var(--shadow-glow-accent);  
}  

.comment-author-info {  
    flex-grow: 1;  
}  

.comment-author-name {  
    font-weight: var(--font-bold);  
    font-size: var(--text-xl);  
    background: var(--accent-gradient);  
    -webkit-background-clip: text;  
    -webkit-text-fill-color: transparent;  
    background-clip: text;  
    margin: 0;  
}  

.comment-date {  
    font-size: var(--text-sm);  
    color: var(--text-muted);  
    font-weight: var(--font-medium);  
}  

.comment-content {  
    font-size: var(--text-lg);  
    line-height: 1.7;  
    color: var(--text-secondary);  
    margin-bottom: var(--space-6);  
    text-align: justify;  
}  

.delete-comment-btn {  
    border-radius: var(--radius-xl);  
    padding: var(--space-2) var(--space-4);  
    transition: var(--transition-bounce);  
    background: var(--danger-gradient);  
    color: var(--text-white);  
    border: none;  
    font-size: var(--text-sm);  
    font-weight: var(--font-semibold);  
    text-transform: uppercase;  
    letter-spacing: 0.05em;  
}  

.delete-comment-btn:hover {  
    transform: scale(1.05);  
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 107, 107, 0.3);  
}  

/* ========================================================= */  
/* Modal محسّن */  
/* ========================================================= */  
.modal-content {  
    border-radius: var(--radius-4xl);  
    border: none;  
    background: var(--glass-medium);  
    backdrop-filter: blur(20px);  
    -webkit-backdrop-filter: blur(20px);  
    box-shadow: var(--shadow-3xl);  
    overflow: hidden;  
}  

.modal-header.bg-danger {  
    background: var(--danger-gradient) !important;  
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;  
    padding: var(--space-8) var(--space-10);  
    color: var(--text-white);  
    position: relative;  
    overflow: hidden;  
}  

.modal-header.bg-danger::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    right: 0;  
    width: 150px;  
    height: 150px;  
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);  
    transform: translate(30%, -30%);  
}  

.modal-title {  
    font-family: var(--font-heading);  
    font-weight: var(--font-bold);  
    font-size: var(--text-2xl);  
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);  
    position: relative;  
    z-index: 2;  
}  

.modal-body {  
    padding: var(--space-10);  
    color: var(--text-primary);  
    font-size: var(--text-lg);  
    line-height: 1.6;  
}  

.modal-footer {  
    padding: var(--space-8) var(--space-10);  
    border: none;  
    gap: var(--space-4);  
}  

.modal-footer .btn {  
    border-radius: var(--radius-2xl);  
    padding: var(--space-3) var(--space-8);  
    font-weight: var(--font-semibold);  
    text-transform: uppercase;  
    letter-spacing: 0.05em;  
    transition: var(--transition-bounce);  
}  

/* ========================================================= */  
/* التصميم المتجاوب */  
/* ========================================================= */  
@media (max-width: 1200px) {  
    .experience-header h1 {  
        font-size: clamp(1.75rem, 4vw, 3rem);  
    }  
}  

@media (max-width: 768px) {  
    .experience-header {  
        padding: var(--space-8) var(--space-6);  
        margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-8) calc(-1 * var(--space-6));  
    }  
    
    .experience-header h1 {  
        font-size: clamp(1.5rem, 6vw, 2.5rem);  
    }  
    
    .card-body {  
        padding: var(--space-6);  
    }  
    
    .experience-description {  
        padding: var(--space-6);  
        font-size: var(--text-lg);  
    }  
    
    .experience-detail-image,  
    .experience-media {  
        height: 300px;  
    }  
    
    .carousel-control-prev-icon,  
    .carousel-control-next-icon {  
        width: 50px;  
        height: 50px;  
    }  
    
    .carousel-control-prev {  
        left: var(--space-4);  
    }  
    
    .carousel-control-next {  
        right: var(--space-4);  
    }  
    
    .experience-actions {  
        flex-direction: column;  
        align-items: center;  
    }  
    
    .experience-actions .action-btn {  
        width: 100%;  
        max-width: 300px;  
    }  
    
    .rating-form,  
    .comment-form {  
        padding: var(--space-6);  
    }  
    
    .rating-header,  
    .comment-header {  
        padding: var(--space-6);  
    }  
    
    .comment-card .card-body {  
        padding: var(--space-6);  
    }  
    
    .comment-textarea {  
        min-height: 120px;  
    }  
}  

@media (max-width: 576px) {  
    .experience-detail-card {  
        margin: var(--space-4) 0;  
        border-radius: var(--radius-3xl);  
    }  
    
    .experience-header h1 {  
        font-size: clamp(1.25rem, 8vw, 2rem);  
    }  
    
    .experience-description {  
        font-size: var(--text-base);  
        padding: var(--space-5);  
    }  
    
    .rating-header h4,  
    .comment-header h4 {  
        font-size: var(--text-xl);  
    }  
    
    .average-rating-badge {  
        font-size: var(--text-lg);  
        padding: var(--space-3) var(--space-6);  
    }  
    
    .modal-content {  
        border-radius: var(--radius-2xl);  
    }  
    
    .modal-header.bg-danger {  
        padding: var(--space-6);  
    }  
    
    .modal-body {  
        padding: var(--space-6);  
    }  
    
    .modal-footer {  
        padding: var(--space-6);  
    }  
}  

/* ========================================================= */  
/* تحسينات الأداء والحركات */  
/* ========================================================= */  
@media (prefers-reduced-motion: reduce) {  
    * {  
        animation-duration: 0.01ms !important;  
        animation-iteration-count: 1 !important;  
        transition-duration: 0.01ms !important;  
    }  
}  

/* تحسين الأداء للعناصر المتحركة */  
.experience-detail-card,  
.experience-header,  
#experienceMediaCarousel,  
.carousel-control-prev-icon,  
.carousel-control-next-icon,  
.experience-description,  
.experience-meta p,  
.meta-badge,  
.action-btn,  
.rating-section,  
.comment-section,  
.comment-card {  
    will-change: transform;  
    transform: translateZ(0);  
    backface-visibility: hidden;  
}  

/* Focus States for Accessibility */  
*:focus-visible {  
    outline: 3px solid rgba(102, 126, 234, 0.5);  
    outline-offset: 2px;  
    border-radius: var(--radius-md);  
}  

/* Print Styles */  
@media print {  
    body::before {  
        display: none;  
    }  
    
    .experience-actions,  
    .rating-form,  
    .comment-form,  
    .delete-comment-btn {  
        display: none !important;  
    }  
    
    .experience-header,  
    .rating-section,  
    .comment-section {  
        background: none !important;  
        color: #000 !important;  
    }  
    
    .experience-detail-card,  
    .comment-card {  
        break-inside: avoid;  
        box-shadow: none !important;  
        border: 1px solid #ccc !important;  
    }  
}