/* Advanced Blog Page Styles - V2 Refined */

.blog-page {
    position: relative;
    overflow: hidden;
    background-color: var(--clr-bg);
    padding-top: 7rem;
}

/* Aurora Background (Same as Services for Consistency) */
.blog-page::before,
.blog-page::after {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.blog-page::before {
    background: var(--clr-accent);
    top: -200px;
    right: -100px;
    animation: aurora-float 20s infinite alternate ease-in-out;
}

.blog-page::after {
    background: #4f9ef1;
    bottom: 100px;
    left: -200px;
    animation: aurora-float 25s infinite alternate-reverse ease-in-out;
}

/* Internal Hero — mirrors services internal-hero */
.internal-hero {
    text-align: left;
    margin-bottom: 3rem;
    max-width: 900px;
}

.hero-tag {
    font-family: var(--ff-code);
    font-size: 0.9rem;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
    display: block;
}

.hero-title {
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: #fff;
}

.hero-lead {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: var(--clr-text-muted);
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 2rem;
}

/* Filter Toolbar Refinement */
.filter-toolbar {
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.filter-toolbar-label {
    font-size: 0.7rem;
    font-weight: 800;
}

.filter-tool-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s var(--ease-out);
    /* reset button defaults */
    font-family: var(--ff-code);
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tool-item:hover {
    background: rgba(241, 141, 79, 0.08);
    border-color: rgba(241, 141, 79, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* Active: accent ring + glow — icon colors stay completely untouched */
.filter-tool-item.active {
    background: rgba(241, 141, 79, 0.1);
    border-color: var(--clr-accent);
    color: #fff;
    box-shadow: 0 0 0 1px var(--clr-accent), 0 4px 16px rgba(241, 141, 79, 0.2);
    transform: translateY(-2px);
}

/* Modern Blog Cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.2, 0, 0.2, 1);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 10px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(241, 141, 79, 0.3);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 40px rgba(241, 141, 79, 0.05);
}

.blog-card-header {
    margin-bottom: 1.5rem;
    font-family: var(--ff-code);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.post-number {
    color: var(--clr-accent);
    font-weight: 800;
}

.blog-card h3 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    font-family: var(--ff-body); /* More readable for titles */
    font-weight: 700;
}

.blog-card h3 a:hover {
    color: var(--clr-accent);
}

.blog-card-lead {
    font-size: 1rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.blog-card-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tool-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(--ff-code);
    transition: all 0.2s ease;
}

.blog-card:hover .tool-chip {
    border-color: rgba(241, 141, 79, 0.2);
}

.blog-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    font-family: var(--ff-code);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-accent);
}

.blog-card::after {
    content: "→";
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    font-size: 1.5rem;
    color: var(--clr-accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.blog-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    .blog-card {
        padding: 2rem;
    }
}
