/**
 * Home Styles
 * @package AtualReceitas
 * @version 1.0.15
 */

.hero-section {
    background: linear-gradient(135deg, var(--neutral) 0%, var(--white) 100%);
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.recipes-section,
.categories-section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    margin: 0;
}

.categories-grid {
    margin-top: 2rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero slider */
.hero-slider {
    position: relative;
    margin: 0 auto 2rem;
    max-width: 1100px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    background: var(--white);
}

.hero-slides {
    position: relative;
}

.hero-slide {
    display: none;
    position: relative;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide-link {
    display: block;
    position: relative;
}

.hero-slide-image {
    width: 100%;
    height: clamp(220px, 42vw, 420px);
    object-fit: cover;
    display: block;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.70) 100%);
}

.hero-slide-content {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    text-align: left;
    color: #fff;
}

.hero-slide-category {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
}

.hero-slide-title {
    margin: 0.6rem 0 0.25rem;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    line-height: 1.15;
}

.hero-slide-title a {
    color: #fff;
    text-decoration: none;
}

.hero-slide-title a:hover {
    text-decoration: underline;
}

.hero-slide-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.18);
    font-weight: 600;
    font-size: 0.85rem;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.30);
    background: rgba(0,0,0,0.25);
    cursor: pointer;
}

.hero-nav:hover {
    background: rgba(0,0,0,0.35);
}

.hero-prev { left: 0.75rem; }
.hero-next { right: 0.75rem; }

.hero-prev::before,
.hero-next::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    margin: 0 auto;
}

.hero-prev::before {
    transform: rotate(135deg);
}

.hero-next::before {
    transform: rotate(-45deg);
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.25);
    cursor: pointer;
}

.hero-dot.is-active {
    background: rgba(255,255,255,0.95);
}

@media (max-width: 768px) {
    .hero-nav { display: none; }
    .hero-slide-content {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* Trending tags */
.trending-section {
    padding: 1.25rem 0 0;
}

.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.25rem 0 0;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tag-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.18);
}


/* Home collections */
.home-collection-section {
    padding: 2.5rem 0;
}

.section-link {
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.section-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .home-collection-section {
        padding: 2rem 0;
    }
}
