/* ==========================================================================
   YNEP Home - Frontend Styles
   Colors: #e00a0a (accent), #f4f4f4 (bg), #000 (text), #686868 (secondary)
   ========================================================================== */

:root {
    --ynep-accent: #8B3FB5;
    --ynep-accent-dark: #6A2D8E;
    --ynep-bg: #f4f4f4;
    --ynep-bg-white: #ffffff;
    --ynep-text: #000000;
    --ynep-text-secondary: #686868;
    --ynep-text-light: #999999;
    --ynep-border: #e0e0e0;
    --ynep-radius: 12px;
    --ynep-radius-sm: 8px;
    --ynep-container: 1200px;
    --ynep-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.ynep-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #2A1040;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    font-family: var(--ynep-font);
}

.ynep-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.ynep-hero:not(.ynep-hero--with-bg) .ynep-hero__overlay {
    background: linear-gradient(
        135deg,
        #2A1040 0%,
        #4A1A6B 50%,
        #2A1040 100%
    );
}

.ynep-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    max-width: 800px;
}

.ynep-hero__title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.ynep-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ynep-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--ynep-accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--ynep-accent);
}

.ynep-hero__cta:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.ynep-hero__cta svg {
    transition: transform 0.3s ease;
}

.ynep-hero__cta:hover svg {
    transform: translate(3px, -3px);
}

/* Scroll indicator */
.ynep-hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.ynep-hero__scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.ynep-hero__scroll-indicator span::after {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: ynep-scroll-bounce 2s infinite;
}

@keyframes ynep-scroll-bounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.3; }
}

/* ==========================================================================
   LATEST POSTS SECTION
   ========================================================================== */

.ynep-posts {
    padding: 80px 0;
    background: var(--ynep-bg);
    font-family: var(--ynep-font);
}

.ynep-posts__container {
    max-width: var(--ynep-container);
    margin: 0 auto;
    padding: 0 24px;
}

.ynep-posts__header {
    text-align: center;
    margin-bottom: 56px;
}

.ynep-posts__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--ynep-text);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.ynep-posts__subtitle {
    font-size: 1.1rem;
    color: var(--ynep-text-secondary);
    margin: 0;
}

/* Posts grid */
.ynep-posts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Post card */
.ynep-post-card {
    background: var(--ynep-bg-white);
    border-radius: var(--ynep-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ynep-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.ynep-post-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ynep-post-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

.ynep-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ynep-post-card:hover .ynep-post-card__image {
    transform: scale(1.05);
}

.ynep-post-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ynep-bg);
}

.ynep-post-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ynep-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ynep-post-card__body {
    padding: 24px;
}

.ynep-post-card__date {
    display: block;
    font-size: 0.8rem;
    color: var(--ynep-text-light);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.ynep-post-card__heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ynep-text);
    margin: 0 0 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ynep-post-card__excerpt {
    font-size: 0.95rem;
    color: var(--ynep-text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ynep-post-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ynep-accent);
    transition: gap 0.3s ease;
}

.ynep-post-card:hover .ynep-post-card__read-more {
    gap: 10px;
}

/* Featured first card */
.ynep-post-card--featured .ynep-post-card__heading {
    font-size: 1.4rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.ynep-footer {
    font-family: var(--ynep-font);
    background: #1a1a1a;
    color: #ffffff;
}

.ynep-footer__container {
    max-width: var(--ynep-container);
    margin: 0 auto;
    padding: 0 24px;
}

.ynep-footer__top {
    padding: 64px 0 48px;
}

.ynep-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.ynep-footer__brand {
    margin-bottom: 16px;
}

.ynep-footer__logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ynep-accent);
    letter-spacing: 0.05em;
}

.ynep-footer__about {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 360px;
}

.ynep-footer__social {
    display: flex;
    gap: 12px;
}

.ynep-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.ynep-footer__social-link:hover {
    background: var(--ynep-accent);
    transform: translateY(-2px);
}

.ynep-footer__heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 20px;
}

.ynep-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ynep-footer__links li {
    margin-bottom: 12px;
}

.ynep-footer__links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ynep-footer__links a:hover {
    color: var(--ynep-accent);
}

/* Footer bottom */
.ynep-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.ynep-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ynep-footer__copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE - TABLET (min-width: 640px)
   ========================================================================== */

@media (min-width: 640px) {
    .ynep-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ynep-post-card--featured {
        grid-column: 1 / -1;
    }

    .ynep-post-card--featured .ynep-post-card__link {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ynep-post-card--featured .ynep-post-card__image-wrap {
        aspect-ratio: auto;
        min-height: 280px;
    }

    .ynep-post-card--featured .ynep-post-card__body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 32px;
    }

    .ynep-post-card--featured .ynep-post-card__heading {
        font-size: 1.6rem;
    }

    .ynep-post-card--featured .ynep-post-card__excerpt {
        -webkit-line-clamp: 4;
    }

    .ynep-footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ==========================================================================
   RESPONSIVE - DESKTOP (min-width: 1024px)
   ========================================================================== */

@media (min-width: 1024px) {
    .ynep-posts {
        padding: 100px 0;
    }

    .ynep-posts__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ynep-post-card--featured {
        grid-column: 1 / -1;
    }

    .ynep-post-card--featured .ynep-post-card__link {
        grid-template-columns: 3fr 2fr;
    }

    .ynep-post-card--featured .ynep-post-card__image-wrap {
        min-height: 360px;
    }

    .ynep-post-card--featured .ynep-post-card__body {
        padding: 48px;
    }

    .ynep-post-card--featured .ynep-post-card__heading {
        font-size: 2rem;
    }

    .ynep-footer__top {
        padding: 80px 0 60px;
    }

    .ynep-footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 60px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.ynep-post-card {
    opacity: 0;
    transform: translateY(20px);
}

.ynep-post-card.ynep-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ynep-posts__header {
    opacity: 0;
    transform: translateY(20px);
}

.ynep-posts__header.ynep-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
