/* =============================================================================
   Agency Blog Styles (Archive & Single Post)
   Loaded on home.php and single.php
   ============================================================================= */

/* --------------------------------------------------------------------------
   Blog Archive Hero (home.php)
   -------------------------------------------------------------------------- */
.agency-blog-hero {
    text-align: center;
    margin-bottom: 4rem;
    /* mb-16 md:mb-24 */
}

@media (min-width: 48rem) {
    .agency-blog-hero {
        margin-bottom: 6rem;
    }
}

.agency-blog-hero__title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    /* text-5xl md:text-7xl */
    line-height: 1;
    margin-bottom: 1.5rem;
}

.agency-blog-hero__title-gradient {
    color: transparent;
    background-image: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
    -webkit-background-clip: text;
    background-clip: text;
}

.agency-blog-hero__desc {
    color: rgba(255, 255, 255, 0.60);
    font-size: 1.125rem;
    /* text-lg md:text-xl */
    max-width: 42rem;
    /* max-w-2xl */
    margin: 0 auto;
}

@media (min-width: 48rem) {
    .agency-blog-hero__desc {
        font-size: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   Category Filter
   -------------------------------------------------------------------------- */
.agency-blog-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    /* gap-3 md:gap-4 */
    margin-bottom: 4rem;
}

.agency-blog-filter__btn {
    padding: 0.625rem 1.5rem;
    /* px-6 py-2.5 */
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    /* text-xs */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
    color: rgba(255, 255, 255, 0.50);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: all var(--transition-base);
    text-decoration: none;
}

.agency-blog-filter__btn:hover {
    border-color: rgba(255, 255, 255, 0.30);
    color: #ffffff;
    text-decoration: none;
}

.agency-blog-filter__btn.is-active,
.agency-blog-filter__btn[aria-current="page"] {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Pulse Post Card (Reused for Archive loop)
   Matches `pulse-block.css` but namespaced for the main loop.
   -------------------------------------------------------------------------- */
.agency-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    /* gap-8 */
}

@media (min-width: 48rem) {
    .agency-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 64rem) {
    .agency-blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.agency-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    text-decoration: none !important;
    group: hover;
    /* simulated by descendant selectors */
}

.agency-post-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.agency-post-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.20);
    z-index: 10;
    transition: background-color var(--transition-slow);
}

.agency-post-card:hover .agency-post-card__overlay {
    background: transparent;
}

.agency-post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.7s ease-out;
}

.agency-post-card:hover .agency-post-card__img {
    transform: scale(1.05);
}

.agency-post-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.agency-post-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.agency-post-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.agency-post-card__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
}

.agency-post-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.agency-post-card:hover .agency-post-card__title {
    color: var(--color-accent);
}

.agency-post-card__excerpt {
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.875rem;
    /* text-sm */
    line-height: 1.625;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.agency-post-card__readmore {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    transition: color var(--transition-base);
    margin-top: auto;
}

.agency-post-card:hover .agency-post-card__readmore {
    color: var(--color-accent);
}

.agency-post-card__icon {
    width: 1rem;
    height: 1rem;
    transform: translateX(0);
    transition: transform var(--transition-base);
}

.agency-post-card:hover .agency-post-card__icon {
    transform: translateX(0.25rem);
}

/* --------------------------------------------------------------------------
   Single Post Headers & Layout
   -------------------------------------------------------------------------- */

/* Glow Blob specifically for the single post header */
.agency-single__glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 40vw;
    background-color: rgba(255, 78, 0, 0.10);
    filter: blur(150px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Back Link */
.agency-single__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.50);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: color var(--transition-base);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

.agency-single__back:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.agency-single__back svg {
    width: 1rem;
    height: 1rem;
}

/* Header Meta Row */
.agency-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.40);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 48rem) {
    .agency-single__meta {
        gap: 1.5rem;
    }
}

.agency-single__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agency-single__meta-item svg {
    width: 0.75rem;
    height: 0.75rem;
}

.agency-single__meta-item--accent {
    color: var(--color-accent);
    background-color: rgba(255, 78, 0, 0.10);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 78, 0, 0.20);
}

/* Title (H1) */
.agency-single__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    /* text-4xl md:text-5xl lg:text-6xl */
    line-height: 1.1;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

/* Author Block */
.agency-single__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.agency-single__author-img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    object-fit: cover;
}

.agency-single__author-name {
    font-weight: 700;
    font-size: 0.875rem;
}

.agency-single__author-role {
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Featured Image Hero (widescreen) */
.agency-single__featured {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
    margin-bottom: 4rem;
    /* mb-16 md:mb-24 */
    z-index: 10;
}

@media (min-width: 48rem) {
    .agency-single__featured {
        aspect-ratio: 21 / 9;
        margin-bottom: 6rem;
    }
}

.agency-single__featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agency-single__featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #050505, transparent, transparent);
    opacity: 0.60;
    z-index: 10;
}

/* Content Container constraints */
.agency-single__content-wrap {
    max-width: 48rem;
    /* max-w-3xl */
    margin: 0 auto;
    position: relative;
    z-index: 10;
    /* Uses the Gutenberg typography from style.css */
}

/* --------------------------------------------------------------------------
   Post Share & Up Next Footer
   -------------------------------------------------------------------------- */
.agency-single-share {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 48rem) {
    .agency-single-share {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.agency-single-share__group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agency-single-share__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.40);
}

.agency-single-share__btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: transparent;
    transition: all var(--transition-base);
    text-decoration: none;
}

.agency-single-share__btn svg {
    width: 1rem;
    height: 1rem;
}

.agency-single-share__btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* Up Next Card */
.agency-up-next {
    margin-top: 6rem;
    position: relative;
    z-index: 10;
}

.agency-up-next__card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: block;
    transition: border-color var(--transition-base);
}

@media (min-width: 48rem) {
    .agency-up-next__card {
        padding: 3rem;
    }
}

.agency-up-next__card:hover {
    border-color: rgba(255, 255, 255, 0.30);
}

/* Hover glow for Up Next card */
.agency-up-next__glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(255, 78, 0, 0.05);
    /* very subtle */
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    transition: background-color 0.5s ease;
}

.agency-up-next__card:hover .agency-up-next__glow {
    background: rgba(255, 78, 0, 0.10);
}

.agency-up-next__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.40);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.agency-up-next__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.agency-up-next__card:hover .agency-up-next__title {
    color: var(--color-accent);
}

.agency-up-next__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #000000;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-base);
}

.agency-up-next__card:hover .agency-up-next__btn {
    background: var(--color-accent);
    color: #ffffff;
}

.agency-up-next__btn svg {
    width: 1rem;
    height: 1rem;
}