/* Public Tradesperson Profile Styles */

/* Gallery Carousel - Horizontal scrolling like internal profile */
.gallery-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0.75rem;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gallery-carousel::-webkit-scrollbar {
    height: 8px;
}

.gallery-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-carousel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.gallery-carousel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.gallery-item {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
}

.gallery-item img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

/* Expandable Sections */
.expandable-section {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.expandable-section.is-expanded {
    max-height: none;
}

.expandable-section .fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.expandable-section.is-expanded .fade-overlay {
    display: none;
}

/* Star rating styles */
.stars {
    color: #ffd700;
    font-size: 1rem;
    letter-spacing: 0.1rem;
}

/* Profile image with verification badge */
.profile-image-container {
    position: relative;
}

.profile-image-status-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 9;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact section - improved mobile handling */
.contact-sticky {
    position: sticky;
    top: 20px;
}

/* Mobile: Bottom fixed CTA instead of sticky sidebar */
@media screen and (max-width: 768px) {
    .contact-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 30;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        
        /* Safe area for notched devices */
        padding: 0.75rem max(0.75rem, env(safe-area-inset-right)) 
                 calc(0.75rem + env(safe-area-inset-bottom)) 
                 max(0.75rem, env(safe-area-inset-left));
        
        /* Performance optimization - prevents shift when address bar appears/disappears */
        will-change: transform;
        transform: translateZ(0);
    }
    
    .contact-sticky .box {
        margin-bottom: 0 !important;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
        padding: 0;
    }
    
    .contact-sticky .title.is-5 {
        display: none;
    }
    
    .contact-sticky p.has-text-grey {
        display: none;
    }
    
    .contact-sticky .is-size-7 {
        display: none;
    }
    
    /* Add padding to content to prevent overlap */
    .main-content-column {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }
}

/* Border utility */
.has-border-bottom {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
