/* ========================================
   ANIMATIONS
   ======================================== */

.hyzen-tc-header,
.hyzen-tc-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hyzen-tc.hyzen-tc-visible .hyzen-tc-header {
    opacity: 1;
    transform: translateY(0);
}

.hyzen-tc.hyzen-tc-visible .hyzen-tc-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--item-index, 0) * 0.1s + 0.3s);
}

@keyframes hyzenFireFlicker {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.15) rotate(4deg);
        opacity: 0.85;
    }
}


/* ========================================
   SECTION CONTAINER
   ======================================== */

.hyzen-tc {
    padding: 4rem 0.75rem;
    background: transparent;
    position: relative;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .hyzen-tc {
        padding: 6rem 2rem;
    }
}

.hyzen-tc .hyzen-container {
    max-width: 1216px;
    margin: 0 auto;
    padding: 0;
}

/* ========================================
   SECTION HEADER
   ======================================== */

.hyzen-tc-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.hyzen-tc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #171717;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hyzen-tc-fire-icon {
    display: inline-block;
    animation: hyzenFireFlicker 2s infinite ease-in-out;
    transform-origin: bottom center;
    font-size: 1.5rem;
    will-change: transform, opacity;
}

.hyzen-tc-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #171717;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hyzen-tc-title {
        font-size: 3.5rem;
    }
}

.hyzen-tc-desc {
    font-size: 1rem;
    color: #525252;
    margin: 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hyzen-tc-desc {
        font-size: 1.125rem;
    }
}

/* ========================================
   CATEGORIES LIST
   ======================================== */

.hyzen-tc-list {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hyzen-tc-list::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .hyzen-tc-list {
        white-space: normal;
        mask-image: none;
        -webkit-mask-image: none;
        overflow-x: visible;
    }
}

.hyzen-tc-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    margin: 0.4rem;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    color: #171717;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    /* Added for hit-area */
}

/* Hidden hit-area for touch accessibility (minimum 44px height) */
.hyzen-tc-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 48px;
    /* Slightly more than 44px for safe target */
    transform: translateY(-50%);
}

.hyzen-tc-item:hover {
    border-color: #171717;
    color: #ffffff;
    background: #171717;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .hyzen-tc-item {
        padding: 1.125rem 2rem;
        font-size: 1.125rem;
        margin: 0.6rem;
    }
}

.hyzen-tc-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #525252;
    /* Darkened for accessibility (was #737373) */
    background: #f5f5f5;
    min-width: 26px;
    height: 26px;
    padding: 0 0.5rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hyzen-tc-count::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.hyzen-tc-item:hover .hyzen-tc-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

/* ========================================
   ACCESSIBILITY & UTILS
   ======================================== */

.hyzen-tc-item:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .hyzen-tc-header,
    .hyzen-tc-item,
    .hyzen-tc-fire-icon {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}