/* ===== Work Page Styles ===== */

/* Work Hero */
.work-hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 40px;
    overflow: hidden;
    text-align: center;
}

.work-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.work-hero .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.work-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

/* Filters */
.work-filters {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.filter-btn {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* Work Grid */
.work-section {
    padding-top: 40px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.work-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.work-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.work-card-media {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.work-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
}

.work-media-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    opacity: 0.3;
}

.placeholder-social {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(116, 185, 255, 0.15));
}

.placeholder-social::before {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
}

.placeholder-campaign {
    background: linear-gradient(135deg, rgba(0, 210, 211, 0.3), rgba(108, 92, 231, 0.15));
}

.placeholder-campaign::before {
    background-image:
        linear-gradient(45deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%);
    background-size: 24px 24px;
}

.placeholder-branding {
    background: linear-gradient(135deg, rgba(255, 107, 129, 0.3), rgba(108, 92, 231, 0.15));
}

.placeholder-branding::before {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 24px 24px;
}

.placeholder-content {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.3), rgba(0, 210, 211, 0.15));
}

.placeholder-content::before {
    background-image: repeating-linear-gradient(45deg, currentColor 0, currentColor 1px, transparent 1px, transparent 12px);
}

.work-card-body {
    padding: 24px;
}

.work-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.work-category {
    padding: 4px 10px;
    background: rgba(108, 92, 231, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.work-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.work-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animation for filter */
.work-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA Section */
.work-cta {
    padding-top: 20px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(116, 185, 255, 0.08));
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--accent-glow);
    filter: blur(100px);
    top: -150px;
    right: -100px;
    opacity: 0.5;
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}

.cta-box .btn {
    position: relative;
    z-index: 1;
}

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

    .cta-box {
        padding: 40px 24px;
    }
}
