/**
 * Prime Website Log Transformation Animation Styles
 * Clean technical aesthetic with efficiency callouts
 * Date: July 29, 2025
 */

/* === LOG TRANSFORMATION CONTAINER === */
.log-transformation-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #1B4332; /* Forest Green */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transformation-stage {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 350px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    align-items: center;
}

/* === LOG SECTION === */
.log-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.log-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.1);
    transition: clip-path 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === PRODUCTS SECTION === */
.products-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.product-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

.product-item {
    opacity: 0;
    transform: translateX(20px);
    animation: productSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.product-item img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.1);
}

@keyframes productSlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === FLOATING SPEC CALLOUTS === */
.spec-callout {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(245, 243, 240, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 243, 240, 0.2);
    text-align: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.spec-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1B4332;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.efficiency-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.2px;
}

/* Callout animation states */
.spec-callout.fade-in {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

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

/* Tablet */
@media (max-width: 768px) {
    .transformation-stage {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 20px;
        padding: 20px;
        height: auto;
        min-height: 500px;
    }
    
    .log-section {
        order: 1;
    }
    
    .products-section {
        order: 2;
        justify-content: center;
    }
    
    .product-stack {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .product-item img {
        max-width: 80px;
        max-height: 50px;
    }
    
    .spec-callout {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        padding: 12px 16px;
    }
    
    .spec-label {
        font-size: 14px;
    }
    
    .efficiency-label {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .log-transformation-container {
        min-height: 350px;
    }
    
    .transformation-stage {
        padding: 15px;
        gap: 15px;
        min-height: 450px;
    }
    
    .product-item img {
        max-width: 60px;
        max-height: 40px;
    }
    
    .spec-callout {
        padding: 10px 12px;
    }
    
    .spec-label {
        font-size: 13px;
    }
    
    .efficiency-label {
        font-size: 11px;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .log-image,
    .product-item,
    .spec-callout {
        transition: opacity 0.3s ease;
    }
    
    .product-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .spec-callout {
        background: #fff;
        border: 2px solid #000;
        box-shadow: none;
    }
    
    .spec-label {
        color: #000;
    }
    
    .efficiency-label {
        color: #333;
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */
.log-image,
.product-item,
.spec-callout {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.log-transformation-container {
    transform: translateZ(0);
}