/* ========================================
   PRODUCT SCROLL FLOW LAYOUT
   Large centered image with flowing specs
   ======================================== */

/* Main Product Section */
.product-scroll-flow {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Flow Container - Main Grid Layout */
.product-flow-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Title Section - Spans full width at top */
.flow-title-section {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.flow-title-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

.flow-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.flow-title {
    font-size: 3rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

/* Left Specs Column */
.flow-specs-left {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.flow-specs-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Center Image Section */
.flow-image-section {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease 0.1s, transform 1s ease 0.1s;
}

.flow-image-section.in-view {
    opacity: 1;
    transform: scale(1);
}

.flow-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: var(--bg-secondary);
}

.flow-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.flow-image-wrapper:hover .flow-main-image {
    transform: scale(1.05);
}

/* Image Glow Effect */
.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--primary-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.flow-image-wrapper:hover .image-glow {
    opacity: 0.3;
}

/* Right Specs Column */
.flow-specs-right {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.flow-specs-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Spec Cards */
.flow-spec-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flow-spec-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.flow-spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.spec-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 163, 204, 0.1);
    border-radius: 0.5rem;
}

.spec-content {
    flex: 1;
}

.spec-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.spec-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

/* Actions Section - Spans full width at bottom */
.flow-actions-section {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.flow-actions-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

.flow-actions-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Light Theme Adjustments */
body.light-theme .flow-image-wrapper {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.light-theme .flow-spec-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-theme .flow-spec-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */

/* Large Desktop */
@media (min-width: 1600px) {
    .product-flow-container {
        max-width: 1600px;
        grid-template-columns: 1fr 2.5fr 1fr;
    }

    .flow-title {
        font-size: 3.5rem;
    }

    .flow-image-wrapper {
        max-width: 800px;
    }
}

/* Desktop */
@media (max-width: 1400px) {
    .product-flow-container {
        max-width: 1200px;
    }

    .flow-title {
        font-size: 2.5rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1200px) {
    .product-scroll-flow {
        padding: 6rem 0;
    }

    .product-flow-container {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 2rem;
    }

    .flow-title {
        font-size: 2.25rem;
    }

    .flow-spec-card {
        padding: 1.25rem;
    }

    .spec-label {
        font-size: 0.8rem;
    }

    .spec-value {
        font-size: 1rem;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .product-flow-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .flow-title-section {
        grid-column: 1;
        margin-bottom: 1rem;
    }

    .flow-title {
        font-size: 2rem;
    }

    /* Stack layout for tablet */
    .flow-specs-left {
        grid-column: 1;
        grid-row: 3;
        transform: translateX(0);
        transform: translateY(30px);
    }

    .flow-specs-left.in-view {
        transform: translateY(0);
    }

    .flow-image-section {
        grid-column: 1;
        grid-row: 2;
    }

    .flow-image-wrapper {
        max-width: 600px;
    }

    .flow-specs-right {
        grid-column: 1;
        grid-row: 4;
        transform: translateX(0);
        transform: translateY(30px);
    }

    .flow-specs-right.in-view {
        transform: translateY(0);
    }

    .flow-actions-section {
        grid-column: 1;
        grid-row: 5;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .product-scroll-flow {
        padding: 4rem 0;
    }

    .product-flow-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .flow-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .flow-title {
        font-size: 1.75rem;
    }

    .flow-image-wrapper {
        max-width: 100%;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .flow-spec-card {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .spec-icon {
        font-size: 1.25rem;
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .spec-label {
        font-size: 0.75rem;
    }

    .spec-value {
        font-size: 0.95rem;
    }

    .flow-actions-section {
        flex-direction: column;
        margin-top: 2rem;
    }

    .flow-actions-section .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .flow-title {
        font-size: 1.5rem;
    }

    .flow-spec-card {
        padding: 0.875rem;
    }
}

/* Scroll Reveal Animation Base */
.scroll-reveal {
    opacity: 0;
}

.scroll-reveal.in-view {
    opacity: 1;
}

/* Animation Delays */
.delay-1 {
    transition-delay: 0.1s !important;
}

.delay-2 {
    transition-delay: 0.2s !important;
}

.delay-3 {
    transition-delay: 0.3s !important;
}

.delay-4 {
    transition-delay: 0.4s !important;
}

/* Performance Optimization */
.flow-main-image,
.flow-spec-card,
.image-glow {
    will-change: transform, opacity;
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide original product animation overlay when using flow layout */
.product-scroll-flow .product-data-overlay {
    display: none;
}
