/* ==========================================================================
   AI Lensly V2 — Home Page Styles
   Hero, use case grid, category sections, trust section.
   Loaded only on front-page.
   ========================================================================== */

/* --- Hero Section --- */
.home-hero {
    background: linear-gradient(135deg, #0f1729 0%, #1e3a5f 100%);
    color: white;
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.home-hero-title {
    font-size: var(--font-size-4xl);
    color: white;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-subtitle {
    font-size: var(--font-size-base);
    color: #94a3b8;
    margin-bottom: var(--space-xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-search {
    max-width: 560px;
    margin: 0 auto var(--space-md);
}

.home-hero .search-input {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.97);
}

.home-hero .search-input::placeholder {
    color: var(--color-text-muted);
}

.home-hero-popular {
    font-size: var(--font-size-sm);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.home-hero-popular-label {
    color: #475569;
    font-weight: var(--font-weight-medium);
}

.home-hero-popular a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.home-hero-popular a:hover {
    color: white;
}

.home-hero-popular-dot {
    color: #334155;
}

/* --- Home Sections --- */
.home-section {
    padding: 3.5rem 0;
}

.home-section:nth-child(even) {
    background: var(--color-bg);
}

.home-section-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-sm);
}

.home-section-desc {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-lg);
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.view-all-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-secondary);
}

.view-all-link:hover {
    text-decoration: underline;
}

/* --- Featured Tools (Editor's Pick) --- */
.featured-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.featured-tool-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-base);
}

.featured-tool-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
    transform: translateY(-1px);
}

.featured-tool-logo {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
}

.featured-tool-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-tool-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-heading);
}

.featured-tool-summary {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-tool-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: 2px;
}

.featured-tool-best-for {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-secondary);
    background: var(--color-secondary-light);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
}

.featured-tool-price {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
}

.featured-tool-price.badge-free {
    background: var(--color-primary-light);
    color: var(--color-primary-hover);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
}

.featured-tool-cta {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-secondary);
    margin-top: auto;
    padding-top: var(--space-xs);
}

.featured-tool-card:hover .featured-tool-cta {
    color: var(--color-secondary-hover);
}

/* --- Use Case Grid --- */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
}

.use-case-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-base);
    text-align: center;
}

.use-case-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--color-text);
}

.use-case-name {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    color: var(--color-heading);
}

.use-case-count {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* --- Home Trust Section --- */
.home-trust {
    background: var(--color-heading) !important;
    color: #e2e8f0;
    padding-bottom: 2.5rem;
}

.home-trust .home-section-title {
    color: white;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.home-trust-item {
    text-align: center;
}

.home-trust-item h3 {
    color: white;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-xs);
}

.home-trust-item p {
    color: #cbd5e1;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-base);
}

.home-trust-methodology {
    display: inline-block;
    margin-top: var(--space-xl);
    color: #60a5fa;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.home-trust-methodology:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .home-hero-title {
        font-size: var(--font-size-2xl);
    }

    .home-hero-subtitle {
        font-size: var(--font-size-sm);
    }

    .home-hero-popular {
        font-size: var(--font-size-xs);
    }

    .home-trust-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .use-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-tool-grid {
        grid-template-columns: 1fr;
    }

    .home-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}
