/**
 * Styles for the Single Service Page (/single-fixydo_service.php)
 * === FINAL NO-NONSENSE FIX ===
 */

:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #3f37c9;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --star-color: #ffb703;
}

/* === BUTTONS FINAL FIX START === */
.provider-actions {
    display: flex;
    justify-content: center; /* Buttons ko center mein rakhega */
    gap: 0.5rem; /* Buttons ke beech thoda kam faasla */
    padding: 0 1.5rem 1.5rem;
}
.btn-provider {
    padding: 0.6rem 0.75rem; /* Padding adjust ki gayi hai */
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap; /* YEH SABSE ZAROORI HAI: Text ko wrap hone se rokega */
    font-size: 0.9rem;
    text-align: center;
    flex-shrink: 0; /* Button ko shrink hone se rokega */
    flex-grow: 1; /* Button ko zaroorat ke mutabiq grow karega */
    min-width: 0; /* Flexbox ke liye behtar kaam karta hai */
}
/* === BUTTONS FINAL FIX END === */

.star-rating-wrapper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.star-rating i { color: var(--star-color); }
.rating-text { font-size: 0.9rem; color: var(--gray-color); font-weight: 500; }

.service-hero { background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%); padding: 2.5rem 0; border-bottom: 1px solid var(--border-color); }
.breadcrumb { font-size: 0.85rem; }
.breadcrumb-item a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
.breadcrumb-item a:hover { color: var(--primary-dark); }
.service-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.service-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--gray-color); }
.meta-item i { color: var(--primary-color); font-size: 1.1rem; }

.gallery-container { position: relative; margin-bottom: 2rem; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.main-image { width: 100%; height: 450px; object-fit: cover; cursor: zoom-in; transition: transform 0.3s ease; }
.main-image:hover { transform: scale(1.01); }
.thumbnail-container { display: flex; gap: 0.75rem; margin-top: 0.75rem; padding-bottom: 0.5rem; overflow-x: auto; }
.thumbnail { width: 100px; height: 75px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: all 0.3s ease; }
.thumbnail:hover, .thumbnail.active { border-color: var(--primary-color); transform: translateY(-3px); }

.content-card { background: white; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 2rem; overflow: hidden; border: none; }
.card-header { background-color: white; border-bottom: 1px solid var(--border-color); padding: 1.25rem 1.5rem; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.card-header i { color: var(--primary-color); }
.card-body { padding: 1.5rem; }

.sidebar-widget { position: sticky; top: 1rem; }

.provider-widget { background: white; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); margin-bottom: 1.5rem; border: none; overflow: hidden; }
.provider-header { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border-bottom: 1px solid var(--border-color); }
.provider-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.provider-info { flex: 1; }
.provider-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.provider-name a { color: inherit; text-decoration: none; }
.provider-name a:hover { color: var(--primary-color); }
.provider-account-type { font-size: 0.9rem; color: var(--gray-color); margin-bottom: 8px; }
.verified-badge { font-size: 0.7rem; font-weight: 400; padding: 2px 6px; border-radius: 20px; display: inline-flex; align-items: center; color: #fff; }
.verified-badge i { margin-right: 4px; font-size: 12px; }
.verified-badge.verified { background: var(--success-color); }
.verified-badge.not-verified { background: var(--danger-color); }
.provider-meta { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1.25rem 1.5rem; }
.meta-stat { flex: 1; min-width: 100px; text-align: center; }
.stat-value { font-size: 1.1rem; font-weight: 700; }
.stat-label { font-size: 0.85rem; color: var(--gray-color); }

.booking-widget { background: white; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); margin-bottom: 1.5rem; border: none; overflow: hidden; }
.price-section { padding: 1.5rem; border-bottom: 1px solid var(--border-color); }
.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.price-label { font-size: 0.95rem; color: var(--gray-color); }
.booking-actions { padding: 1.5rem; }
.btn-booking { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); border: none; color: white; font-weight: 600; padding: 0.75rem; border-radius: 8px; width: 100%; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3); }
.btn-booking:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4); color: white; }

.trust-badges { background: white; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); padding: 1.5rem; margin-bottom: 1.5rem; border: none; }
.badge-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.badge-item:last-child { margin-bottom: 0; }
.badge-icon { width: 40px; height: 40px; background: #f5f7fa; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 1.1rem; }
.badge-text { font-size: 0.9rem; }
.badge-title { font-weight: 600; margin-bottom: 0.1rem; }
.badge-desc { color: var(--gray-color); font-size: 0.85rem; }

.related-services { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; border: 1px solid var(--border-color); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.service-card-img-wrapper { position: relative; display: block; }
.service-card-img { height: 180px; width: 100%; object-fit: cover; }
.related-author-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 0.75rem; display: flex; align-items: center; gap: 0.75rem; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, transparent 100%); color: white; }
.related-author-avatar img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid white; }
.related-author-details { flex: 1; }
.related-author-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.1rem; color: white; }
.related-author-overlay .star-rating i { font-size: 0.8rem; }
.related-author-overlay .rating-text { display: none; }
.service-card-body { padding: 1.25rem; }
.service-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card-title a { color: var(--dark-color); text-decoration: none; }
.service-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.service-card-price { font-weight: 700; color: var(--primary-color); }

.service-attribute-row { display: flex; background-color: white; border: 1px solid #dee2e6; overflow: hidden; margin-bottom: 1.5rem; font-size: 0.95rem; }
.attribute-label { padding: 0.75rem 1.5rem; color: #566e82; border-right: 1px solid #dee2e6; flex-shrink: 0; align-self: center; }
.attribute-value { padding: 0.75rem 1.5rem; color: #0b4f6c; font-weight: 700; align-self: center; }
.desktop-only-attribute { display: flex; }
.mobile-only-attribute { display: none; }
.mobile-only-block, .mobile-only-booking-widget { display: none; }

@media (max-width: 991.98px) {
    .sidebar-widget, .service-hero, .thumbnail-container { display: none; } 
    .main-image { height: 300px; border-radius: 0; }
    .gallery-container { margin-top: 1rem; margin-bottom: 1.5rem; border-radius: 0; box-shadow: none; padding: 0; }
    .mobile-only-block, .mobile-only-booking-widget { display: block; }
    .mobile-title-meta-block { padding: 0 0.75rem; margin-bottom: 1.5rem; }
    .mobile-service-title { font-size: 1.6rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
    .mobile-service-meta-info { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gray-color); margin-bottom: 0.75rem; }
    .mobile-service-meta-info i { color: var(--primary-color); }
    .mobile-price-display { font-size: 1.1rem; font-weight: 500; margin-left: 10px}
    .mobile-price-display .price-amount-mobile { font-weight: 800; color: var(--primary-color); font-size: 1.4rem; margin-left: 5px; }
    .mobile-only-block .provider-widget { border-radius: 12px; margin: 0 0.15rem 1.5rem 0.15rem; }
    .mobile-only-block .provider-header { padding: 1rem; }
    .mobile-only-block .provider-avatar { width: 50px; height: 50px; }
    .mobile-only-block .provider-name { font-size: 1.15rem; }
    .mobile-only-block .provider-meta { padding: 0.75rem 1rem; }
    
    .mobile-only-block .provider-actions {
        padding: 0 1rem 1rem;
    }

    .content-card, .related-services { margin-left: 0.25rem; margin-right: 0.25rem; }
    .related-services { padding-left: 0.75rem; padding-right: 0.75rem; }
    .desktop-only-attribute { display: none; }
    .mobile-only-attribute { display: flex; margin-left: 0.75rem; margin-right: 0.75rem; }
}
@media (max-width: 767.98px) { .main-image { height: 250px; } }
@media (max-width: 575.98px) {
    .mobile-service-title { font-size: 1.4rem; }
    .main-image { height: 220px; }
    .provider-header { text-align: left; }
    .provider-name { justify-content: flex-start; }
    .provider-meta { justify-content: space-around; }
}