/**
 * Unified Affiliate Manager Frontend Styles
 */

/* Bold link styling */
a.bold {
    font-weight: bold;
}

/* Product Video Styles */
.uam-product-videos {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 80px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 40px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
    margin: 0 -40px;
}

.uam-product-video-wrapper {
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: top;
    margin-right: 20px;
}

.uam-product-video-wrapper:last-child {
    margin-right: 0;
}

.uam-video-title {
    margin-bottom: 10px;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    white-space: normal;
}

/* Regular horizontal videos */
.uam-product-video {
    position: relative;
    width: 400px;
    height: 225px; /* Fixed height for 16:9 at 400px width */
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Vertical videos (Shorts) */
.uam-product-video.uam-video-short {
    width: 225px;
    height: 400px; /* Fixed height for 9:16 ratio */
}

.uam-product-video iframe,
.uam-product-video.uam-video-short iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .uam-product-video {
        width: 350px;
        height: 197px;
    }
    
    .uam-product-video.uam-video-short {
        width: 197px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .uam-product-videos {
        gap: 40px;
        padding: 15px 20px;
        margin: 0 -20px;
    }
    
    .uam-product-video-wrapper {
        margin-right: 15px;
    }
    
    .uam-product-video {
        width: 320px;
        height: 180px;
    }
    
    .uam-product-video.uam-video-short {
        width: 180px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .uam-product-videos {
        gap: 20px;
        padding: 10px 15px;
        margin: 0 -15px;
    }
    
    .uam-product-video {
        width: 280px;
        height: 157px;
    }
    
    .uam-product-video.uam-video-short {
        width: 157px;
        height: 280px;
    }
}

@media (max-width: 320px) {
    .uam-product-video {
        width: 260px;
        height: 146px;
    }
    
    .uam-product-video.uam-video-short {
        width: 146px;
        height: 260px;
    }
}

/* Product FAQ Styles - Now using Bootstrap Accordion */
/* Legacy styles kept for backwards compatibility but commented out
.uam-product-faq {
    margin: 20px 0;
}

.uam-faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.uam-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.uam-faq-question {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
}

.uam-faq-answer {
    line-height: 1.6;
}
*/

/* Product Info Styles */
.uam-product-title {
    font-weight: 600;
}

.uam-product-address {
    margin: 10px 0;
}

.uam-product-hours {
    margin: 10px 0;
}

.uam-product-hours ul {
    list-style: none;
    padding: 0;
}

.uam-product-hours li {
    margin-bottom: 5px;
}

/* Video Thumbnail Styles */
.uam-product-video.has-thumbnail {
    cursor: pointer;
    position: relative;
}

.uam-video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.uam-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uam-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.uam-product-video.has-thumbnail:hover .uam-video-play-button {
    opacity: 1;
}

.uam-video-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}