/* PocketView Studio - Premium Device Mockups */

:root {
    --mockup-scale: 1;
}

/* Base Mockup Settings */
.device-mockup {
    position: relative;
    background-color: #000;
    box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
    transform-origin: center center;
    transform: scale(var(--mockup-scale));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s ease, height 0.4s ease, border-radius 0.4s ease, padding 0.4s ease;
}

/* Hardware Buttons */
.device-mockup::before,
.device-mockup::after {
    content: '';
    position: absolute;
    background: #111;
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* ============================
   IPHONE 14 PRO MAX
   ============================ */
.device-iphone {
    width: var(--target-w, 430px);
    height: var(--target-h, 932px);
    border-radius: 54px;
    padding: 16px;
    border: 2px solid #222;
    box-shadow: inset 0 0 1px 1px #444, inset 0 0 8px 0px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.2);
}

.device-iphone.is-landscape {
    width: var(--target-h, 932px);
    height: var(--target-w, 430px);
}

/* iPhone Screen */
.device-iphone .screen {
    border-radius: 40px;
    /* This ensures content doesn't bleed out of the rounded corners */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Dynamic Island */
.device-iphone .dynamic-island {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 124px;
    height: 36px;
    background: #000;
    border-radius: 24px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    pointer-events: none;
}

.device-iphone.is-landscape .dynamic-island {
    top: 50%;
    left: 28px;
    transform: translateY(-50%) rotate(-90deg);
}

.camera {
    width: 12px;
    height: 12px;
    background: #111;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.camera::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: #1e1e9f;
    border-radius: 50%;
    box-shadow: 0 0 4px #4a4afe;
}

.sensor {
    width: 8px;
    height: 8px;
    background: #111;
    border-radius: 50%;
    position: absolute;
    right: 40px;
}

/* iPhone Hardware Buttons */
/* Volume Up */
.device-iphone::before {
    width: 3px;
    height: 60px;
    left: -5px;
    top: 180px;
}

/* Volume Down */
.device-iphone::after {
    width: 3px;
    height: 60px;
    left: -5px;
    top: 260px;
}

/* Power Button */
.device-iphone .power-btn {
    position: absolute;
    width: 3px;
    height: 90px;
    right: -5px;
    top: 200px;
    background: #111;
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* iPhone Landscape buttons */
.device-iphone.is-landscape::before {
    width: 60px;
    height: 3px;
    left: 180px;
    top: auto;
    bottom: -5px;
}

.device-iphone.is-landscape::after {
    width: 60px;
    height: 3px;
    left: 260px;
    top: auto;
    bottom: -5px;
}

.device-iphone.is-landscape .power-btn {
    width: 90px;
    height: 3px;
    right: auto;
    left: 200px;
    top: -5px;
}


/* ============================
   IPAD PRO 11"
   ============================ */
.device-ipad {
    width: var(--target-w, 834px);
    height: var(--target-h, 1194px);
    border-radius: 36px;
    padding: 24px;
    border: 2px solid #222;
    box-shadow: inset 0 0 2px 2px #333, 0 30px 60px rgba(0, 0, 0, 0.15);
}

.device-ipad.is-landscape {
    width: var(--target-h, 1194px);
    height: var(--target-w, 834px);
}

.device-ipad .screen {
    border-radius: 12px;
}

/* iPad Front Camera */
.device-ipad .dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #111;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
    z-index: 50;
    pointer-events: none;
    transition: all 0.4s ease;
}

.device-ipad.is-landscape .dynamic-island {
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}

.device-ipad .camera,
.device-ipad .sensor {
    display: none;
}

.device-ipad .dynamic-island::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: #1e1e9f;
    border-radius: 50%;
}

/* iPad buttons */
.device-ipad::before {
    width: 3px;
    height: 40px;
    left: auto;
    right: 40px;
    top: -5px;
}

.device-ipad::after {
    width: 3px;
    height: 40px;
    left: auto;
    right: 90px;
    top: -5px;
}

.device-ipad .power-btn {
    display: none;
}

.device-ipad.is-landscape::before {
    width: 40px;
    height: 3px;
    top: auto;
    bottom: -5px;
    left: 40px;
}

.device-ipad.is-landscape::after {
    width: 40px;
    height: 3px;
    top: auto;
    bottom: -5px;
    left: 90px;
}

/* ============================
   ANDROID (Samsung Galaxy)
   ============================ */
.device-android {
    width: var(--target-w, 412px);
    height: var(--target-h, 915px);
    border-radius: 40px;
    padding: 12px;
    border: 2px solid #222;
    box-shadow: inset 0 0 1px 1px #444, inset 0 0 8px 0px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.2);
}

.device-android.is-landscape {
    width: var(--target-h, 915px);
    height: var(--target-w, 412px);
}

.device-android .screen {
    border-radius: 28px;
}

.device-android .dynamic-island {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #111;
    border-radius: 50%;
    z-index: 50;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.device-android.is-landscape .dynamic-island {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.device-android .camera,
.device-android .sensor {
    display: none;
}

/* Base Hardware Buttons */
.device-android::before {
    width: 3px;
    height: 45px;
    right: -5px;
    left: auto;
    top: 150px;
}

.device-android::after {
    width: 3px;
    height: 90px;
    right: -5px;
    left: auto;
    top: 220px;
}

.device-android .power-btn {
    display: none;
}

.device-android.is-landscape::before {
    width: 45px;
    height: 3px;
    top: -5px;
    left: 150px;
    bottom: auto;
}

.device-android.is-landscape::after {
    width: 90px;
    height: 3px;
    top: -5px;
    left: 220px;
    bottom: auto;
}

/* ============================
   MACBOOK PRO
   ============================ */
.device-macbook {
    width: var(--target-w, 1440px);
    height: var(--target-h, 900px);
    border-radius: 24px;
    padding: 16px;
    padding-bottom: 30px;
    border: 2px solid #222;
    background-color: #1a1a1a;
    box-shadow: inset 0 0 1px 1px #444, 0 30px 60px rgba(0, 0, 0, 0.3);
}

.device-macbook.is-landscape {
    width: var(--target-h, 900px);
    height: var(--target-w, 1440px);
}

.device-macbook .screen {
    border-radius: 8px;
}

.device-macbook .dynamic-island {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 24px;
    background: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: 50;
}

.device-macbook.is-landscape .dynamic-island {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 24px;
    height: 160px;
    border-radius: 0 12px 12px 0;
}

/* MacBook base lip */
.device-macbook::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 12px;
    background: #333;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.device-macbook.is-landscape::before {
    display: none;
}

.device-macbook::after,
.device-macbook .power-btn {
    display: none;
}

.device-macbook .camera,
.device-macbook .sensor {
    display: none;
}

/* ============================
   DESKTOP MONITOR
   ============================ */
.device-desktop {
    width: var(--target-w, 1920px);
    height: var(--target-h, 1080px);
    border-radius: 16px;
    padding: 16px;
    padding-bottom: 24px;
    border: 2px solid #222;
    background-color: #111;
    box-shadow: inset 0 0 1px 1px #333, 0 30px 60px rgba(0, 0, 0, 0.3);
}

.device-desktop.is-landscape {
    width: var(--target-h, 1080px);
    height: var(--target-w, 1920px);
}

.device-desktop .screen {
    border-radius: 4px;
}

.device-desktop .dynamic-island,
.device-desktop::before,
.device-desktop::after,
.device-desktop .power-btn,
.device-desktop .camera,
.device-desktop .sensor {
    display: none !important;
}

/* Base stand for desktop monitor */
.device-desktop {
    margin-bottom: 70px;
}

.device-desktop::before {
    display: block !important;
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
    background: #222;
    z-index: -1;
}

.device-desktop::after {
    display: block !important;
    content: '';
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 10px;
    background: #111;
    border-radius: 4px;
    z-index: -1;
}

.device-desktop.is-landscape::before,
.device-desktop.is-landscape::after {
    display: none !important;
}