/* ----------------------------------------
   GLOBAL BACKGROUND + VIEWPORT FIX
---------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: Arial, Helvetica, sans-serif;

    height: 100dvh;         /* dynamic viewport height (fixes Chrome) */
    min-height: 100svh;     /* fallback for Safari small viewport */
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;       /* allow scroll if needed */
    -webkit-overflow-scrolling: touch;
}

/* Safe area for iPhone bottom bar / Notch */
.safe-area {
    padding-bottom: env(safe-area-inset-bottom);
    width: 100%;
    height: 100%;
}

/* ----------------------------------------
   PHONE FRAME — FULL SCREEN FIX
---------------------------------------- */
.phone-frame {
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;

    max-width: none;
    position: relative;

    border-radius: 32px;
    overflow-y: auto;              /* allow scroll when Chrome shrinks viewport */
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;

    box-shadow: 0 0 40px rgba(0, 0, 0, 0.75);

    background-image: url("Photos/20251108122806.PNG");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* DARK OVERLAY */
.phone-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.85)
    );
    z-index: 0;
}

/* ----------------------------------------
   CONTENT
---------------------------------------- */
.content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 24px 20px;

    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    overflow-y: visible;
}

/* ----------------------------------------
   LOGO
---------------------------------------- */
.logo {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);

    width: 60%;
    max-width: 240px;
    z-index: 2;
}

/* ----------------------------------------
   BOTTOM BLOCK
---------------------------------------- */
.bottom-block {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ----------------------------------------
   SOUNDCLOUD PLAYER
---------------------------------------- */
.thin-player {
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.thin-player iframe {
    height: 130px !important;
}

/* ----------------------------------------
   PRE-SAVE BUTTON
---------------------------------------- */
.presave-btn {
    display: block;
    width: 90%;
    margin: 0 auto;
    padding: 12px 0;

    background: #ff1ea8;
    color: #fff;

    text-decoration: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;

    text-align: center;
    transition: 0.25s;
}

.presave-btn:hover {
    background: #ff4cc0;
}

/* ----------------------------------------
   SOCIAL GRID
---------------------------------------- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-item {
    padding: 12px;
    border: 1px solid #ff1ea8;
    border-radius: 999px;

    text-align: center;
    text-decoration: none;

    font-size: 0.9rem;
    color: #ff1ea8;

    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);

    transition: 0.25s;
}

.social-item:hover {
    background: #ff1ea8;
    color: black;
}

/* ----------------------------------------
   DESKTOP VIEW
---------------------------------------- */
@media (min-width: 768px) {
    body {
        justify-content: center;
        align-items: center;
    }

    .phone-frame {
        max-width: 420px;
        max-height: 820px;
        border-radius: 32px;
    }
}
