/* Стили для облака тегов */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 40px 0;
    padding: 20px;
    background: #f7f7f8;
    border-radius: 16px;
}

.tag-link {
    display: inline-block;
    padding: 10px 24px;
    background: white;
    color: #2d2d2d !important;
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
    border: 1px solid #686868;
}

.tag-link:hover {
    background: #f7fafc;
    color: #2d2d2d !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .tags-cloud {
        gap: 10px;
        padding: 16px;
        margin: 30px 0;
    }
    
    .tag-link {
        padding: 8px 20px;
        font-size: 14px;
        white-space: normal;
        word-break: break-word;
        max-width: calc(100% - 24px);
        text-align: center;
    }
}

/* Dark theme for tags page */
body[data-theme="dark"] .tags-cloud {
    background: #1f1f1f;
    border: 1px solid #343434;
}

body[data-theme="dark"] .tag-link {
    background: #232323;
    color: #e5e7eb !important;
    border-color: #3a3a3a;
}

body[data-theme="dark"] .tag-link:hover {
    background: #2a2a2a;
    color: #ffffff !important;
    text-decoration: none !important;
}

@media (max-width: 480px) {
    .tags-cloud {
        gap: 8px;
        padding: 12px;
    }
    
    .tag-link {
        padding: 7px 16px;
        font-size: 13px;
        white-space: normal;
        word-break: break-word;
        max-width: calc(100% - 24px);
        text-align: center;
    }
}
