/* Name Wall Section */
.name-wall-section {
    padding: 3rem 0;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    min-height: 80vh;
    width: 100%;
}

.name-wall-header {
    text-align: center;
    margin-bottom: 3rem;
}

.name-wall-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.name-wall-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.name-wall-count {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.name-wall-count span {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 9999px;
    color: #059669;
}

.name-wall-filters {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-quick {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-favorites {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #fde68a;
}

.filter-favorites:hover {
    background: #fde68a;
    border-color: #fbbf24;
}

.filter-favorites.active {
    background: #fbbf24;
    color: white;
    border-color: #f59e0b;
}

.filter-favorites svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.filter-favorites.active svg {
    fill: currentColor;
}

.favorites-count {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.favorites-count-number {
    font-weight: 700;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-btn:hover:not(.disabled) {
    background: #e5e7eb;
    color: #374151;
}

.filter-btn.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.filter-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f3f4f6;
}

.filter-btn.disabled span {
    opacity: 0.5;
}

.filter-count {
    font-size: 0.75rem;
    opacity: 0.8;
}

.filter-alphabet-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
}

.filter-alphabet-buttons .filter-btn {
    min-width: 40px;
    justify-content: center;
    padding: 0.5rem;
}

.name-wall-container {
    position: relative;
}

/* Carousel Base Styles */
.name-wall-carousel {
    position: relative;
}

.carousel-track {
    overflow: hidden;
    position: relative;
    border-radius: 1rem;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 1rem;
}

.name-banner-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f3f4f6;
}

.name-banner-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Desktop: Show favorite button on hover only */
@media (min-width: 768px) {
    .name-wall-carousel-horizontal .favorite-btn {
        opacity: 0;
        visibility: hidden;
    }

    .name-wall-carousel-horizontal .name-banner-wrapper:hover .favorite-btn {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile: Always show favorite button */
@media (max-width: 767px) {
    .name-wall-carousel-horizontal .favorite-btn {
        opacity: 1;
        visibility: visible;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }

    .name-wall-carousel-horizontal .favorite-btn:hover {
        background: transparent;
        transform: scale(1.1);
        box-shadow: none;
    }

    .name-wall-carousel-horizontal .favorite-btn.active {
        background: transparent;
    }

    .name-wall-carousel-horizontal .favorite-icon {
        color: white;
        stroke: white;
        fill: none;
    }

    .name-wall-carousel-horizontal .favorite-btn.active .favorite-icon {
        color: #fbbf24;
        fill: #fbbf24;
        stroke: #fbbf24;
    }
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.favorite-btn.active {
    background: #fbbf24;
    color: white;
}

.favorite-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.favorite-btn.active .favorite-icon {
    color: white;
    fill: currentColor;
    stroke: currentColor;
}

.name-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.name-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.name-banner-wrapper:hover .name-banner-overlay {
    opacity: 1;
}

.name-banner-text {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: capitalize;
    display: block;
    margin-bottom: 0.25rem;
}

.name-banner-gender {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: capitalize;
    display: block;
}

/* Hidden slides when filtered */
.carousel-slide.filtered {
    display: none !important;
}

/* Horizontal Carousel - Base Styles */
.name-wall-carousel-horizontal {
    display: block;
}

.name-wall-carousel-horizontal .carousel-slides {
    gap: 1rem;
}

/* Mobile: 1 slide per view */
.name-wall-carousel-horizontal .carousel-slide {
    width: 100%;
}

.name-wall-carousel-horizontal .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: 2px solid #e5e7eb;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #1f2937;
}

/* Mobile: Simplified navigation buttons - arrows only */
@media (max-width: 767px) {
    .name-wall-carousel-horizontal .carousel-nav {
        background: transparent;
        border: none;
        box-shadow: none;
        width: auto;
        height: auto;
        padding: 0.5rem;
    }

    .name-wall-carousel-horizontal .carousel-nav:hover {
        background: transparent;
        border: none;
        transform: translateY(-50%) scale(1.1);
    }

    .name-wall-carousel-horizontal .carousel-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

    .name-wall-carousel-horizontal .carousel-nav svg {
        color: white;
        width: 24px;
        height: 24px;
    }
}

.name-wall-carousel-horizontal .carousel-nav:hover {
    background: #10b981;
    border-color: #10b981;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.name-wall-carousel-horizontal .carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.name-wall-carousel-horizontal .carousel-prev {
    left: 0.5rem;
}

.name-wall-carousel-horizontal .carousel-next {
    right: 0.5rem;
}

.name-wall-carousel-horizontal .carousel-nav svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Desktop: 2-4 slides per view */
@media (min-width: 768px) {
    .name-wall-carousel-horizontal .carousel-slides {
        gap: 1.5rem;
    }

    /* 2 columns for 768px - 1023px */
    .name-wall-carousel-horizontal .carousel-slide {
        width: calc((100% - 1.5rem) / 2);
    }

    .name-wall-carousel-horizontal .carousel-nav {
        border: none;
        width: 48px;
        height: 48px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .name-wall-carousel-horizontal .carousel-prev {
        left: -24px;
    }

    .name-wall-carousel-horizontal .carousel-next {
        right: -24px;
    }

    .name-wall-carousel-horizontal .carousel-nav svg {
        width: 24px;
        height: 24px;
    }
}

/* 3 columns for 1024px - 1279px */
@media (min-width: 1024px) {
    .name-wall-carousel-horizontal .carousel-slides {
        gap: 1.5rem;
    }

    .name-wall-carousel-horizontal .carousel-slide {
        width: calc((100% - 3rem) / 3);
    }
}

/* 4 columns for 1280px and above */
@media (min-width: 1280px) {
    .name-wall-carousel-horizontal .carousel-slides {
        gap: 1.5rem;
    }

    .name-wall-carousel-horizontal .carousel-slide {
        width: calc((100% - 4.5rem) / 4);
    }
}

/* Empty State */
.name-wall-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.name-wall-empty p {
    color: #6b7280;
    font-size: 1.125rem;
    margin: 0;
}

.name-wall-empty code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #059669;
}

/* No Results Message */
.name-wall-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.no-results-icon {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.no-results-icon svg {
    width: 64px;
    height: 64px;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.no-results-message {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    max-width: 400px;
}

/* Loading State */
.name-banner-image[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.name-banner-image.loaded {
    opacity: 1;
}


@media (max-width: 768px) {
    .name-wall-title {
        font-size: 2rem;
    }

    .name-wall-section {
        padding: 2rem 0;
    }

    .name-wall-header {
        margin-bottom: 2rem;
    }

    .name-wall-filters {
        padding: 1rem;
    }

    .filter-alphabet-buttons {
        grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
        gap: 0.375rem;
    }

    .filter-alphabet-buttons .filter-btn {
        min-width: 36px;
        padding: 0.375rem;
        font-size: 0.75rem;
    }
}

