/* ============================================
   IronCrux Shield - Screenshot Components
   Modern 2026 Design System
   ============================================ */

/* Component A: Screenshot Display Card - Minimalistic */
.screenshot-showcase-card {
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.screenshot-showcase-card:hover {
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
}

.screenshot-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Premium 2026 Laptop Mockup - Flat Design */
.laptop-mockup {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
}

.laptop-screen {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    border-radius: 20px 20px 6px 6px;
    padding: 12px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.laptop-screen-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.laptop-base {
    position: relative;
    height: 16px;
    background: linear-gradient(135deg,
        #f1f3f4 0%,
        #e8eaed 25%,
        #dadce0 50%,
        #bdc1c6 75%,
        #9aa0a6 100%);
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    width: 220px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.1);
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 6px;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border-radius: 3px 3px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.laptop-keyboard {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 3px;
    background: linear-gradient(135deg, #9aa0a6 0%, #80868b 100%);
    border-radius: 1.5px;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

/* Skeleton Loading Animation */
.skeleton-loader {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0) 0%, rgba(226, 232, 240, 0.5) 50%, rgba(226, 232, 240, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.screenshot-image.loaded + .skeleton-loader {
    display: none;
}

/* Component B: Comparison Slider Card */
.comparison-card {
    background: white;
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.comparison-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.comparison-container {
    max-width: 100%;
}

.comparison-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #F8FAFC;
}

.comparison-before,
.comparison-after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-after {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.05s ease-out;
}

.comparison-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-label {
    position: absolute;
    top: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 5;
}

.label-before {
    left: 1.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.label-after {
    right: 1.5rem;
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.comparison-slider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: 4px;
    cursor: ew-resize;
    z-index: 20;
}

.slider-handle {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-button {
    position: relative;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #2563EB;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: ew-resize;
}

.slider-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.slider-button:focus {
    outline: 3px solid #2563EB;
    outline-offset: 4px;
}

@keyframes slideHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.comparison-slider:hover .slider-button {
    animation: slideHint 1.5s ease-in-out infinite;
}

/* Removed lightbox - images display directly on page */

/* Component D: Bento Grid Showcase */
.bento-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.bento-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bento-item:not(.visible) {
    opacity: 0;
    transform: translateY(30px);
}

.bento-item:nth-child(1) { animation-delay: 0.1s; }
.bento-item:nth-child(2) { animation-delay: 0.2s; }
.bento-item:nth-child(3) { animation-delay: 0.3s; }
.bento-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Bento Grid */
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 2rem;
    }

    .bento-large {
        grid-column: span 8; /* 67% - dashboard gets 70% space */
    }

    .bento-medium {
        grid-column: span 4; /* 33% - popup gets 30% space */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .bento-large {
        grid-column: span 8 !important; /* Maintain 70/30 ratio on tablet */
        grid-row: span 1 !important;
    }

    .bento-medium {
        grid-column: span 4 !important; /* Maintain 70/30 ratio on tablet */
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .screenshot-overlay {
        opacity: 0.9;
        background: linear-gradient(to top, rgba(37, 99, 235, 0.85), transparent);
        padding: 1.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .bento-item {
        grid-column: 1 !important;
        grid-row: auto !important;
        min-height: 300px;
    }

    .comparison-card {
        padding: 1.5rem;
    }

    .comparison-header {
        margin-bottom: 1.5rem;
    }

    .lightbox-modal {
        padding: 1rem;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 75vh;
    }

    .lightbox-caption {
        padding: 1rem;
    }
}

/* Screenshots are non-interactive - no focus indicators needed */

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .screenshot-showcase-card,
    .screenshot-image,
    .overlay-content,
    .bento-item,
    .lightbox-backdrop,
    .lightbox-content,
    .view-full-btn,
    .slider-button {
        transition: none !important;
        animation: none !important;
    }

    .screenshot-showcase-card:hover .screenshot-image {
        transform: none;
    }

    .lightbox-modal.active {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .screenshot-showcase-card {
        border: 2px solid currentColor;
    }

    .lightbox-close {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Ready (for future implementation) */
@media (prefers-color-scheme: dark) {
    .comparison-card,
    .screenshot-showcase-card {
        background: #1E293B;
    }

    .comparison-wrapper {
        background: #0F172A;
    }
}
