/* TechReview Category Nav — Frontend v2.1 */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500&display=swap');

.trcn-wrapper {
    background: #fff;
    padding: 10px 0 0;
    width: 100%;
    font-family: 'Instrument Sans', -apple-system, sans-serif;
	
}

/* Full-width grid — tüm itemlar eşit genişlikte siteye yayılır */
.trcn-track {
    display: grid;
    grid-template-columns: repeat(var(--trcn-cols, 15), 1fr);
    gap: 0;
    padding: 0 0 5px;
    width: 100%;
}

/* ---------- Each Item ---------- */

.trcn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 6px 4px 0;
    position: relative;
}

/* ---------- Icon Box ---------- */

.trcn-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: #f4f4f2;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.22s cubic-bezier(.34, 1.56, .64, 1);
}

.trcn-icon-box .iconify {
    color: #3a3a3a;
    transition: color 0.16s ease;
    width: 30px;
    height: 30px;
    font-size: 30px;
}

/* ---------- Active Dot ---------- */

.trcn-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #111;
    opacity: 0;
    margin-top: -5px;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

/* ---------- Label ---------- */

.trcn-label {
    font-size: 14px;
    font-weight: 500;
    color: #747474;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 4px;
    transition: color 0.15s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* ---------- Hover ---------- */

.trcn-item:hover .trcn-icon-box {
    background: #eaeae7;
    border-color: #deded9;
    transform: translateY(-3px) scale(1.05);
}

.trcn-item:hover .trcn-label {
    color: #1a1a1a;
}

/* ---------- Active ---------- */

.trcn-item.trcn-active .trcn-icon-box {
    background: #111;
    border-color: #111;
    transform: translateY(-2px);
}

.trcn-item.trcn-active .trcn-icon-box .iconify {
    color: #fff;
}

.trcn-item.trcn-active .trcn-dot {
    opacity: 1;
}

.trcn-item.trcn-active .trcn-label {
    color: #111;
    font-weight: 500;
}

/* ---------- Responsive ---------- */

/* Büyük ekran — 15 kolon tam genişlik */
@media (min-width: 1200px) {
    .trcn-track { --trcn-cols: 15; }
    .trcn-icon-box { width: 68px; height: 68px; border-radius: 20px; }
    .trcn-icon-box .iconify { width: 30px; height: 30px; font-size: 30px; }
    .trcn-label { font-size: 14px; }
}

/* Orta ekran */
@media (max-width: 1199px) and (min-width: 769px) {
    .trcn-track {
        --trcn-cols: 8;
        display: grid;
        overflow-x: visible;
    }
    .trcn-icon-box { width: 62px; height: 62px; border-radius: 18px; }
    .trcn-icon-box .iconify { width: 27px; height: 27px; font-size: 27px; }
    .trcn-label { font-size: 11.5px; }
}

/* Tablet */
@media (max-width: 768px) {
    .trcn-wrapper { padding: 14px 0 0; }
    .trcn-track {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x proximity;
        gap: 0;
        padding: 0 8px 16px;
    }
    .trcn-track::-webkit-scrollbar { display: none; }
    .trcn-item {
        flex-shrink: 0;
        width: 80px;
        scroll-snap-align: start;
        gap: 8px;
    }
    .trcn-icon-box { width: 58px; height: 58px; border-radius: 16px; }
    .trcn-icon-box .iconify { width: 26px; height: 26px; font-size: 26px; }
    .trcn-label { font-size: 11px; max-width: 76px; }
}

/* Mobil */
@media (max-width: 480px) {
    .trcn-item { width: 78px; }
    .trcn-icon-box { width: 52px; height: 52px; border-radius: 14px; }
    .trcn-icon-box .iconify { width: 23px; height: 23px; font-size: 23px; }
    .trcn-label { font-size: 13px; max-width: 78px; }
}
