/* ============================================
   WORK / CASE STUDY PAGE — PREMIUM REDESIGN
   ============================================ */

/* ---- Section Header ---- */
.work-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.work-section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 12px;
}

.work-section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ---- Filter ---- */
.work-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.work-filter .filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all 0.3s ease;
}

.work-filter .filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.work-filter .filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-pink));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

/* ---- Grid ---- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ---- Card ---- */
.work-card {
    background: linear-gradient(135deg, rgba(18, 18, 30, 0.7), rgba(12, 12, 22, 0.7));
    border: 1px solid var(--border-glass);
    border-left: 3px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.work-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(108, 92, 231, 0.08);
}

.work-card:hover::before {
    opacity: 1;
}

/* Category accent colors */
.work-card[data-category="semantic-seo"] {
    border-left-color: #6c5ce7;
}

.work-card[data-category="local-seo"] {
    border-left-color: #00b894;
}

.work-card[data-category="ecommerce-seo"] {
    border-left-color: #e056a0;
}

.work-card[data-category="saas-seo"] {
    border-left-color: #0984e3;
}

/* Hover glow per category */
.work-card[data-category="semantic-seo"]:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(108, 92, 231, 0.12);
}

.work-card[data-category="local-seo"]:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 184, 148, 0.12);
}

.work-card[data-category="ecommerce-seo"]:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(224, 86, 160, 0.12);
}

.work-card[data-category="saas-seo"]:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(9, 132, 227, 0.12);
}

/* ---- Featured Card ---- */
.work-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 340px 1fr;
    border-left-width: 4px;
}

.work-thumbnail {
    width: 100%;
    height: 100%;
    min-height: 360px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(224, 86, 160, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.work-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(10, 10, 15, 0.4));
}

.work-emoji {
    font-size: 5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(108, 92, 231, 0.3));
}

.work-thumbnail-label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-pink));
    padding: 5px 14px;
    border-radius: 50px;
    z-index: 1;
}

/* ---- Card Body ---- */
.work-body {
    padding: 32px;
}

/* ---- Meta Row (tags + timeline) ---- */
.work-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.work-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.work-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid;
}

/* Category-colored tags */
.work-tag.tag-semantic {
    background: rgba(108, 92, 231, 0.1);
    color: #a29bfe;
    border-color: rgba(108, 92, 231, 0.2);
}

.work-tag.tag-local {
    background: rgba(0, 184, 148, 0.1);
    color: #55efc4;
    border-color: rgba(0, 184, 148, 0.2);
}

.work-tag.tag-ecommerce {
    background: rgba(224, 86, 160, 0.1);
    color: #fd79a8;
    border-color: rgba(224, 86, 160, 0.2);
}

.work-tag.tag-saas {
    background: rgba(9, 132, 227, 0.1);
    color: #74b9ff;
    border-color: rgba(9, 132, 227, 0.2);
}

.work-timeline {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---- Typography ---- */
.work-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.35;
    transition: color 0.2s ease;
}

.work-card:hover h3 {
    color: #fff;
}

.work-card.featured h3 {
    font-size: 1.45rem;
}

.work-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ---- Results Row ---- */
.work-results {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.work-result {
    text-align: left;
}

.work-result .number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-light), #e056a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Category-colored numbers */
.work-card[data-category="local-seo"] .work-result .number {
    background: linear-gradient(135deg, #55efc4, #00b894);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-card[data-category="ecommerce-seo"] .work-result .number {
    background: linear-gradient(135deg, #fd79a8, #e056a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-card[data-category="saas-seo"] .work-result .number {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-result .label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- Filter Animation ---- */
@keyframes workFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* ---- CTA Section ---- */
.work-cta-section {
    padding: 80px 0 100px;
}

.work-cta-card {
    position: relative;
    text-align: center;
    padding: 64px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(18, 18, 30, 0.8), rgba(12, 12, 22, 0.8));
    border: 1px solid rgba(108, 92, 231, 0.15);
    overflow: hidden;
}

.work-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.5), rgba(224, 86, 160, 0.5), transparent);
}

.work-cta-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.15), transparent 70%);
    pointer-events: none;
}

.work-cta-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
    position: relative;
}

.work-cta-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
}

.work-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card.featured {
        grid-template-columns: 1fr;
    }

    .work-thumbnail {
        min-height: 220px;
    }
}

@media (max-width: 600px) {
    .work-body {
        padding: 24px;
    }

    .work-meta {
        flex-direction: column;
        gap: 10px;
    }

    .work-results {
        flex-wrap: wrap;
        gap: 16px;
    }

    .work-cta-card {
        padding: 48px 24px;
    }

    .work-filter {
        gap: 8px;
    }

    .work-filter .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}