/**
 * YHR Pro Profile Page Styles
 * Dedicated profile pages for professionals in the directory
 */

/* Breadcrumb Navigation */
.breadcrumb {
    background: #f5f5f5;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-sticky {
    position: sticky;
    top: var(--nav-height);
    z-index: 900;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: var(--nav-height);
}

/* On desktop, account for brand header */
@media (min-width: 1024px) {
    .breadcrumb-sticky {
        margin-top: calc(var(--nav-height) + 140px);
        top: var(--nav-height);
    }
}

.breadcrumb a {
    color: #B39783;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #a08570;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #929392;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, #f8f6f3 0%, #ede8e3 100%);
    padding: 3rem 0;
    border-bottom: 3px solid #B39783;
}

.profile-header.featured {
    background: linear-gradient(135deg, #fff9f0 0%, #f5ead8 100%);
    border-bottom: 3px solid #d4af37;
}

.profile-header-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-logo-section {
    position: relative;
    flex-shrink: 0;
}

.profile-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.profile-header-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.profile-tagline {
    font-size: 1.25rem;
    color: #666;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.profile-stars {
    color: #d4af37;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.profile-rating-number {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.profile-rating-count {
    color: #666;
    font-size: 0.875rem;
}

.profile-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Profile Sections */
.profile-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.profile-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 2rem;
    color: #333;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #B39783;
}

/* About Section */
.profile-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.key-features {
    background: #f8f6f3;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.key-features h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 0 0 1rem 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.features-list li {
    padding-left: 1.5rem;
    position: relative;
    color: #444;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #B39783;
    font-weight: bold;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.meta-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.meta-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.meta-content strong {
    display: block;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.meta-content p {
    color: #666;
    margin: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.service-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #B39783;
    box-shadow: 0 4px 12px rgba(179, 151, 131, 0.15);
    transform: translateY(-2px);
}

.service-icon {
    color: #B39783;
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
}

.service-name {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #f5f5f5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-zoom {
    font-size: 2rem;
    color: white;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.certification-badge {
    background: linear-gradient(135deg, #f8f6f3 0%, #ede8e3 100%);
    border: 2px solid #B39783;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-text {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-content strong {
    display: block;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-content a {
    color: #B39783;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: #a08570;
    text-decoration: underline;
}

.contact-content p {
    color: #666;
    margin: 0;
}

/* Social Media Section */
.social-media-section {
    background: #f8f6f3;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.social-media-section h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 0 0 1rem 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #B39783;
    background: #B39783;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(179, 151, 131, 0.2);
}

.social-icon {
    font-size: 1.25rem;
}

/* CTA Section */
.profile-cta-section {
    background: linear-gradient(135deg, #B39783 0%, #a08570 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.profile-cta-section h2 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: white;
    padding-bottom: 1rem;
}

.profile-cta-section p {
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Back to Directory */
.back-to-directory {
    padding: 2rem 0;
    text-align: center;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-logo-section {
        margin-bottom: 1.5rem;
    }

    .profile-logo {
        width: 150px;
        height: 150px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-tagline {
        font-size: 1.125rem;
    }

    .profile-cta-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-grid,
    .gallery-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .profile-meta-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
    }

    .social-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 2rem 0;
    }

    .profile-name {
        font-size: 1.75rem;
    }

    .profile-section {
        padding: 2rem 0;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}