/* Tweak Badges */
.tweak-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin: 0.125rem;
    min-width: 40px;
    height: 20px;
    line-height: 1;
    text-align: center;
}

.tweak-badge.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
    border: 1px solid #ffc107;
}

.tweak-badge.pro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 1px solid #dee2e6;
}

.tweak-badge.subscription {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    border: 1px solid #212529;
}

.tweak-badge.vip {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    animation: rainbow 3s ease-in-out infinite;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.tweak-badge.noads {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: 1px solid #0056b3;
}

.tweak-badge.gold {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #856404;
    border: 1px solid #d39e00;
}

.tweak-badge.buyinapp {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 1px solid #bd2130;
}

.tweak-badge.mod {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    animation: rainbow 3s ease-in-out infinite;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.author-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.625rem;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin: 0.125rem;
    min-width: 40px;
    height: 20px;
    line-height: 1;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.tweak-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
    align-items: center;
}

/* App Card với Tweak Info */
.app-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.app-card:hover {
    transform: translateY(-2px);
}

.app-tweak-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 8px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.app-card:hover .app-tweak-info {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .tweak-badge, .author-badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.4rem;
        min-width: 35px;
        height: 18px;
    }
    
    .app-tweak-info {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.05);
        backdrop-filter: none;
    }
}

/* Fallback badges cho trường hợp tweak utils chưa load */
.tweak-badge:not(.premium):not(.pro):not(.subscription):not(.vip):not(.noads):not(.gold):not(.buyinapp):not(.mod) {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    animation: rainbow 3s ease-in-out infinite;
    color: white;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.125rem;
    min-width: 40px;
    height: 20px;
    line-height: 1;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Fallback author badge */
.author-badge:not([style*="background"]) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.625rem;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.125rem;
    min-width: 40px;
    height: 20px;
    line-height: 1;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Fallback tweak container */
.tweak-container:not([style*="display"]) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
    align-items: center;
} 