/* ========================================================
   BLOG & EVENTS HUB
   fasterpen/assets/css/blog.css
   ======================================================== */

.fp-blog-page,
.fp-blog-single,
.fp-event-single {
    --fp-blue: #0651ed;
    --fp-dark: #19274e;
    --fp-cyan: #00f0ff;
    --fp-bg: #f8fafc;
}

.fp-blog-hero {
    background: #0f172a;
}

.fp-blog-liquid {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0f172a;
    z-index: 0;
}

.fp-blog-blob {
    position: absolute;
    filter: blur(42px);
    opacity: 0.72;
    animation: fp-blog-morph 12s ease-in-out infinite alternate;
    will-change: border-radius, transform;
}

.fp-blog-blob-one {
    top: -24%;
    left: -12%;
    width: 72%;
    height: 72%;
    background: var(--fp-blue);
}

.fp-blog-blob-two {
    right: -14%;
    bottom: -22%;
    width: 64%;
    height: 82%;
    background: var(--fp-cyan);
    animation-delay: -4s;
    animation-direction: alternate-reverse;
}

.fp-blog-ether {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(60px);
}

@keyframes fp-blog-morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
        transform: rotate(0deg) scale(1);
    }
    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: rotate(15deg) scale(1.05);
    }
    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        transform: rotate(-5deg) scale(0.96);
    }
    100% {
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
        transform: rotate(0deg) scale(1);
    }
}

.fp-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--fp-cyan);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.45);
    animation: fp-pulse-dot 1.8s ease-out infinite;
}

@keyframes fp-pulse-dot {
    70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.fp-hero-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.fp-hero-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.fp-hero-media img {
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-hero-card:hover .fp-hero-media img {
    transform: scale(1.05);
}

.fp-media-placeholder,
.fp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(6, 81, 237, 0.14), rgba(0, 240, 255, 0.1)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 28%),
        #eef4ff;
    color: var(--fp-dark);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.fp-hero-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fp-arrow-circle,
.fp-agenda-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-arrow-circle {
    width: 3rem;
    height: 3rem;
    background: var(--fp-cyan);
    color: var(--fp-dark);
}

.fp-arrow-circle svg,
.fp-agenda-arrow svg,
.fp-back-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.fp-hero-card:hover .fp-arrow-circle {
    transform: translateX(0.35rem);
    background: #ffffff;
}

.fp-tab-wrapper {
    position: sticky;
    top: 104px;
    z-index: 20;
    display: flex;
    justify-content: center;
    margin-bottom: 2.25rem;
    padding: 0 1rem;
}

.fp-glass-tabs {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 460px;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 28px rgba(25, 39, 78, 0.08);
    backdrop-filter: blur(24px);
}

.fp-tab-slider {
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0.35rem;
    width: calc(50% - 0.35rem);
    border-radius: 999px;
    background: var(--fp-blue);
    box-shadow: 0 4px 14px rgba(6, 81, 237, 0.18);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-glass-tabs.state-events .fp-tab-slider {
    transform: translateX(100%);
}

.fp-tab-btn {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 2.75rem;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.fp-tab-btn:active {
    transform: scale(0.98);
}

.fp-tab-btn.active {
    color: #ffffff;
}

.fp-router {
    position: relative;
    min-height: 40rem;
    overflow: hidden;
    transition: height 0.5s ease;
}

.fp-view {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-28px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.5s;
    padding-bottom: 4rem;
}

#fp-view-events {
    transform: translateX(28px);
}

.fp-view.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.fp-article-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 3rem 2rem;
}

.fp-article-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.fp-article-media,
.fp-related-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 1rem;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
}

.fp-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-article-card:hover .fp-article-img,
.fp-related-card:hover img {
    transform: scale(1.06);
}

.fp-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--fp-blue);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fp-card-placeholder svg {
    width: 3.5rem;
    height: 3.5rem;
    color: #b8c4d6;
}

.fp-article-title {
    display: inline;
    background-image: linear-gradient(var(--fp-blue), var(--fp-blue));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.fp-article-card:hover .fp-article-title {
    color: var(--fp-blue);
    background-size: 100% 2px;
}

.fp-agenda-list {
    max-width: 64rem;
    margin: 0 auto;
}

.fp-agenda-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #edf2f7;
    border-radius: 1rem;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.025);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-agenda-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.9rem;
    background: #edf4ff;
    border: 1px solid #e2e8f0;
}

.fp-agenda-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-agenda-date {
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

.fp-agenda-date span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--fp-blue);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fp-agenda-date strong {
    display: block;
    color: var(--fp-dark);
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 0.95;
}

.fp-agenda-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.fp-tag-primary,
.fp-tag-secondary {
    padding: 0.35rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fp-tag-primary {
    color: var(--fp-blue);
    background: #eff6ff;
}

.fp-tag-secondary {
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.fp-agenda-copy h2 {
    margin: 0 0 0.5rem;
    color: #111827;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.fp-agenda-copy p {
    margin: 0;
    max-width: 42rem;
    color: #64748b;
    line-height: 1.7;
}

.fp-agenda-arrow {
    width: 2.75rem;
    height: 2.75rem;
    justify-self: end;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
}

.fp-empty-state {
    padding: 3rem 1.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #ffffff;
    color: #64748b;
    text-align: center;
    font-weight: 700;
}

/* ---- Single blog and event views ---- */
.fp-single-hero {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.fp-single-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 240, 255, 0.22), transparent 32%),
        radial-gradient(circle at 84% 30%, rgba(6, 81, 237, 0.36), transparent 36%),
        #0f172a;
}

.fp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.fp-back-link:hover {
    color: #ffffff;
    transform: translateX(-0.25rem);
}

.fp-back-link-dark {
    color: #64748b;
}

.fp-back-link-dark:hover {
    color: var(--fp-blue);
}

.fp-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
    color: var(--fp-cyan);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fp-single-meta span:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 0.25rem;
    height: 0.25rem;
    margin-left: 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    vertical-align: middle;
}

.fp-single-featured {
    height: clamp(18rem, 45vw, 34rem);
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.fp-single-featured img {
    border-radius: 1.25rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.fp-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.fp-author-panel,
.fp-event-cta {
    position: sticky;
    top: 120px;
    padding: 1.4rem;
    border-top: 3px solid var(--fp-blue);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.fp-author-panel span,
.fp-related-heading span,
.fp-event-kicker,
.fp-event-cta span {
    display: block;
    color: var(--fp-blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fp-author-panel strong {
    display: block;
    margin-top: 0.45rem;
    color: var(--fp-dark);
    font-size: 1.1rem;
}

.fp-author-panel p,
.fp-event-cta p {
    margin: 0.75rem 0 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
}

.fp-single-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.85;
}

.fp-single-content > * {
    margin-bottom: 1.35rem;
}

.fp-single-content h2,
.fp-single-content h3,
.fp-single-content h4 {
    margin-top: 2.25rem;
    color: var(--fp-dark);
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.2;
}

.fp-single-content h2 { font-size: clamp(2rem, 4vw, 3rem); }
.fp-single-content h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.fp-single-content a {
    color: var(--fp-blue);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

.fp-single-content ul,
.fp-single-content ol {
    padding-left: 1.4rem;
}

.fp-single-content blockquote {
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--fp-blue);
    background: #ffffff;
    color: var(--fp-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.45;
}

.fp-related-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid #dbe4f0;
    padding-top: 2rem;
}

.fp-related-heading h2 {
    margin: 0.35rem 0 0;
    color: var(--fp-dark);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
}

.fp-related-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

.fp-related-card {
    color: inherit;
    text-decoration: none;
}

.fp-related-card span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fp-related-card h3 {
    margin-top: 0.5rem;
    color: var(--fp-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.fp-related-card:hover h3 {
    color: var(--fp-blue);
}

.fp-event-detail-hero {
    background:
        linear-gradient(135deg, rgba(6, 81, 237, 0.08), rgba(0, 240, 255, 0.05)),
        #ffffff;
}

.fp-event-featured-wrap {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.fp-event-featured-media {
    aspect-ratio: 16 / 8.8;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    background: #eaf1fb;
}

.fp-event-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-event-kicker {
    margin-bottom: 1rem;
}

.fp-event-facts {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    max-width: 42rem;
}

.fp-event-facts div {
    padding-top: 1rem;
    border-top: 1px solid #dbe4f0;
}

.fp-event-facts span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fp-event-facts strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--fp-dark);
    font-size: 1.2rem;
}

.fp-event-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3rem;
}

.fp-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    background: var(--fp-blue);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.fp-primary-link:hover {
    background: var(--fp-dark);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .fp-tab-wrapper {
        top: 110px;
        margin-bottom: 3rem;
    }

    .fp-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem 2.25rem;
    }

    .fp-agenda-row {
        grid-template-columns: 8rem 14rem minmax(0, 1fr) 4rem;
        align-items: center;
        gap: 3rem;
        margin-bottom: 0;
        padding: 2.5rem 0;
        border-width: 0 0 1px;
        border-color: #e2e8f0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .fp-agenda-row:first-child {
        border-top: 1px solid #e2e8f0;
    }

    .fp-agenda-date {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .fp-agenda-date span {
        color: #94a3b8;
    }

    .fp-agenda-date strong {
        font-size: 4rem;
    }

    .fp-agenda-media {
        aspect-ratio: 4 / 3;
    }

    .fp-agenda-row.no-media {
        grid-template-columns: 8rem minmax(0, 1fr) 4rem;
    }

    .fp-agenda-row:hover {
        padding-left: 2rem;
        padding-right: 2rem;
        border-color: transparent;
        border-radius: 1rem;
        background: #ffffff;
        box-shadow: 0 18px 44px rgba(6, 81, 237, 0.055);
        transform: scale(1.01);
    }

    .fp-agenda-row:hover .fp-agenda-copy h2,
    .fp-agenda-row:hover .fp-agenda-date strong {
        color: var(--fp-blue);
    }

    .fp-agenda-row:hover .fp-agenda-thumb {
        transform: scale(1.06);
    }

    .fp-agenda-row:hover .fp-agenda-arrow {
        background: var(--fp-blue);
        border-color: var(--fp-blue);
        color: #ffffff;
        transform: translateX(0.6rem);
    }

    .fp-single-layout {
        grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
        align-items: start;
    }

    .fp-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fp-event-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-event-body {
        grid-template-columns: minmax(0, 1fr) 20rem;
        align-items: start;
    }
}

@media (min-width: 1180px) {
    .fp-article-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fp-tab-wrapper {
        top: 96px;
    }

    .fp-glass-tabs {
        max-width: none;
    }

    .fp-single-featured {
        margin-top: -1.5rem;
        height: 16rem;
    }

    .fp-event-featured-wrap {
        margin-top: -1rem;
    }

    .fp-single-meta span:not(:last-child)::after {
        display: none;
    }
}
