/* ====================================
   PLAYGROUND SECTION STYLES
   ==================================== */

.playground {
    background: #000;
    position: relative;
    overflow: hidden;
}

.playground__simulator {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

.iphone-simulator {
    position: relative;
    aspect-ratio: 390 / 844;
    background: #000;
    border-radius: 50px;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.1),
        inset 0 0 5px rgba(0, 0, 0, 0.5);
    padding: 14px;
    border: 2px solid #333;
}

.iphone-container {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.volume-up {
    position: absolute;
    top: 120px;
    left: -4px;
    width: 2px;
    height: 30px;
    background: #444;
    border-radius: 2px 0 0 2px;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 38px;
    position: relative;
    overflow: hidden;
}

.iphone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.status-bar {
    position: absolute;
    top: 14px;
    left: 20px;
    right: 20px;
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

.status-bar__time {
    font-family: 'SF Pro Text', sans-serif;
}

.status-bar__indicators {
    display: flex;
    gap: 5px;
}

.home-screen {
    width: 100%;
    height: 100%;
    position: relative;
}

.wallpaper {
    width: 100%;
    height: 100%;
    background: url('https://i.pinimg.com/originals/a7/51/AE/a751AE539145873760a2eadb9c073933.jpg') no-repeat center center/cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.app-grid {
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    bottom: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 15px;
    z-index: 2;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.app-icon:hover {
    transform: scale(1.1);
}

.app-icon i {
    font-size: 36px;
    color: #fff;
    background: linear-gradient(135deg, #5A98E1, #3A6EA5);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.app-label {
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.dock {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 3;
}

.dock-app {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 135px;
    height: 5px;
    background: #fff;
    border-radius: 5px;
    z-index: 4;
}

/* App Modal */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-modal.active {
    opacity: 1;
    visibility: visible;
}

.app-modal__content {
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.app-modal__header {
    padding: 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.app-modal__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
}

.app-modal__close:hover {
    background: #e0e0e0;
    color: #333;
}

.app-modal__body {
    padding: 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-height: 60vh;
    overflow-y: auto;
}

/* Animate Float */
@keyframes float-animation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float-animation 6s ease-in-out infinite;
}
