.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding: 30px 20px;
}

/* Tag Base */
.tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;
    border-radius: 999px;

    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #fff;

    font-weight: 500;
    cursor: pointer;

    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;

    backdrop-filter: blur(6px);
}

/* Entry Animation */
.tag.show {
    transform: translateY(0);
    opacity: 1;
}

/* Hover Effect */
.tag:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4),
                0 0 10px rgba(255,255,255,0.15);
}

/* Subtle Shine Effect */
.tag::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.tag:hover::before {
    opacity: 1;
}

/* Tag Name */
.tag-name {
    white-space: nowrap;
}

/* Count Badge */
.tag-count {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Weight Scaling */
.tag[data-weight="1"] { font-size: 13px; opacity: 0.6; }
.tag[data-weight="2"] { font-size: 14px; opacity: 0.7; }
.tag[data-weight="3"] { font-size: 16px; opacity: 0.85; }
.tag[data-weight="4"] { font-size: 18px; }
.tag[data-weight="5"] { font-size: 22px; font-weight: 700; }

/* Smooth floating (random feel) */
.tag:nth-child(odd) {
    animation: float1 6s ease-in-out infinite;
}
.tag:nth-child(even) {
    animation: float2 7s ease-in-out infinite;
}

@keyframes float1 {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes float2 {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}