/* Desktop Phone Frame - Symulacja telefonu na dużych ekranach */

/* Mobile - ramka niewidoczna, normalne wyświetlanie */
.phone-frame {
    width: 100%;
    height: 100%;
}

.phone-screen {
    width: 100%;
    height: 100%;
}

.phone-button-right {
    display: none;
}

/* Tylko dla ekranów szerszych niż 768px (desktop/tablet landscape) */
@media (min-width: 769px) {
    /* Nadpisanie stylów body z style.css */
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
        overflow: visible !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 100vh !important;
        padding: 20px !important;
    }
    
    /* Nadpisanie pozycjonowania dla ramki telefonu */
    .ad-banner {
        height: 135px !important; /* 15% z 900px */
    }
    
    .ad-banner-image {
        height: 135px !important;
    }
    
    .menu-viewer {
        top: 135px !important; /* Zamiast 15vh */
        height: calc(100% - 135px) !important; /* Reszta przestrzeni */
    }
    
    /* Modal z podstronami - pod banerem */
    .page-modal {
        top: 135px !important; /* Pod banerem (15% z 900px) */
        height: calc(100% - 135px) !important; /* Reszta przestrzeni */
    }
    
    /* Ramka telefonu */
    .phone-frame {
        position: relative;
        width: 400px;
        height: 90vh;
        max-height: 900px;
        background: #1f1f1f;
        border-radius: 50px;
        box-shadow: 
            0 0 0 12px #2a2a2a,
            0 0 0 14px #1a1a1a,
            0 20px 60px rgba(0, 0, 0, 0.5),
            inset 0 0 6px rgba(255, 255, 255, 0.1);
        padding: 12px;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
    }
    
    /* Notch (wycięcie na kamerę) */
    .phone-frame::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        height: 30px;
        background: #000;
        border-radius: 0 0 20px 20px;
        z-index: 1000;
    }
    
    /* Kontener na zawartość strony */
    .phone-screen {
        flex: 1;
        background: #000;
        border-radius: 38px;
        overflow: hidden;
        position: relative;
        width: 100%;
        height: 100%;
        /* Transform tworzy nowy stacking context - fixed elementy będą względem tego kontenera */
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }
    
    /* Przyciski boczne telefonu */
    .phone-frame::after {
        content: '';
        position: absolute;
        left: -4px;
        top: 120px;
        width: 4px;
        height: 60px;
        background: #2a2a2a;
        border-radius: 2px 0 0 2px;
    }
    
    .phone-button-right {
        display: block;
        position: absolute;
        right: -4px;
        top: 140px;
        width: 4px;
        height: 80px;
        background: #2a2a2a;
        border-radius: 0 2px 2px 0;
    }
}

/* Dla bardzo dużych ekranów (1920px+) - większa ramka */
@media (min-width: 1920px) {
    .phone-frame {
        width: 450px;
        max-height: 900px;
    }
}
