/* Search Section */
.search-section {
    max-width: 900px;
    margin: -3rem auto 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
    position: relative;
    z-index: 5;
    border: 1px solid var(--pastel-purple-light);
    background: linear-gradient(135deg, var(--white) 0%, var(--pastel-purple-light) 100%);
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-box input,
.search-box select {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--pastel-purple);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
}

.search-box input:focus,
.search-box select:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--pastel-purple-light);
}

.btn {
    padding: 0.875rem 2rem;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Section Styles */
.section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

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

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.15rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header-actions {
    margin-top: 1.5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    color: white;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* Pets Grid - PetPaw Style Cards with Pastel Colors */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pet-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--pastel-purple-light);
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, var(--pastel-purple-light) 100%);
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
    border-color: var(--pastel-purple);
}

.pet-card.missing {
    border-color: #FCA5A5;
    background: linear-gradient(135deg, var(--white) 0%, #FEE2E2 100%);
}

.pet-card.missing::before {
    content: 'MISSING';
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.pet-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: var(--pastel-purple-light);
    display: block;
}

.pet-info {
    padding: 1.5rem;
    background: var(--white);
}

.pet-name {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.pet-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pet-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0;
}

.badge-species {
    background: var(--pastel-blue);
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.badge-breed {
    background: var(--pastel-pink);
    color: #9F1239;
    border: 1px solid #FBCFE8;
}

.badge-missing {
    background: #FEE2E2;
    color: #DC2626;
    font-weight: 700;
    border: 1px solid #FCA5A5;
}

.pet-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.pet-link:hover {
    color: var(--primary-purple-dark);
    gap: 0.75rem;
}

.pet-link::after {
    content: '→';
    transition: transform 0.3s;
}

.pet-link:hover::after {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background: var(--pastel-purple-light);
    border-radius: 16px;
}

.empty-state svg {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    opacity: 0.4;
    color: var(--primary-purple);
}

.empty-state p {
    font-size: 1.1rem;
    color: #666;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    background: var(--pastel-purple-light);
    border-radius: 16px;
}

/* Alpine.js cloak to prevent flash of unstyled content */
[x-cloak] {
    display: none !important;
}

/* Promotional Banners Section */
.promotional-banners-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.promotional-banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.promotional-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.banner-missing {
    background: linear-gradient(135deg, var(--pastel-blue) 0%, #DBEAFE 100%);
    border: 2px solid #BFDBFE;
}

.banner-mate {
    background: linear-gradient(135deg, var(--pastel-yellow) 0%, #FEF3C7 100%);
    border: 2px solid #FDE68A;
}

.promotional-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.banner-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.banner-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.banner-missing .banner-badge {
    color: #1E40AF;
}

.banner-mate .banner-badge {
    color: #92400E;
}

.promotional-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.promotional-banner p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.banner-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: underline;
    transition: all 0.3s;
}

.banner-missing .banner-link {
    color: #1E40AF;
}

.banner-mate .banner-link {
    color: #92400E;
}

.promotional-banner:hover .banner-link {
    transform: translateX(5px);
}

.banner-image {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.banner-icon {
    font-size: 8rem;
    opacity: 0.3;
    transition: all 0.3s;
}

.promotional-banner:hover .banner-icon {
    opacity: 0.4;
    transform: scale(1.1);
}

/* Tag Designs Section */
.tag-designs-section {
    background: var(--gray-50);
    padding: 4rem 2rem;
    margin: 4rem auto;
}

.tag-designs-carousel {
    margin-top: 3rem;
}

.tag-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.tag-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

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

.tag-carousel-item {
    flex: 0 0 calc(25% - 1.5rem);
    min-width: 0;
    max-width: calc(25% - 1.5rem);
    box-sizing: border-box;
}

.tag-design-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--pastel-purple-light);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.tag-design-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
    border-color: var(--pastel-purple);
}

.tag-image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.tag-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.tag-design-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.tag-description {
    font-size: 0.9375rem;
    color: #666;
    margin: 0;
}

.tag-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--pastel-purple);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.tag-carousel-arrow:hover:not(:disabled) {
    background: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.tag-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tag-carousel-arrow.prev {
    left: -24px;
}

.tag-carousel-arrow.next {
    right: -24px;
}

.tag-carousel-controls {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.tag-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pastel-purple);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tag-carousel-dot:hover {
    background: var(--primary-purple);
    transform: scale(1.2);
}

.tag-carousel-dot.active {
    background: var(--primary-purple);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Pet Profiles Section Background - Full Width */
#pet-profiles {
    background: linear-gradient(135deg, var(--pastel-purple-light) 0%, var(--pastel-blue) 100%);
    padding: 4rem 0;
    margin: 4rem 0;
    border: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
}

#pet-profiles .section-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#pet-profiles .pets-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#pet-profiles .pets-grid {
    margin: 0;
    padding: 0;
}

/* Statistics Parallax Section */
.statistics-parallax-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-background {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.statistics-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.statistics-title {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.statistics-title h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.statistics-title p {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.statistics-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    width: 100%;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 968px) {
    .statistics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .statistics-parallax-section {
        height: 500px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .statistics-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .statistics-parallax-section {
        height: 600px;
    }
    
    .statistics-title {
        margin-bottom: 2rem;
    }
    
    .statistics-title h2 {
        font-size: 2rem;
    }
    
    .statistics-title p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

.last-seen-text {
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .pets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tag-carousel-item {
        flex: 0 0 calc(33.333% - 1.34rem);
        max-width: calc(33.333% - 1.34rem);
    }
    
    .tag-carousel-arrow.prev {
        left: 0;
    }
    
    .tag-carousel-arrow.next {
        right: 0;
    }
    
    .promotional-banner h2 {
        font-size: 2rem;
    }
    
    .banner-icon {
        font-size: 6rem;
    }
}

@media (max-width: 968px) {
    .pets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tag-carousel-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .search-section {
        margin: -2rem 1rem 2rem;
        padding: 1.5rem;
    }

    .search-box {
        flex-direction: column;
    }
    
    .pets-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .pet-card {
        border-radius: 12px;
    }

    .pet-image {
        height: 240px;
    }
    
    .promotional-banners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .promotional-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .banner-content {
        order: 1;
    }
    
    .banner-image {
        order: 2;
        margin-top: 1rem;
    }
    
    .banner-icon {
        font-size: 5rem;
    }
    
    .promotional-banner h2 {
        font-size: 1.75rem;
    }
    
    .tag-carousel-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .tag-carousel-arrow {
        display: none;
    }
    
    .tag-design-card {
        padding: 1.5rem;
    }
    
    .tag-carousel-container {
        padding: 1rem 0 3rem;
    }
    
    .tag-image-wrapper {
        width: 120px;
        height: 120px;
    }
}
