/* Homepage Styles - Half Baked Harvest inspired */

/* Main Container Layout */
.main-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

.content {
    min-width: 0;
}

/* Section Labels */
.hot-label,
.fresh-label,
.news-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured/Hot Articles */
.featured-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .featured-articles {
        grid-template-columns: 1fr;
    }
}

.featured-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-content {
    padding: 15px;
}

.featured-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--color-text);
}

.featured-summary {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.featured-date {
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* Fresh Articles */
.fresh-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .fresh-articles {
        grid-template-columns: 1fr;
    }
}

.fresh-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.fresh-article:hover {
    transform: translateY(-3px);
}

.fresh-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.fresh-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.fresh-content {
    padding: 15px;
}

.fresh-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--color-text);
}

.fresh-summary {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.fresh-time {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item-list:hover {
    transform: translateX(5px);
}

.news-link-list {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.news-image-list {
    width: 150px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .news-link-list {
        flex-direction: column;
    }

    .news-image-list {
        width: 100%;
        height: 150px;
    }
}

.news-content-list {
    padding: 15px;
    flex: 1;
}

.news-title-list {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--color-text);
}

.news-summary-list {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-date-list {
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* Mobile News Grid */
.news-grid-mobile {
    display: none;
}

@media (max-width: 576px) {
    .news-list {
        display: none;
    }

    .news-grid-mobile {
        display: block;
    }
}

.news-item-mobile {
    margin-bottom: 15px;
}

.news-link-mobile {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.news-image-mobile {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-content-mobile {
    flex: 1;
}

.news-title-mobile {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    color: var(--color-text);
}

.news-date-mobile {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.news-separator {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 10px 0;
}

/* Articles Carousel Section */
.articles-carousel-section {
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-card {
    display: block;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8));
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
}

.carousel-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.carousel-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.carousel-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
}

.carousel-date,
.carousel-category {
    opacity: 0.8;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-primary);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--color-secondary);
}

.carousel-container {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--color-text);
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Recipe Card */
.recipe-card {
    background: white;
    transition: opacity var(--transition-fast);
}

.recipe-card:hover {
    opacity: 0.9;
}

.recipe-card-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.recipe-card-image img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-normal);
}

.recipe-card:hover .recipe-card-image img {
    transform: scale(1.02);
}

.recipe-card-body {
    padding: 0;
}

.recipe-card-title {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
    line-height: 1.4;
}

.recipe-card-title a {
    color: var(--color-text);
    text-decoration: none;
}

.recipe-card-title a:hover {
    color: var(--color-primary);
}

.recipe-card-meta {
    font-size: 0.875rem;
    color: var(--color-muted);
    font-family: var(--font-ui);
}

/* Latest Recipes Section */
.latest-section {
    margin-bottom: 3rem;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .latest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .latest-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Categories Section */
.categories-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: var(--color-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    transition: all var(--transition-fast);
}

.category-card:hover {
    background: var(--color-accent);
}

.category-card a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    text-transform: lowercase;
}

/* Load More Button */
.load-more {
    text-align: center;
    margin-top: 2rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-secondary);
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: lowercase;
    color: var(--color-text);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0.75rem;
}

.sidebar-list a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
}

.sidebar-list a:hover {
    color: var(--color-primary);
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--color-primary);
    color: white;
}

.newsletter-widget h3 {
    color: white;
}

.newsletter-widget p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: none;
    margin-bottom: 0.75rem;
    font-family: var(--font-ui);
    font-size: 14px;
}

.newsletter-form button {
    width: 100%;
    padding: 10px 12px;
    background: white;
    color: var(--color-primary);
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--color-accent);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .featured-grid,
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .featured-grid,
    .latest-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .carousel-content {
        padding: 1rem;
    }
}
