/*
Theme Name: Boombox Child Theme Enhanced
Theme URI: http://boombox.px-lab.com
Template: boombox
Author: Px-Lab (Enhanced)
Author URI: https://px-lab.com
Description: Boombox is most powerful and flexible viral and buzz style WordPress theme. Flexible and fully customizable viral magazine theme combined with most powerful Viral content plugin with a ton of snacks and exclusive features and all that packed with dozens of powerful and popular plugins and with top-notch design
Version: 1.1.0
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, left-sidebar, right-sidebar, flexible-header, custom-colors, custom-header, custom-background, full-width-template,custom-menu, editor-style, featured-images, featured-image-header, post-formats, sticky-post, theme-options, translation-ready
Text Domain: boombox
*/

/*************** Custom CSS for Enhanced Features ***************/

/* Interactive Story Navigator */
.bb-story-navigator {
    position: relative;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bb-story-navigator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bb-story-navigator-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.bb-story-navigator-controls {
    display: flex;
    gap: 10px;
}

.bb-story-navigator-button {
    padding: 5px 12px;
    background: #e9e9e9;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-story-navigator-button:hover {
    background: #d9d9d9;
}

.bb-story-navigator-content {
    position: relative;
    min-height: 100px;
    transition: all 0.3s ease;
}

.bb-story-navigator-scene {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.bb-story-navigator-scene.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.bb-story-navigator-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.bb-story-navigator-choice {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-story-navigator-choice:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* Interactive Before/After Slider */
.bb-before-after-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 20px 0;
}

.bb-before-after-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-before-after-slider .bb-before-image {
    z-index: 1;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.bb-before-after-slider .bb-after-image {
    z-index: 0;
}

.bb-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    z-index: 2;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.bb-slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-slider-handle::before {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-size: 20px;
    color: #333;
}

/* Interactive Hotspot Image */
.bb-hotspot-image-container {
    position: relative;
    margin: 20px 0;
}

.bb-hotspot-image {
    width: 100%;
    display: block;
}

.bb-hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #ff6b6b;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.bb-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.bb-hotspot-content {
    position: absolute;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 250px;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bb-hotspot-content.active {
    opacity: 1;
    visibility: visible;
}

.bb-hotspot-content-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
}

/* Interactive Poll with Real-time Results */
.bb-interactive-poll {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bb-poll-question {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.bb-poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-poll-option {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.bb-poll-option:hover {
    background: #f0f0f0;
}

.bb-poll-option.selected {
    border-color: #4CAF50;
    background: #f0fff0;
}

.bb-poll-option-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(76, 175, 80, 0.2);
    z-index: 0;
    transition: width 1s ease;
}

.bb-poll-option-text {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
}

.bb-poll-option-percentage {
    font-weight: bold;
}

.bb-poll-total {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    text-align: right;
}

.bb-poll-submit {
    margin-top: 15px;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-poll-submit:hover {
    background: #45a049;
}

.bb-poll-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Mood-Based Content Recommendation */
.bb-mood-recommender {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.bb-mood-title {
    font-size: 22px;
    margin-bottom: 20px;
}

.bb-mood-question {
    font-size: 18px;
    margin-bottom: 20px;
}

.bb-mood-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.bb-mood-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 10px;
    border-radius: 8px;
}

.bb-mood-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bb-mood-option.selected {
    background: rgba(255, 255, 255, 0.2);
}

.bb-mood-emoji {
    font-size: 30px;
    margin-bottom: 5px;
}

.bb-mood-label {
    font-size: 14px;
}

.bb-mood-results {
    display: none;
    margin-top: 20px;
}

.bb-mood-results.active {
    display: block;
}

.bb-mood-recommendation {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.bb-mood-recommendation-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.bb-mood-recommendation-description {
    font-size: 14px;
    opacity: 0.9;
}

.bb-mood-reset {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.bb-mood-reset:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Interactive Timeline */
.bb-interactive-timeline {
    position: relative;
    margin: 40px 0;
    padding-bottom: 20px;
}

.bb-timeline-track {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ddd;
    z-index: 1;
}

.bb-timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #4CAF50;
    width: 0;
    transition: width 0.5s ease;
}

.bb-timeline-events {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.bb-timeline-event {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.bb-timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.bb-timeline-event.active .bb-timeline-dot {
    background: #4CAF50;
    border-color: #4CAF50;
    transform: scale(1.2);
}

.bb-timeline-event.completed .bb-timeline-dot {
    background: #4CAF50;
    border-color: #4CAF50;
}

.bb-timeline-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.bb-timeline-title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    max-width: 120px;
}

.bb-timeline-content {
    margin-top: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 200px;
}

.bb-timeline-content-item {
    display: none;
}

.bb-timeline-content-item.active {
    display: block;
}

.bb-timeline-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.bb-timeline-nav-button {
    padding: 8px 15px;
    background: #e9e9e9;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-timeline-nav-button:hover {
    background: #d9d9d9;
}

.bb-timeline-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bb-timeline-events {
        overflow-x: auto;
        padding-bottom: 20px;
        justify-content: flex-start;
    }
    
    .bb-timeline-event {
        min-width: 100px;
        margin-right: 20px;
    }
    
    .bb-mood-options {
        gap: 10px;
    }
    
    .bb-mood-emoji {
        font-size: 24px;
    }
    
    .bb-before-after-slider {
        height: 300px;
    }
}
