/* Merchandisers landing-page styles. Lifted from content.blade.php
   (was a 270-line inline <style>). Loaded via frontend/master.blade.php. */
    /* Merchandise Background Gradient */
    .bg-gradient-merchandise {
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        position: relative;
    }

    .bg-gradient-merchandise::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="70" r="0.8" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
        opacity: 0.4;
    }

    /* Backdrop Blur */
    .backdrop-blur {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Stats Container */
    .stats-container {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .stat-item h2 {
        font-size: 2rem;
        font-weight: 700;
    }

    /* Merchandiser Cards */
    .merchandiser-card {
        transition: all 0.3s ease;
        border-radius: 12px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.95);
    }

    .merchandiser-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

    /* Profile Images */
    .profile-image-container {
        position: relative;
        width: 120px;
        height: 120px;
        margin: 0 auto;
        margin-top: -60px;
        z-index: 2;
    }

    .profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    /* Status Badge */
    .status-badge {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Profile Overlay */
    .profile-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .merchandiser-card:hover .profile-overlay {
        opacity: 1;
    }

    /* Contact Button */
    .contact-btn {
        transition: all 0.3s ease;
        border-radius: 6px;
        font-weight: 500;
    }

    .contact-btn:hover {
        transform: translateY(-2px);
        background-color: #0d6efd;
        color: white;
    }

    /* Load More Button */
    .load-more-btn {
        transition: all 0.3s ease;
        border-radius: 25px;
        padding: 0.75rem 2rem;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }

    .load-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    }

    .load-more-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    /* Expertise Section */
    .expertise-section {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .expertise-item {
        padding: 1rem;
    }

    .expertise-icon {
        display: flex;
        justify-content: center;
    }

    /* Mobile Responsive Styles */
    @media (max-width: 575.98px) {
        .merchandiser-card .card-body {
            padding: 1rem;
        }

        .merchandiser-card .card-footer {
            padding: 0 1rem 1rem 1rem;
        }

        .profile-image-container {
            width: 100px;
            height: 100px;
            margin-top: -50px;
        }

        .card-title {
            font-size: 1.1rem;
            line-height: 1.3;
        }

        .card-text {
            font-size: 0.9rem;
        }

        .contact-btn {
            font-size: 0.8rem;
            padding: 0.4rem 0.8rem;
        }

        .stat-item h2 {
            font-size: 1.5rem;
        }

        .stat-item p {
            font-size: 0.75rem;
        }

        .skills-preview .badge {
            font-size: 0.7rem;
        }
    }

    @media (max-width: 767.98px) {
        .display-5 {
            font-size: 2rem;
        }

        .profile-image-container {
            width: 110px;
            height: 110px;
            margin-top: -55px;
        }

        .stats-container .row > div {
            margin-bottom: 1rem;
        }

        .stats-container .row > div:last-child {
            margin-bottom: 0;
        }

        .expertise-item {
            margin-bottom: 1.5rem;
        }
    }

    /* Touch-friendly interactions */
    @media (hover: none) and (pointer: coarse) {
        .merchandiser-card:hover {
            transform: none;
        }

        .merchandiser-card:hover .profile-overlay {
            opacity: 1;
        }

        .contact-btn:hover {
            transform: none;
        }

        .load-more-btn:hover {
            transform: none;
        }

        .merchandiser-card:active {
            transform: scale(0.98);
        }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .merchandiser-card {
            border: 1px solid;
            background: white;
        }

        .profile-image {
            border: 2px solid;
        }

        .stats-container,
        .expertise-section {
            background: white;
            border: 2px solid;
        }
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .merchandiser-card,
        .contact-btn,
        .load-more-btn,
        .profile-overlay {
            transition: none;
        }

        .merchandiser-card:hover {
            transform: none;
        }

        .merchandiser-card:hover .profile-overlay {
            opacity: 1;
        }
    }


/* Modal profile-image (replaces inline style on the modal img). */
img.profile-image-large {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #e9ecef;
}
