/* تنسيق صفحة تفاصيل مقدم الخدمة */

.provider-main {
    margin-top: 80px;
}

/* شريط العودة */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.separator {
    margin: 0 0.5rem;
    color: #6c757d;
}

/* قسم البطل لمقدم الخدمة */
.provider-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
}

.provider-hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.provider-image-large {
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.provider-details h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.provider-rating-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-rating-large .stars {
    font-size: 1.5rem;
    color: #ffd700;
}

.rating-info {
    font-size: 1.1rem;
    color: #FDE68A; /* ذهبي فاتح متناسق مع النجوم */
    font-weight: 300; /* نحيف */
    opacity: 1;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.provider-location-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.provider-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn, .favorite-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
}

.contact-btn {
    background: #28a745;
    color: white;
}

.contact-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.favorite-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.favorite-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.favorite-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
}

.favorite-btn.active i {
    color: white;
}

/* إخفاء زر "زوروا الحساب" في صفحات providers */
#homeSpaProviderLink {
    display: none !important;
}

/* قسم المعلومات */
.provider-info-section {
    padding: 4rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.info-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: #667eea;
    font-size: 1.1rem;
}

.info-card p {
    color: #666;
    line-height: 1.8;
}

/* قائمة الخدمات */
.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-item i {
    font-size: 0.9rem;

/* إخفاء شارة المنصة في صفحات providers */
#platformBadge { display: none !important; }
}

/* معلومات الأسعار */
.price-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.price-label {
    font-weight: 500;
    color: #666;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
}

.price-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: #e7f3ff;
    border-radius: 8px;
}

.price-note i {
    color: #667eea;
}

/* ساعات العمل */
.working-hours {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.day {
    font-weight: 500;
    color: #333;
}

.time {
    color: #667eea;
    font-weight: 500;
}

/* قسم التقييمات */
.reviews-section {
    background: white;
    padding: 4rem 0;
}

.reviews-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
    font-weight: 600;
}

.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.rating-stars {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

/* قائمة التقييمات */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.reviewer-details h4 {
    margin: 0;
    color: #333;
    font-weight: 500;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-rating {
    color: #ffd700;
    font-size: 1.1rem;
}

.review-text {
    color: #555;
    line-height: 1.6;
}

/* مقدمو خدمات مشابهون */
.similar-providers {
    background: #f8f9fa;
    padding: 4rem 0;
}

.similar-providers h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
    font-weight: 600;
}

/* جعل البطاقة كرابط كامل دون خط تحت النص وإبراز واضح عند التركيز */
.similar-providers .provider-card,
.similar-providers .provider-card:link,
.similar-providers .provider-card:visited {
    text-decoration: none;
    color: inherit;
    display: block;
}

.similar-providers .provider-card:hover,
.similar-providers .provider-card:active {
    text-decoration: none;
    color: inherit;
}

.similar-providers .provider-card:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 3px;
    border-radius: 12px;
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .provider-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .provider-image-large {
        width: 120px;
        height: 120px;
        font-size: 3rem;
        margin: 0 auto;
    }
    
    .provider-details h1 {
        font-size: 2rem;
    }
    
    .provider-contact {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .rating-breakdown {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .provider-hero {
        padding: 2rem 0;
    }
    
    .provider-details h1 {
        font-size: 1.8rem;
    }
    
    .provider-rating-large .stars {
        font-size: 1.2rem;
    }
    
    .contact-btn, .favorite-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .reviews-section {
        padding: 3rem 0;
    }
    
    .similar-providers {
        padding: 3rem 0;
    }
}