/* Products Page Styles */

/* Hero Section */
.products-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e0f2fe 100%);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding: 6rem 0;
}

.products-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 4rem 4rem;
    opacity: 0.5;
}

.products-hero::after {
    content: '';
    position: absolute;
    left: 25%;
    top: 5rem;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.3), transparent);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    margin-bottom: 1.5rem;
    background: rgba(165, 243, 252, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #334155;
}

.pulse-dot {
    position: relative;
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background: #06b6d4;
    border-radius: 50%;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #06b6d4;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0.75;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #475569;
    margin: 0 auto 2.5rem;
    max-width: 42rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
}

/* Override button styles for products page */
.products-hero .btn-primary,
.cta-section .btn-primary {
    background: #06b6d4;
    color: white;
    border: none;
}

.products-hero .btn-primary:hover,
.cta-section .btn-primary:hover {
    background: #0891b2;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.products-hero .btn-outline,
.cta-section .btn-outline {
    background: transparent;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.products-hero .btn-outline:hover,
.cta-section .btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Models Section */
.models-section {
    padding: 4rem 0;
    background: #ffffff;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 2rem;
}

.section-header-flex h2 {
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.section-header-flex p {
    font-size: 1rem;
    color: #64748b;
    max-width: 48rem;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #06b6d4;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s;
}

.view-all-link:hover {
    gap: 0.75rem;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Model Card */
.model-card {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.model-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.model-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.model-card:hover .model-image img {
    transform: scale(1.05);
}

.model-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
    color: white;
    z-index: 1;
}

.badge-new {
    background: #06b6d4;
}

.badge-trending {
    background: #8b5cf6;
}

.badge-popular {
    background: #ec4899;
}

.badge-value {
    background: #10b981;
}

.badge-premium {
    background: #f59e0b;
}

.badge-opensource {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.model-price {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
}

.model-info {
    padding: 1rem;
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.model-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.model-resolution {
    font-size: 0.75rem;
    color: #64748b;
}

.model-info p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
}

/* Gradient Cards for Text/Audio Models */
.gradient-card .model-gradient {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.gradient-emerald {
    background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.gradient-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
}

.gradient-slate {
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
}

.gradient-pink {
    background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
}

.gradient-teal {
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
}

.gradient-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.gradient-name {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, rgba(14, 165, 233, 0.05), transparent);
    border-top: 1px solid #e2e8f0;
}

.cta-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.cta-content > p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.feature-dot {
    width: 0.375rem;
    height: 0.375rem;
    background: #06b6d4;
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-hero {
        padding: 4rem 0;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-all-link {
        align-self: flex-end;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
}

