/* MacBook Mockup - CSS-based device frame */

.laptop-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
    height: 100%;
    flex-direction: column;
}

/* Container with side bezels */
.laptop-frame-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 1;
}

/* MacBook Frame */
.laptop-frame {
    position: relative;
    width: 960px;
    background: linear-gradient(180deg, #262626 0%, #101010 100%);
    border-radius: 16px 16px 12px 12px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.65),               /* main drop shadow */
        0 0 0 1px rgba(0, 0, 0, 0.9),                  /* crisp outer edge */
        inset 0 1px 0 rgba(255, 255, 255, 0.18),       /* top highlight */
        inset 0 -1px 0 rgba(0, 0, 0, 0.9);             /* bottom edge */
    overflow: hidden; /* Single seamless rounded shell */
    aspect-ratio: 16 / 10;
}

/* MacBook Screen - single masked surface inside frame */
.laptop-screen {
    position: absolute;
    /* Inset on all sides to create bezel */
    top: 20px;
    right: 20px;
    bottom: 32px;
    left: 20px;
    background: #000; /* True screen black around content */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Mask slide content */
    border-radius: 8px;
    /* Inner stroke / pixel gap just inside bezel (softened) */
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),            /* softer glass edge */
        inset 0 1px 2px rgba(255, 255, 255, 0.08), /* light top highlight */
        inset 0 -2px 4px rgba(0, 0, 0, 0.6),       /* softer lower edge */
        inset 0 0 24px rgba(0, 0, 0, 0.55);        /* gentler falloff */
}

/* Overlay inner shadow above content so slide edges are slightly covered */
.laptop-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.4); /* smaller inner glow over content edges */
}

/* MacBook Content (Scrollable) */
.laptop-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Custom scrollbar for MacBook */
.laptop-content::-webkit-scrollbar {
    width: 8px;
}

.laptop-content::-webkit-scrollbar-track {
    background: transparent;
}

.laptop-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.laptop-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Image inside MacBook */
.laptop-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* (Bottom bezel removed to keep frame as a single seamless piece) */

/* MacBook Base/Hinge */
.laptop-base {
    width: 1008px; /* Slightly wider than screen for overhang */
    height: 32px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 0 0 20px 20px;
    margin-top: -10px;
    position: relative;
    box-shadow: 
        0 24px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 10;
}

/* Responsive: Smaller MacBook on smaller screens */
@media (max-width: 1200px) {
    .laptop-frame {
        width: 800px;
    }

    .laptop-base {
        width: 848px;
    }
}

@media (max-width: 900px) {
    .laptop-frame {
        width: 680px;
        border-radius: 14px 14px 10px 10px;
    }

    .laptop-base {
        width: 720px;
        height: 28px;
    }

}

/* Responsive: Tablet/Mobile view */
@media (max-width: 768px) {
    .laptop-frame {
        width: 100%;
        max-width: 500px;
        aspect-ratio: 16 / 10;
        border-radius: 12px 12px 10px 10px;
    }

    .laptop-base {
        width: calc(100% - 8px);
        max-width: 532px;
        height: 20px;
    }

    .laptop-content::-webkit-scrollbar {
        width: 6px;
    }
}

/* Light theme adjustments */
[data-theme="light"] .laptop-frame {
    background: linear-gradient(180deg, #f5f5f7 0%, #dedee2 100%);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .laptop-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .laptop-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .laptop-base {
    background: linear-gradient(180deg, #f2f2f4 0%, #dedee0 100%);
    box-shadow: 
        0 24px 70px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Loading state */
.laptop-frame.loading .laptop-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.laptop-frame.loading .laptop-content::after {
    content: "Loading...";
    color: var(--color-text-secondary);
    font-size: 14px;
}

