/* Frontend Styles for Dynamic HTML Embed Builder */

.dheb-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
}

/* Responsive Columns for Mobile */
@media (max-width: 768px) {
    .dheb-columns, 
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .dheb-column,
    [style*="min-height"] {
        width: 100% !important;
        min-height: 50px !important;
        margin-bottom: 10px !important;
    }
}

/* Video Wrapper Fixes */
.dheb-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 15px 0;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    pointer-events: auto !important;
}

.dheb-video-wrapper iframe,
.dheb-video-wrapper video,
.dheb-video-wrapper * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto !important; /* CRITICAL: Ensure videos are clickable on frontend */
    z-index: 10 !important;
}

/* Slots Availability Styles */
.dheb-slots-container {
    background: #001a0a; /* Dark green background like screenshot */
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    font-family: 'Inter', sans-serif;
    text-align: center;
    border: 1px solid #003311;
}

.dheb-slots-header {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
}

.dheb-slots-sub {
    font-size: 12px;
    color: #888;
    margin-bottom: 25px;
}

.dheb-slots-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.dheb-slot-box {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #004d1a;
    border-radius: 4px;
    font-weight: bold;
    color: #004d1a;
    font-size: 18px;
}

.dheb-slot-box.is-taken {
    background: #00ff66;
    border-color: #00ff66;
    color: #001a0a;
}

.dheb-slots-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
}

.dheb-slots-progress-wrap {
    background: #003311;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.dheb-slots-progress-bar {
    background: #00ff66;
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dheb-slots-progress-text {
    color: #001a0a;
    font-weight: bold;
    font-size: 14px;
}

.dheb-slots-footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #00ff66;
    font-weight: 600;
}

@media (max-width: 600px) {
    .dheb-slot-box {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .dheb-slots-footer {
        flex-direction: column;
        gap: 5px;
    }
}

/* Testimonial Responsive */
@media (max-width: 480px) {
    .dheb-testimonial {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
    }
    
    .dheb-testimonial img {
        margin: 0 auto !important;
    }
}
