/* Robo Tag Card - Container Box */
.robo-tag-card-box {
    background-color: #f7f8fa;
    border: 1px solid #e3e5e8;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 24px 0;
}

.robo-tag-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e3e5e8;
}

/* Robo Tag Card - Grid Layout */
.robo-tag-card-grid {
    display: grid;
    gap: 12px;
    margin: 0;
}

.robo-tag-card-cols-1 { grid-template-columns: repeat(1, 1fr); }
.robo-tag-card-cols-2 { grid-template-columns: repeat(2, 1fr); }
.robo-tag-card-cols-3 { grid-template-columns: repeat(3, 1fr); }
.robo-tag-card-cols-4 { grid-template-columns: repeat(4, 1fr); }
.robo-tag-card-cols-5 { grid-template-columns: repeat(5, 1fr); }
.robo-tag-card-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Card */
.robo-tag-card {
    text-align: center;
}

.robo-tag-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.robo-tag-card-link:hover {
    opacity: 0.8;
}

.robo-tag-card-nolink {
    cursor: default;
    opacity: 0.6;
}

.robo-tag-card-nolink:hover {
    opacity: 0.6;
}

/* Image */
.robo-tag-card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.robo-tag-card-image img {
    object-fit: cover;
    border-radius: 4px;
}

/* Placeholder for tags without matching posts */
.robo-tag-card-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e9ecef;
    border-radius: 4px;
    color: #adb5bd;
}

/* Tag Name */
.robo-tag-card-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    .robo-tag-card-cols-5,
    .robo-tag-card-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .robo-tag-card-cols-3,
    .robo-tag-card-cols-4,
    .robo-tag-card-cols-5,
    .robo-tag-card-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .robo-tag-card-grid {
        gap: 8px;
    }

    .robo-tag-card-box {
        padding: 12px 14px;
    }
}
