/**
 * Tags Section Styles - WordCloud2.js Canvas
 *
 * @package Hestia
 */

/* Tags Section Container - No padding, minimal styling */
.hestia-tags {
    padding: 0;
    position: relative;
    background-color: #fff;
}

/* Word Cloud Canvas Container */
.hestia-tags-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Canvas Element - Adaptive height */
#hestia-tags-canvas {
    width: 100% !important;
    height: auto !important;
    min-height: 300px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Placeholder text when no tags exist */
.hestia-tags-placeholder {
    font-style: italic;
    color: #999;
    padding: 40px 20px;
    text-align: center;
    font-size: 1rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #hestia-tags-canvas {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    #hestia-tags-canvas {
        min-height: 250px;
    }

    .hestia-tags-content {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    #hestia-tags-canvas {
        min-height: 220px;
    }
}

/* Print styles */
@media print {
    .hestia-tags {
        page-break-inside: avoid;
    }

    #hestia-tags-canvas {
        border: 1px solid #ddd;
    }
}
