/* ============================================
   PRODUCTS PAGE STYLES
   ============================================ */

/* ============================================
   PRODUCT GALLERY - CAROUSEL WITH LIGHTBOX
   ============================================ */

.product-gallery {
    width: 100%;
    max-width: 500px;
}

/* Main Carousel */
.gallery-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
    visibility: visible;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zoom Button */
.zoom-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.gallery-slide:hover .zoom-btn {
    opacity: 1;
}

.zoom-btn:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.zoom-btn svg {
    width: 22px;
    height: 22px;
    stroke: white;
}

/* Video Placeholder */
.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-btn:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
    margin-left: 4px;
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.gallery-carousel:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: rgba(0, 245, 212, 0.4);
    border-color: var(--accent-cyan);
}

.gallery-arrow svg {
    width: 22px;
    height: 22px;
    stroke: white;
}

.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: white;
}

/* Thumbnails */
.gallery-thumbs-wrapper {
    margin-top: 12px;
    overflow: hidden;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) transparent;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: var(--glass-border);
    border-radius: 2px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 2px;
}

.gallery-thumb {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 50px;
    background: var(--bg-secondary);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.gallery-thumb:hover {
    border-color: var(--glass-border-hover);
}

.gallery-thumb.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(0, 245, 212, 0.4);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.thumb-video-icon svg {
    width: 12px;
    height: 12px;
    fill: white;
    margin-left: 2px;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox-video {
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--radius-lg);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   PRODUCT CARD
   ============================================ */

.product-card {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 60px;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 16px;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.product-badge.saas {
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    color: white;
}

.product-badge.enterprise {
    background: linear-gradient(135deg, #00bbf9 0%, #00f5d4 100%);
    color: var(--bg-primary);
}

.product-badge.new {
    background: linear-gradient(135deg, #f15bb5 0%, #fee440 100%);
    color: var(--bg-primary);
}

/* Product Content */
.product-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.product-card h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.product-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Product Features */
.product-features h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.features-list li svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Product Use Cases */
.product-usecases h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.usecase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.usecase-tag {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-primary);
    transition: var(--transition);
}

.usecase-tag:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 245, 212, 0.1);
}

/* Product Keywords (SEO) */
.product-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.product-keywords span {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-muted);
}

/* Product CTA */
.product-cta {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    grid-column: 1 / -1;
}

/* Product Visual */
.product-visual {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* ============================================
   FAQ SIMPLE
   ============================================ */

.faq-simple {
    max-width: 800px;
    margin: 0 auto;
}

.faq-simple .faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-simple .faq-question {
    width: 100%;
    padding: 20px 24px;
    background: var(--bg-card);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-simple .faq-question span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

.faq-simple .faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-simple .faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-simple .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-simple .faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-simple .faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .product-card {
        grid-template-columns: 1fr 400px;
        gap: 40px;
    }
}

@media (max-width: 1000px) {
    .product-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-visual {
        order: -1;
    }
    
    .product-gallery {
        max-width: 100%;
    }
    
    .product-cta {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .product-card {
        padding: 24px;
    }
    
    .product-badge {
        top: 16px;
        right: 16px;
    }
    
    .gallery-arrow {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
    
    .gallery-prev { left: 8px; }
    .gallery-next { right: 8px; }
    
    .gallery-thumb {
        width: 70px;
        height: 44px;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-close {
        top: -40px;
        right: 10px;
    }
    
    .product-cta {
        flex-direction: column;
    }
    
    .product-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 20px;
    }
    
    .usecase-tags {
        gap: 8px;
    }
    
    .usecase-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .product-keywords {
        display: none;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 38px;
    }
}