/* === Customer Spotlight Section - Generic Base Styles === */
/* Override these styles in your project's CSS for custom branding */

.customer-spotlight {
    padding: 2rem 0;
    min-height: 200px;
}

.spotlight-header {
    text-align: center;
    margin-bottom: 40px;
}

.spotlight-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.spotlight-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.customer-gallery-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: transparent;
}

.customer-gallery-scroll {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.customer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Customer cards - Base styles */
.customer-item {
    position: absolute;
    width: 200px;
    height: 320px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #ddd;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.customer-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed #ccc;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.customer-item:hover::before {
    opacity: 1;
}

.customer-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
    z-index: 10;
}

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

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

.customer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    color: #fff;
}

.customer-item:hover .customer-overlay {
    transform: translateY(0);
}

.customer-handle {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    color: #fff;
}

.customer-handle::before {
    content: "@";
    color: #999;
}

.instagram-icon {
    width: 16px;
    height: 16px;
    fill: #999;
}

/* Loading states */
.loading-customer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.customer-skeleton {
    width: 200px;
    height: 320px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    position: relative;
}

.skeleton-image {
    width: 100%;
    height: 80%;
    background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    padding: 1rem;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-line.short {
    width: 60%;
    margin: 0 auto;
}

@keyframes skeleton-shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Error states */
.error-customer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #666;
    flex-direction: column;
    gap: 1rem;
}

.error-icon {
    font-size: 3rem;
}

.error-message {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.retry-button {
    background: #333;
    color: #fff;
    border: 2px solid #333;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.retry-button:hover {
    background: #555;
    border-color: #555;
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .customer-spotlight {
        padding: 1.5rem 0;
    }

    .spotlight-title {
        font-size: 2rem;
    }

    .spotlight-subtitle {
        font-size: 0.9rem;
    }

    .spotlight-header {
        margin-bottom: 30px;
    }

    .customer-gallery-container {
        height: 320px;
    }

    .customer-item {
        width: 160px;
        height: 260px;
    }

    .customer-skeleton {
        width: 160px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .spotlight-title {
        font-size: 1.75rem;
    }

    .customer-gallery-container {
        height: 280px;
    }

    .customer-item {
        width: 140px;
        height: 220px;
    }

    .customer-skeleton {
        width: 140px;
        height: 220px;
    }

    .customer-handle {
        font-size: 0.85rem;
    }
}
