/* Homepage-specific styles */

/* === Hero Banner === */
.hp-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 2.5rem;
    padding: 3rem 5%;
    /* Break out of .container to full width */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}
.hp-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}
.hp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.3) 100%);
    z-index: 1;
}
.hp-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 55%;
    padding-left: 3%;
}
.hp-hero-tagline {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00ab6b;
    margin-bottom: .8rem;
}
.hp-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.hp-hero-title span {
    display: block;
    color: #00ab6b;
}
.hp-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: .9;
    margin-bottom: 1.8rem;
    max-width: 480px;
}
.hp-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-hero {
    background: #00ab6b;
    color: #fff;
    border: 2px solid #00ab6b;
    padding: .7rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-block;
    transition: all .25s;
}
.btn-hero:hover {
    background: #038252;
    border-color: #038252;
    color: #fff;
    text-decoration: none;
}
.btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,.7);
    color: #fff;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
    color: #fff;
}

/* Featured recipe card in hero */
.hp-hero-featured {
    position: relative;
    z-index: 2;
    width: 340px;
    flex-shrink: 0;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    margin-right: 3%;
}
.hp-hero-featured .hp-hero-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-block;
    background: #00ab6b;
    color: #fff;
    padding: 4px 14px;
    border-radius: 15px;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0;
}
.hp-hero-featured-link {
    display: block;
    text-decoration: none;
    color: #fff;
}
.hp-hero-featured-link:hover {
    text-decoration: none;
    color: #fff;
}
.hp-hero-featured-link > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.hp-hero-featured-info {
    padding: 14px 16px;
    color: #fff;
}
.hp-hero-featured-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-hero-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.4);
    flex-shrink: 0;
}
.hp-hero-featured-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-hero-featured-meta {
    font-size: .75rem;
    opacity: .75;
}

@media (max-width: 991px) {
    .hp-hero {
        flex-direction: column;
        align-items: flex-start;
        min-height: 420px;
        padding: 2rem 4%;
    }
    .hp-hero-content {
        max-width: 100%;
        margin-bottom: 1.5rem;
        padding-left: 0;
    }
    .hp-hero-title {
        font-size: 2.2rem;
    }
    .hp-hero-featured {
        width: 300px;
        margin-right: 0;
    }
}
@media (max-width: 575px) {
    .hp-hero {
        min-height: 360px;
        padding: 1.5rem;
    }
    .hp-hero-title {
        font-size: 1.8rem;
    }
    .hp-hero-subtitle {
        font-size: .9rem;
    }
    .hp-hero-featured {
        display: none;
    }
}

/* === Section Headings === */
.hp-section {
    margin-bottom: 2.5rem;
}
.hp-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #00ab6b;
    padding-bottom: .5rem;
    display: inline-block;
}

/* === Two-Column Browse (Cuisines + Meal Types) === */
.hp-browse-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 991px) {
    .hp-browse-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* === Cuisine Grid === */
.hp-cuisine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.hp-cuisine-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.hp-cuisine-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    text-decoration: none;
}
.hp-cuisine-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-cuisine-card .hp-cuisine-label {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 8px;
    color: #fff;
    font-weight: 600;
    font-size: .75rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
@media (max-width: 767px) {
    .hp-cuisine-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .hp-cuisine-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Course/Meal Type Cards === */
.hp-course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.hp-course-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: .8rem 1rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    gap: .8rem;
}
.hp-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    border-color: #00ab6b;
    text-decoration: none;
    color: #333;
}
.hp-course-card:hover .hp-course-icon {
    color: #00ab6b;
}
.hp-course-icon {
    font-size: 1.4rem;
    color: #00ab6b;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5ef;
    border-radius: 50%;
    flex-shrink: 0;
    transition: color .2s;
}
.hp-course-name {
    font-weight: 600;
    font-size: .9rem;
}
@media (max-width: 991px) {
    .hp-course-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
    .hp-course-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Cuisine Spotlight — Tabbed Layout === */

/* Cuisine tabs row */
.hp-spotlight-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.hp-spotlight-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all .2s;
    font-size: .85rem;
    font-weight: 600;
    color: #555;
}
.hp-spotlight-tab img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.hp-spotlight-tab:hover {
    border-color: #00ab6b;
    color: #333;
}
.hp-spotlight-tab.active {
    background: #e8f5ef;
    border-color: #00ab6b;
    color: #00ab6b;
}

/* Panels: only active one is visible */
.hp-spotlight-panel {
    display: none;
}
.hp-spotlight-panel.active {
    display: block;
}

/* Featured + list side by side */
.hp-spotlight-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 1.2rem;
}
.hp-spotlight-featured {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 420px;
}

/* Rotating slides */
.hp-spotlight-slide {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    color: #fff;
    opacity: 0;
    transition: opacity .6s ease-in-out;
}
.hp-spotlight-slide.active {
    opacity: 1;
    position: relative;
}
.hp-spotlight-slide > img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}
.hp-spotlight-slide:hover {
    text-decoration: none;
    color: #fff;
}

/* Overlay with grey background and author avatar */
.hp-spotlight-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
}
.hp-spotlight-overlay-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(50,50,50,.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 14px 18px;
    margin: 12px;
    border-radius: 8px;
}
.hp-spotlight-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.4);
    flex-shrink: 0;
}
.hp-spotlight-overlay-inner h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
    line-height: 1.3;
}
.hp-spotlight-overlay-inner p {
    font-size: .75rem;
    opacity: .85;
    margin-bottom: 0;
    line-height: 1.4;
    color: #ddd;
}

/* Right side list — 8 items */
.hp-spotlight-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hp-spotlight-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #555;
    transition: background .15s;
}
.hp-spotlight-list-item:last-child {
    border-bottom: 0;
}
.hp-spotlight-list-item:hover {
    background: #fafafa;
    text-decoration: none;
    color: #333;
}
.hp-spotlight-list-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.hp-spotlight-list-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.hp-spotlight-list-title {
    font-size: .8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-spotlight-list-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.hp-tag-pill {
    font-size: .6rem;
    background: #f0f0f0;
    color: #777;
    padding: 1px 7px;
    border-radius: 10px;
    text-transform: capitalize;
}

/* View all link */
.hp-spotlight-view-all {
    font-size: .85rem;
    font-weight: 600;
    color: #00ab6b;
    text-decoration: none;
}
.hp-spotlight-view-all:hover {
    color: #038252;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .hp-spotlight-layout {
        grid-template-columns: 1fr;
    }
    .hp-spotlight-featured {
        min-height: 280px;
    }
    .hp-spotlight-slide img {
        min-height: 280px;
    }
    .hp-spotlight-tabs {
        gap: 6px;
    }
    .hp-spotlight-tab {
        padding: 4px 12px 4px 4px;
        font-size: .75rem;
    }
    .hp-spotlight-tab img {
        width: 26px;
        height: 26px;
    }
    .hp-spotlight-author-avatar {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    .hp-spotlight-featured-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .hp-spotlight-overlay-inner {
        padding: 10px 12px;
        margin: 8px;
    }
}

/* === Section Backgrounds for Visual Division === */
#hp-browse {
    background: #f8f9fa;
    padding: 2.5rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}
#hp-spotlights {
    padding-top: .5rem;
}
#hp-recent {
    background: #f8f9fa;
    padding: 2.5rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* === Blog Section (From the Blog) === */
.hp-blog-section {
    background: #fff;
    padding: 2.5rem 0;
    margin-bottom: 0;
}
.hp-blog-inner {
    max-width: 100%;
}
.hp-blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.hp-blog-header .hp-section-title {
    margin-bottom: 0;
}
.hp-blog-view-all {
    font-size: .85rem;
    font-weight: 600;
    color: #00ab6b;
    text-decoration: none;
}
.hp-blog-view-all:hover {
    color: #038252;
    text-decoration: underline;
}

/* Featured blog card (large left) */
.hp-blog-featured-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    height: 100%;
    transition: box-shadow .2s;
}
.hp-blog-featured-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.hp-blog-featured-card > a > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.hp-blog-featured-body {
    padding: 1.2rem 1.4rem;
}
.hp-blog-tag {
    display: inline-block;
    background: #e8f5ef;
    color: #00ab6b;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    letter-spacing: .3px;
}
.hp-blog-featured-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.3;
}
.hp-blog-featured-body h3 a {
    color: #333;
    text-decoration: none;
}
.hp-blog-featured-body h3 a:hover {
    color: #00ab6b;
}
.hp-blog-featured-body p {
    font-size: .88rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: .8rem;
}
.hp-blog-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: #555;
    font-weight: 500;
}
.hp-blog-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.hp-blog-date {
    color: #999;
    font-weight: 400;
}
.hp-blog-date::before {
    content: "\00b7";
    margin-right: 8px;
}

/* Blog stack (3 items on right) */
.hp-blog-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}
.hp-blog-stack-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #555;
    transition: background .15s;
    align-items: center;
}
.hp-blog-stack-item:first-child {
    padding-top: 0;
}
.hp-blog-stack-item:last-child {
    border-bottom: 0;
}
.hp-blog-stack-item:hover {
    text-decoration: none;
    color: #333;
}
.hp-blog-stack-item > img {
    width: 120px;
    min-height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    align-self: flex-start;
}
.hp-blog-stack-info {
    min-width: 0;
}
.hp-blog-stack-info h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-blog-stack-info p {
    font-size: .82rem;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.55;
}
.hp-blog-stack-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    color: #999;
}
.hp-blog-stack-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
@media (max-width: 991px) {
    .hp-blog-stack-item > img {
        width: 90px;
        min-height: 75px;
    }
}

/* === Stats Bar === */
.hp-stats-bar {
    background: linear-gradient(135deg, #00ab6b 0%, #008f5a 100%);
    color: #fff;
    padding: 1.5rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    margin-bottom: 2.5rem;
}
.hp-stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.hp-stat {
    text-align: center;
}
.hp-stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
.hp-stat-label {
    font-size: .85rem;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: .5px;
}
@media (max-width: 575px) {
    .hp-stat-number { font-size: 1.5rem; }
    .hp-stats-row { gap: .5rem; }
}

/* === All Recipes Section === */
.hp-all-recipes {
    margin-bottom: 1rem;
}

/* === Alternating section backgrounds === */
.hp-section-alt {
    background: #fafafa;
    padding: 2rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* === Nav dropdown tweaks === */
.mediumnavigation .dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    min-width: 220px;
}
.mediumnavigation .dropdown-menu .dropdown-item {
    font-size: .85rem;
    padding: .35rem 1rem;
}
.mediumnavigation .dropdown-menu .dropdown-item:hover {
    background: #00ab6b;
    color: #fff;
}

/* === Pagination === */
.bottompagination {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.bottompagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.bottompagination .pagination a,
.bottompagination .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: all .2s;
}
.bottompagination .pagination a:hover {
    background: #00ab6b;
    border-color: #00ab6b;
    color: #fff;
    text-decoration: none;
}
.bottompagination .pagination span {
    background: #00ab6b;
    border-color: #00ab6b;
    color: #fff;
}
.bottompagination .pointerup {
    display: none;
}
