/* ═══════════════════════════════════════ */
/* KATEGORİ HERO GRID */
/* ═══════════════════════════════════════ */

.categories-hero {
    margin: 25px 0;
    padding: 22px 18px;
    background: linear-gradient(135deg, #fff8e7 0%, #ffecd2 100%);
    border: 3px dashed #2c2c54;
    border-radius: 24px;
}

.cat-hero-header {
    text-align: center;
    margin-bottom: 20px;
}
.cat-hero-header h2 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: #2c2c54;
}
.cat-hero-header p {
    font-size: 0.9rem;
    color: #888;
}

.cat-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.cat-hero-card {
    position: relative;
    background: #fff;
    border: 3px solid #2c2c54;
    border-radius: 20px;
    padding: 16px 10px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 4px 0 #2c2c54;
    overflow: hidden;
    user-select: none;
}
.cat-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #2c2c54;
}
.cat-hero-card:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2c2c54;
}
.cat-hero-card.active {
    background: linear-gradient(135deg, #ffd93d, #ffb700);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2c2c54, 0 0 20px rgba(255, 217, 61, 0.5);
}

.cat-hero-img {
    width: 85px;
    height: 85px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #2c2c54;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cat-hero-card.active .cat-hero-img {
    transform: scale(1.06);
    border-color: #2c2c54;
}
.cat-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-hero-img-all {
    background: linear-gradient(135deg, #6bcbff, #a8edea) !important;
}
.cat-hero-emoji {
    font-size: 2.6rem;
    line-height: 1;
}

.cat-hero-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #2c2c54;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-hero-count {
    font-size: 0.72rem;
    color: #888;
    font-weight: 600;
}
.cat-hero-card.active .cat-hero-count {
    color: #2c2c54;
    opacity: 0.75;
}

.cat-hero-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: #6bcf7f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border: 2px solid #2c2c54;
    box-shadow: 0 2px 0 #2c2c54;
}
.cat-hero-card.active .cat-hero-check {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Pulse animasyonu */
.btn-play-hero.pulse {
    animation: pulse-btn 0.6s ease 2;
}
@keyframes pulse-btn {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 0 #2c2c54; }
    50% { transform: scale(1.05); box-shadow: 0 8px 0 #2c2c54, 0 0 25px rgba(255,217,61,0.7); }
}

/* Mobil */
@media (max-width: 700px) {
    .categories-hero { padding: 15px 12px; margin: 18px 0; }
    .cat-hero-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 10px; }
    .cat-hero-img { width: 62px; height: 62px; margin-bottom: 8px; }
    .cat-hero-emoji { font-size: 2rem; }
    .cat-hero-name { font-size: 0.78rem; }
    .cat-hero-count { font-size: 0.65rem; }
    .cat-hero-card { padding: 12px 8px 10px; border-radius: 16px; }
    .cat-hero-check { width: 20px; height: 20px; font-size: 0.8rem; top: 6px; right: 6px; }
}

@media (max-width: 400px) {
    .cat-hero-grid { grid-template-columns: repeat(2, 1fr); }
}