/**
 * Taxonomies Bubbles - Main Styles
 * Version: 1.0.0
 */

/* Wrapper */
.taxonomies-bubbles-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Glide slider customization */
.taxonomies-bubbles-wrapper .glide {
    position: relative;
}

/* Slide item */
.tb-bubble-item {
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tb-bubble-item:hover {
    transform: translateY(-5px);
}

/* Bubble link */
.tb-bubble-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Circle container */
.tb-bubble-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    background-color: #f5f5f5;
}

.tb-bubble-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.tb-bubble-link:hover .tb-bubble-circle::before {
    background: rgba(0, 0, 0, 0.1);
}

.tb-bubble-link:hover .tb-bubble-circle {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* Circle image */
.tb-bubble-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tb-bubble-link:hover .tb-bubble-circle img {
    transform: scale(1.1);
}

/* Bubble info */
.tb-bubble-info {
    margin-top: 10px;
}

.tb-bubble-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
    transition: color 0.3s ease;
}

.tb-bubble-link:hover .tb-bubble-title {
    color: #0073aa;
}

.tb-bubble-count {
    font-size: 14px;
    color: #666;
    display: block;
}

/* Glide Arrows */
.taxonomies-bubbles-wrapper .glide__arrow {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.taxonomies-bubbles-wrapper .glide__arrow:hover {
    background-color: #fff;
    border-color: #0073aa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.taxonomies-bubbles-wrapper .glide__arrow svg {
    color: #333;
}

.taxonomies-bubbles-wrapper .glide__arrow:hover svg {
    color: #0073aa;
}

.taxonomies-bubbles-wrapper .glide__arrow--left {
    left: -20px;
}

.taxonomies-bubbles-wrapper .glide__arrow--right {
    right: -20px;
}

.taxonomies-bubbles-wrapper .glide__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Glide Bullets */
.taxonomies-bubbles-wrapper .glide__bullets {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.taxonomies-bubbles-wrapper .glide__bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.taxonomies-bubbles-wrapper .glide__bullet:hover {
    background-color: #bbb;
}

.taxonomies-bubbles-wrapper .glide__bullet--active {
    background-color: #0073aa;
    width: 14px;
    height: 14px;
}

/* Error and No Results messages */
.tb-error,
.tb-no-results {
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
    margin: 20px 0;
}

.tb-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .tb-bubble-circle {
        width: 180px;
        height: 180px;
    }
    
    .taxonomies-bubbles-wrapper .glide__arrow--left {
        left: -15px;
    }
    
    .taxonomies-bubbles-wrapper .glide__arrow--right {
        right: -15px;
    }
}

@media screen and (max-width: 768px) {
    .tb-bubble-circle {
        width: 160px;
        height: 160px;
    }
    
    .tb-bubble-title {
        font-size: 16px;
    }
    
    .tb-bubble-count {
        font-size: 13px;
    }
    
    .taxonomies-bubbles-wrapper .glide__arrow {
        width: 40px;
        height: 40px;
    }
    
    .taxonomies-bubbles-wrapper .glide__arrow--left {
        left: 5px;
    }
    
    .taxonomies-bubbles-wrapper .glide__arrow--right {
        right: 5px;
    }
}

@media screen and (max-width: 480px) {
    .taxonomies-bubbles-wrapper {
        padding: 15px 0;
    }
    
    .tb-bubble-circle {
        width: 200px;
        height: 200px;
    }
    
    .tb-bubble-item {
        padding: 10px;
    }
    
    .taxonomies-bubbles-wrapper .glide__arrow--left {
        left: 10px;
    }
    
    .taxonomies-bubbles-wrapper .glide__arrow--right {
        right: 10px;
    }
}

/* Loading state */
.tb-bubble-circle.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
