/**
 * Pretpot Vertical Progress Bars Widget
 * ------------------------------------
 */

/* Main Container */
.pretpot-vertical-progress-bars {
    position: relative;
    width: 100%;
    padding: 40px 20px;
    border-radius: 20px;
    overflow: hidden;
}

/* Background Types */
.pretpot-vpb-bg-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pretpot-vpb-bg-solid {
    background: var(--vpb-bg-color, #1a1a2e);
}

.pretpot-vpb-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pretpot-vpb-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Content Wrapper */
.pretpot-vpb-content {
    position: relative;
    z-index: 1;
}

/* Heading */
.pretpot-vpb-heading {
    margin: 0 0 40px 0;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pretpot-vpb-heading.align-left { text-align: left; }
.pretpot-vpb-heading.align-center { text-align: center; }
.pretpot-vpb-heading.align-right { text-align: right; }

/* Bars Container */
.pretpot-vpb-bars-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 60px;
    min-height: 400px;
    padding: 40px 20px;
}

/* Individual Bar Item */
.pretpot-vpb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Bar Container (Track) - Optional */
.pretpot-vpb-bar-container {
    width: 40px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Bar Container - Hidden Mode */
.pretpot-vpb-bar-container.no-container {
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

/* The Progress Bar Fill */
.pretpot-vpb-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px;
    transition: height 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* No Container Mode */
.pretpot-vpb-bar-container.no-container .pretpot-vpb-bar-fill {
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Glow Effect */
.pretpot-vpb-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    border-radius: 20px 20px 0 0;
}

/* Percentage Display */
.pretpot-vpb-percentage {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-variant-numeric: tabular-nums;
}

/* Label */
.pretpot-vpb-label {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Tooltip */
.pretpot-vpb-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pretpot-vpb-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.pretpot-vpb-item:hover .pretpot-vpb-tooltip {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Button */
.pretpot-vpb-button-wrapper {
    margin-top: 40px;
    display: flex;
}

.pretpot-vpb-button-wrapper.align-left { justify-content: flex-start; }
.pretpot-vpb-button-wrapper.align-center { justify-content: center; }
.pretpot-vpb-button-wrapper.align-right { justify-content: flex-end; }

.pretpot-vpb-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pretpot-vpb-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .pretpot-vpb-bars-wrapper {
        gap: 30px;
        min-height: 300px;
    }
    
    .pretpot-vpb-bar-container {
        width: 30px;
        height: 220px;
    }
    
    .pretpot-vpb-percentage {
        font-size: 22px;
    }
    
    .pretpot-vpb-label {
        font-size: 14px;
    }
    
    .pretpot-vpb-heading {
        font-size: 24px;
    }
}

/* Animation Keyframes */
@keyframes vpb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pretpot-vpb-bar-fill.animating {
    animation: vpb-pulse 0.5s ease-in-out;
}