/* ========================================
   GRIDY Z ODZNAKAMI
   ======================================== */

.tm-badges-grid,
.tm-locked-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    width: 100%;
}

.tm-badge-item,
.tm-locked-badge-item {
    padding: 15px 10px;
    transition: transform 0.2s;
}

.tm-badge-item:hover,
.tm-locked-badge-item:hover {
    transform: translateY(-3px);
}

.tm-badge-icon,
.tm-locked-badge-icon {
    max-width: 128px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto 8px auto !important;
    display: block !important;
}

.tm-locked-badge-icon {
    filter: grayscale(100%) opacity(40%) !important;
}

.tm-badge-name,
.tm-locked-badge-name {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 6px;
    color: #475569;
    line-height: 1.3;
}

.tm-badge-date,
.tm-locked-badge-date {
    font-size: 11px;
    color: #848484;
    display: block;
    padding-top: 4px;
}

/* Empty state */
.tm-badges-empty {
    text-align: center;
    font-size: 1rem;
    color: #475569;
}

/* ========================================
   KARTY Z PROGRESEM
   ======================================== */

.tm-progress-container {
    display: flex;
    gap: 10px;
    justify-content: space-around;
}

.tm-progress-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tm-progress-icon-wrap {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    background: #fff;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-progress-icon {
    max-width: 128px;
    height: auto;
    opacity: 0.9;
    display: block;
}

.tm-progress-info {
    flex-grow: 1;
    text-align: left;
}

.tm-progress-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.tm-progress-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.tm-progress-bar-bg {
    background: #e2e8f0;
    border-radius: 20px;
    height: 8px;
    width: 100%;
    overflow: hidden;
}

.tm-progress-bar-fill {
    background: #22c55e;
    height: 100%;
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESPONSYWNOŚĆ
   ======================================== */

@media (max-width: 1400px) {
    .tm-progress-card {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .tm-badges-grid,
    .tm-locked-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tm-progress-container {
        flex-direction: column;
        align-items: center;
    }
    .tm-progress-card {
        max-width: 100%;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .tm-badges-grid,
    .tm-locked-badges-grid {
        grid-template-columns: 1fr;
    }
}