/* =========================================================
   COMMON REALISTIC FRAME & BACKGROUND SYSTEM (Mrg-001 Base)
   ========================================================= */

/* HIDE ALL SCROLLBARS GLOBALLY */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 1. OUTER CONTAINER */
.realistic-frame-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Mobile browser height fix */
    background: #eae7e2;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.realistic-frame-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(./background_image.webp);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* 2. THE HARDWARE FRAME (Desktop View) */
.realistic-frame {
    box-sizing: content-box !important;
    width: 360px;
    height: 780px; 
    max-height: 90vh;
    border: 12px solid #111; 
    border-radius: 40px;
    background: #111; 
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    position: relative;
    margin: 0;
}

/* Physical Hardware Buttons */
.btn-mute { position: absolute; top: 100px; left: -16px; width: 4px; height: 25px; background: #333; border-radius: 4px 0 0 4px; }
.btn-vol-up { position: absolute; top: 140px; left: -16px; width: 4px; height: 50px; background: #333; border-radius: 4px 0 0 4px; }
.btn-vol-down { position: absolute; top: 200px; left: -16px; width: 4px; height: 50px; background: #333; border-radius: 4px 0 0 4px; }
.btn-power { position: absolute; top: 160px; right: -16px; width: 4px; height: 70px; background: #333; border-radius: 0 4px 4px 0; }

/* 3. THE SCREEN CONTENT */
.screen-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 28px; 
    overflow: hidden; 
    z-index: 1;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

/* MOBILE VIEW: REMOVE FRAME & GO FULLSCREEN */
@media (max-width: 768px) {
    .realistic-frame-container { background: none; }
    .realistic-frame-container::after { display: none; }
    .realistic-frame {
        box-sizing: border-box !important;
        width: 100vw;
        height: 100vh;
        height: 100dvh; /* Mobile browser height fix */
        max-height: 100dvh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    .screen-content { border-radius: 0; }
    .btn-mute, .btn-vol-up, .btn-vol-down, .btn-power, .dynamic-island { display: none; }
}
