/**
 * Front Page Styles - Dailydishy Theme
 * Homepage-specific styles (hero, category pills, etc.)
 */

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dh-green-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.45;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(32, 80, 40, 0.85) 0%,
        rgba(32, 80, 40, 0.55) 55%,
        rgba(32, 80, 40, 0.2) 100%
    );
}

.hero-blob {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 205, 102, 0.35) 0%, transparent 70%);
    right: -80px;
    bottom: -80px;
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--dh-container-width);
    margin: 0 auto;
    padding: 80px 40px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--dh-font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-eyebrow span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dh-accent);
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
    font-family: var(--dh-font-serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: var(--dh-white);
    line-height: 1.18;
    letter-spacing: -0.5px;
    margin: 0 0 20px;
}

.hero-title em {
    font-style: italic;
    color: var(--dh-accent);
}

.hero-desc {
    font-family: var(--dh-font-ui);
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 32px;
    max-width: 460px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dh-green);
    color: var(--dh-white);
    font-family: var(--dh-font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: var(--dh-radius-sm);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background var(--dh-ease), transform var(--dh-ease), box-shadow var(--dh-ease);
    box-shadow: 0 4px 16px rgba(32, 80, 40, 0.4);
}

.btn-primary:hover {
    background: var(--dh-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(32, 80, 40, 0.45);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    transition: transform var(--dh-ease);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--dh-font-ui);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 13px 22px;
    border-radius: var(--dh-radius-sm);
    text-decoration: none;
    transition: background var(--dh-ease), border-color var(--dh-ease);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Trust badges */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.hero-trust-text {
    font-family: var(--dh-font-ui);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
}

.hero-trust-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hero-trust-cats a {
    font-family: var(--dh-font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background var(--dh-ease), color var(--dh-ease);
}

.hero-trust-cats a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--dh-white);
}

/* Featured card */
.hero-featured-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-featured-card {
    background: var(--dh-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--dh-shadow-lg);
    width: 100%;
    max-width: 400px;
    text-decoration: none;
    display: block;
    transition: transform var(--dh-ease), box-shadow var(--dh-ease);
}

.hero-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-featured-card-label {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--dh-green);
    color: var(--dh-white);
    font-family: var(--dh-font-ui);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.hero-fc-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--dh-green-light);
}

.hero-fc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-featured-card:hover .hero-fc-img img {
    transform: scale(1.04);
}

.hero-fc-body {
    padding: 20px 22px 22px;
}

.hero-fc-cat {
    font-family: var(--dh-font-ui);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dh-green);
    margin-bottom: 6px;
    display: block;
}

.hero-fc-title {
    font-family: var(--dh-font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dh-text);
    line-height: 1.4;
    margin: 0 0 12px;
}

.hero-fc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--dh-font-ui);
    font-size: 0.73rem;
    color: var(--dh-text-muted);
}

.hero-fc-meta svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

.hero-fc-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--dh-border);
}

/* Category Pills Bar */
.cat-pills-bar {
    background: var(--dh-bg);
    border-bottom: 1px solid var(--dh-border);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cat-pills-bar::-webkit-scrollbar {
    display: none;
}

.cat-pills-inner {
    max-width: var(--dh-container-width);
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--dh-font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--dh-text-muted);
    background: var(--dh-bg-soft);
    border: 1px solid var(--dh-border);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background var(--dh-ease), color var(--dh-ease), border-color var(--dh-ease), transform var(--dh-ease);
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--dh-green-light);
    color: var(--dh-green);
    border-color: var(--dh-green-mid);
    transform: translateY(-1px);
}

.cat-pill.active {
    font-weight: 600;
}

/* Posts Section */
.home-posts-wrap {
    max-width: var(--dh-container-width);
    margin: 0 auto;
    padding: 48px 40px 64px;
    display: grid;
    grid-template-columns: 1fr var(--dh-sidebar-width);
    gap: 48px;
    align-items: start;
}

.home-posts-main {
    min-width: 0;
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.home-section-title {
    font-family: var(--dh-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dh-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--dh-green);
    border-radius: 2px;
}

.home-section-link {
    font-family: var(--dh-font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dh-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: gap var(--dh-ease), color var(--dh-ease);
}

.home-section-link svg {
    width: 13px;
    height: 13px;
    transition: transform var(--dh-ease);
}

.home-section-link:hover {
    gap: 8px;
    color: var(--dh-green-dark);
}

.home-section-link:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 64px 24px;
    }

    .hero-featured-wrap {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .cat-pills-inner {
        padding: 12px 20px;
    }

    .home-posts-wrap {
        grid-template-columns: 1fr;
        padding: 32px 24px 48px;
        gap: 40px;
    }

    .home-sidebar {
        position: static;
    }
}

@media (max-width: 680px) {
    .hero-inner {
        padding: 48px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .home-posts-wrap {
        padding: 24px 16px 48px;
    }

    .cat-pills-inner {
        padding: 10px 16px;
    }
}
