/* ============================================================
   PAGE SECTIONS — SHARED CSS
   Used by all dynamic section templates in:
   resources/views/frontend/pages/sections/
   ============================================================ */

/* ── HERO SECTION ── */
.ps-hero {
    position: relative;
    background: linear-gradient(135deg, #eef5ff 0%, #f0fdf8 50%, #e8f4fd 100%);
    padding: 70px 0 150px;
    overflow: hidden;
    text-align: center;
    color: #1e293b;
}

/* "?"? Animated Wave Background "?"? */
.hero-animated-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 1;
}
.hero-animated-waves .waves {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}
/* Animation */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }
@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* Decorative animated blobs */
.ps-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.18;
    animation: psBlobDrift 12s ease-in-out infinite alternate;
    pointer-events: none;
}
.ps-blob-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -120px;
    left: -100px;
    animation-delay: 0s;
}
.ps-blob-2 {
    width: 300px;
    height: 300px;
    background: #16b67c;
    bottom: -80px;
    right: -60px;
    animation-delay: -5s;
}
@keyframes psBlobDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.12); }
}

/* Dot grid overlay */
.ps-hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Inner content wrapper — constrained width, centered */
.ps-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ── BREADCRUMB ── */
.ps-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
}
.ps-bc-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}
.ps-bc-link:hover { color: #2563eb; }
.ps-bc-link svg { flex-shrink: 0; }
.ps-bc-sep {
    color: #94a3b8;
    font-size: 0.75rem;
}
.ps-bc-curr {
    color: #1e293b;
    font-weight: 700;
}

/* ── BADGE ── */
.ps-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(6px);
    color: #2563eb;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.ps-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16b67c;
    animation: psBadgePulse 2s infinite;
    flex-shrink: 0;
}
@keyframes psBadgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── TITLE ── */
.ps-hero-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.22;
    letter-spacing: -0.5px;
    margin: 0;
}

/* ── DESCRIPTION ── */
.ps-hero-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #475569;
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto;
}

/* ── META ROW (Author / Date / Read time) ── */
.ps-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding-top: 4px;
    border-top: 1px solid rgba(0,0,0,0.1);
    width: 100%;
}
.ps-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}
.ps-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b5edd, #16b67c);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ps-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}
.ps-meta-item svg { flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .ps-hero {
        padding: 50px 0 45px;
    }
    .ps-hero-inner {
        gap: 14px;
        padding: 0 4px;
    }
    .ps-hero-title {
        font-size: 1.75rem;
    }
    .ps-hero-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .ps-hero {
        padding: 38px 0 34px;
    }
    .ps-hero-title {
        font-size: 1.5rem;
        letter-spacing: -0.2px;
    }
    .ps-hero-meta {
        gap: 10px;
    }
    .ps-blob-1,
    .ps-blob-2 {
        width: 200px;
        height: 200px;
        filter: blur(40px);
    }
}
