/* Doctor Profile Premium Styles
 * Self-contained — includes all header layout, responsive, and gallery rules.
 */

/* ─── Doctor Avatar Shape ────────────────────────────────────────────────── */
.avatar-container img {
    border-radius: 50% !important; /* Doctor: circle */
}

/* ─── Profile Cover ──────────────────────────────────────────────────────── */
.profile-cover {
    height: 240px !important;
    width: 100%;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

/* ─── Avatar Wrapper: 160 × 160 on Desktop ───────────────────────────────── */
.avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.avatar-container img {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    border: 6px solid #fff;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
 
 .verified-tick {
     position: absolute !important;
     bottom: 5px !important;
     right: 5px !important;
     width: 38px !important;
     height: 38px !important;
     background: #2563eb !important; /* Platform Blue for Verification */
     color: white !important;
     border-radius: 50% !important;
     display: flex !important;
     align-items: center !important;
     justify-content: center !important;
     font-size: 16px !important;
     border: 4px solid #fff !important;
     box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
     z-index: 5 !important;
 }

/* ─── Tablet (≤ 992 px) ──────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .profile-cover {
        height: 220px !important;
    }
    .profile-main-info {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 20px 30px !important;
        gap: 1.5rem !important;
    }
    .profile-stats-bar {
        padding: 20px !important;
        justify-content: center !important;
        gap: 20px !important;
    }
    .profile-badges {
        justify-content: center !important;
    }
    .profile-actions {
        justify-content: center !important;
        width: 100% !important;
    }
}

/* ─── Mobile (≤ 768 px) ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .profile-cover {
        height: 200px !important;
        border-radius: 20px 20px 0 0 !important;
    }
    .profile-main-info {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 1.5rem 1.5rem 1.5rem !important;
        gap: 1.5rem !important;
        margin-top: -75px !important;
        position: relative;
        z-index: 2;
    }
    .avatar-container {
        margin: 0 auto !important;
        width: 150px !important;
        height: 150px !important;
    }
    .avatar-container img {
        width: 150px !important;
        height: 150px !important;
        border-radius: 50% !important;
        border: 8px solid #fff !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    }
    .profile-name {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    .profile-badges {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    .profile-actions {
        justify-content: center !important;
        width: 100% !important;
        padding-bottom: 0 !important;
    }
    .profile-stats-bar {
        padding: 1.25rem !important;
        gap: 1rem !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        text-align: center !important;
        border-top: 1px solid #f1f5f9 !important;
    }
    .stat-box {
        align-items: center !important;
        padding: 0.5rem !important;
        min-width: 0 !important;
    }
    .stat-val {
        font-size: 1.1rem !important;
    }
    .profile-nav-tabs {
        width: calc(100% + 2rem) !important;
        max-width: 100vw !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        padding: 10px 1rem !important;
        display: block !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        border-radius: 0 !important;
        border: none !important;
        background: transparent !important;
        margin-bottom: 1.5rem !important;
    }
    .profile-nav-tabs::-webkit-scrollbar {
        display: none !important;
    }
    .tab-btn {
        display: inline-block !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        margin-right: 8px !important;
    }
}

/* ─── Small Mobile (≤ 480 px) ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .profile-cover {
        height: 180px !important;
    }
    .avatar-container {
        width: 130px !important;
        height: 130px !important;
    }
    .avatar-container img {
        width: 130px !important;
        height: 130px !important;
        border-radius: 50% !important;
    }
    .profile-main-info {
        margin-top: -65px !important;
    }
    .profile-name {
        font-size: 1.3rem !important;
    }
}

/* ─── Gallery Premium Component ─────────────────────────────────────────── */
.gallery-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.gallery-item {
    position: relative;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gallery-item {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .gallery-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gallery-item {
        height: 150px;
    }
}

/* ─── Shared Styles optimized for profile tabs ───────────────────────────── */

/* Ensure feed-workspace behaves well inside profile tabs */
#tab-Insights .feed-workspace {
    padding-left: 0;
    padding-right: 0;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 24px !important;
    align-items: start !important;
}

/* Premium Shared pro-edit-btn used instead - Matches Vendor standard */
.pro-edit-btn-cover {
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border-radius: 50% !important; /* Keep cover camera button circular */
}
.pro-edit-btn-cover:hover {
    background-color: #f8fafc !important;
    color: #2563eb !important;
}

/* Gallery styles are defined above */

/* Lightbox Premium */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    cursor: default;
    animation: lightbox-scale 0.35s cubic-bezier(0.2, 0, 0.2, 1);
}

@keyframes lightbox-scale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #ffffff;
    font-size: 2rem;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* Existing Styles ... */
.reviews-visual-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 0;
}

.trust-summary-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    display: grid;
    grid-template-columns: 240px 1fr 220px;
    gap: 48px;
    align-items: center;
}

.rating-score-block {
    text-align: center;
    padding-right: 48px;
    border-right: 1px solid #f1f5f9;
}

.score-big {
    font-size: 4rem;
    font-weight: 850;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.score-stars-row {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-bars-block {
    flex: 1;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    width: 55px;
    text-align: right;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 10px;
}

.trust-actions-block {
    text-align: center;
}

/* Review Wall Cards */
.reviews-modern-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card-v2 {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
}

.review-card-v2:hover {
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transform: translateY(-2px);
}

.rc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.rc-user-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.rc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    background: #f8fafc;
}

.rc-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.rc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.rc-verified-badge {
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rc-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.rc-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 24px;
    font-weight: 400;
}

.rc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f8fafc;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.helpful-btn {
    background: transparent;
    border: 1px solid #f1f5f9;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.helpful-btn:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #e2e8f0;
}

@media (max-width: 900px) {
    .trust-summary-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 30px;
    }
    .rating-score-block {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding-right: 0;
        padding-bottom: 24px;
    }
}

.upload-zone:hover {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}
.upload-zone.active {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
}

.hover-bg-light:hover {
    background-color: #f8fafc !important;
}
