/* Core Wrapper Styles */
.tech-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

/* Grid Layout */
.tech-badge-group.grid {
    display: grid;
    grid-template-columns: repeat(var(--badge-columns, 3), 1fr);
    gap: 16px;
}

/* Inline Layout */
.tech-badge-group.inline {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
}

/* Card Layout (Enhanced) */
.tech-badge-group.card {
    display: grid;
    gap: 16px;
    justify-items: center;
    grid-template-columns: repeat(var(--badge-columns, 3), 1fr);
}

.tech-badge-group.card .tech-badge {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px;
    min-height: 120px;
    cursor: pointer;
    border: 1px solid #e9e9e9;
}

/* General Badge Styles */
.tech-badge {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    min-height: 100px;
}

.tech-title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Hover Effects */
.hover-lift .tech-badge:hover {
    transform: translateY(-5px);
}

.hover-shadow .tech-badge:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hover-zoom .tech-badge:hover {
    transform: scale(1.05);
}

/* Enhanced Card Hover Effects */
.tech-badge-group.card .tech-badge:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Responsive Adjustments */

/* Tablet devices */
@media (max-width: 1024px) {
    .tech-badge-group.grid,
    .tech-badge-group.card {
        grid-template-columns: repeat(var(--badge-columns-tablet, 2), 1fr);
        gap: 14px;
    }

    .tech-badge {
        padding: 14px;
        min-width: 90px;
        min-height: 90px;
    }

    .tech-title {
        font-size: 14px;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .tech-badge-group.grid,
    .tech-badge-group.card {
        grid-template-columns: repeat(var(--badge-columns-mobile, 1), 1fr);
        gap: 12px;
    }

    .tech-badge-group.inline {
        gap: 8px;
    }

    .tech-badge,
    .tech-badge-group.card .tech-badge {
        padding: 12px;
        min-width: 80px;
        min-height: 80px;
    }

    .tech-title {
        font-size: 13px;
    }
}

/* Small Mobile devices */
@media (max-width: 480px) {
    .tech-badge-group {
        gap: 10px;
    }

    .tech-badge,
    .tech-badge-group.card .tech-badge {
        padding: 10px;
        min-width: 70px;
        min-height: 70px;
    }

    .tech-title {
        font-size: 12px;
    }
}
