/* BLOG MODERN REDESIGN v1 */

:root {
    --nyx-accent: #ff2e63;
    --nyx-dark: #0a0a0f;
    --nyx-glass: rgba(20, 20, 30, 0.7);
    --nyx-border: rgba(255, 46, 99, 0.2);
}

/* === HERO PRESENTER SECTION === */
.hero-presenter {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a0a1a 0%, #000 100%);
    overflow: hidden;
    padding-top: 80px;
    /* Header override space */
    border-bottom: 1px solid var(--nyx-border);
}

.hero-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.7), #0a0a0f),
        url('../assets/wallpaper_neon.webp');
    /* Fallback subtle texture */
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
    animation: fadeInName 1.2s ease-out;
}

.presenter-img-container {
    width: clamp(180px, 24vw, 270px);
    aspect-ratio: 1 / 1;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 50%;
    padding: 8px;
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 138, 176, 0.24) 35%, rgba(96, 39, 154, 0.35) 100%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 10px 35px rgba(255, 46, 99, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.presenter-img-container::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.18) 0%, rgba(19, 10, 28, 0.86) 68%);
    z-index: 1;
}

.presenter-img-container::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 32px rgba(255, 46, 99, 0.35);
    pointer-events: none;
    z-index: 4;
}

.presenter-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 28%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 18px 40px rgba(255, 46, 99, 0.24),
        inset 0 1px 1px rgba(255, 255, 255, 0.26);
    filter: saturate(1.08) contrast(1.06);
    animation: float 6s ease-in-out infinite;
}

.presenter-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    background: radial-gradient(circle,
            rgba(255, 46, 99, 0.25) 0%,
            rgba(123, 76, 255, 0.16) 34%,
            rgba(8, 6, 18, 0.02) 72%,
            transparent 100%);
    filter: blur(8px);
    z-index: -2;
    animation: pulseGlow 5s ease-in-out infinite alternate;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-shadow: 0 0 15px var(--nyx-accent);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-scroll-btn {
    margin-top: 40px;
    color: var(--nyx-accent);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
}

/* === GRID MODERNIZATION === */
.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.article-card {
    background: var(--nyx-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--nyx-accent);
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-tag {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.article-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.3;
}

.article-text {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.read-more-btn {
    align-self: flex-start;
    font-size: 0.85rem;
    background: var(--nyx-accent);
    /* Use dynamic accent color (Pink/Red) */
    color: #fff !important;
    /* Force white text */
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 25px;
    /* Ensure clickability */
    border-radius: 30px;
    transition: all 0.3s ease;
}

.article-card:hover .read-more-btn {
    letter-spacing: 1.5px;
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .presenter-img-container {
        width: 180px;
        padding: 6px;
    }

    .container-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        padding: 30px 20px;
        gap: 25px;
    }

    .article-img {
        height: 180px;
    }
}

/* === ANIMATIONS === */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes fadeInName {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}
