/* WebVerse — Categories Page */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,900;1,300&family=DM+Sans:wght@300;400;500;600&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #F7F5F2;
    font-family: 'DM Sans', sans-serif;
}

.wcat-main {
    padding: 3rem 5%;
}

.wcat-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Header */
.wcat-header {
    margin-bottom: 2.5rem;
}

.wcat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E8430A;
    margin-bottom: 0.7rem;
}

.wcat-eyebrow-dot {
    width: 6px;
    height: 6px;
    background: #E8430A;
    border-radius: 50%;
    animation: wcatPulse 2s ease-in-out infinite;
}

.wcat-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f0e0c;
    line-height: 1.05;
    margin-bottom: 0.6rem;
}

.wcat-title em {
    font-style: italic;
    font-weight: 300;
    color: #E8430A;
}

.wcat-sub {
    font-size: 0.9rem;
    color: rgba(15, 14, 12, 0.5);
}

/* Grid */
.wcat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

/* Card */
.wcat-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wcat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(15, 14, 12, 0.16);
}

/* Image */
.wcat-card__img {
    position: absolute;
    inset: 0;
}

.wcat-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wcat-card:hover .wcat-card__img img {
    transform: scale(1.06);
}

/* Overlay */
.wcat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 14, 12, 0.82) 0%,
            rgba(15, 14, 12, 0.2) 50%,
            transparent 100%);
    transition: background 0.3s ease;
}

.wcat-card:hover .wcat-card__overlay {
    background: linear-gradient(to top,
            rgba(15, 14, 12, 0.88) 0%,
            rgba(15, 14, 12, 0.35) 55%,
            transparent 100%);
}

/* Body */
.wcat-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.wcat-card__icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.wcat-card__name {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.wcat-card__count {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

.wcat-card__arrow {
    margin-left: auto;
    width: 34px;
    height: 34px;
    background: var(--cat-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.wcat-card:hover .wcat-card__arrow {
    transform: translateX(4px);
}

/* Keyframes */
@keyframes wcatPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(1.6);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .wcat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .wcat-main {
        padding: 2rem 4%;
    }

    .wcat-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .wcat-card {
        aspect-ratio: 16/9;
    }
}