/* Phone */
.phone-container {
    width: 375px;
    height: 720px;
    background: linear-gradient(145deg, #0a0a0a 0%, #1d1d1d 25%, #232323 50%, #161616 75%, #0f0f0f 100%);
    border: 2px solid #a8a8a8;
    border-radius: 40px;
    padding: 8px;
    position: relative;

    /* Volume Up Button */
    &::before {
        content: '';
        position: absolute;
        top: 120px;
        right: -4px;
        width: 3px;
        height: 30px;
        background: linear-gradient(145deg, #0a0a0a 0%, #1d1d1d 25%, #232323 50%, #161616 75%, #0f0f0f 100%);
        border-radius: 2px;
        box-shadow:
            inset 0 1px 1px rgba(255, 255, 255, 0.1),
            inset 0 -1px 1px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }

    /* Volume Down Button */
    &::after {
        content: '';
        position: absolute;
        top: 160px;
        right: -4px;
        width: 3px;
        height: 30px;
        background: linear-gradient(145deg, #0a0a0a 0%, #1d1d1d 25%, #232323 50%, #161616 75%, #0f0f0f 100%);
        border-radius: 2px;
        box-shadow:
            inset 0 1px 1px rgba(255, 255, 255, 0.1),
            inset 0 -1px 1px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }

    /* Power Button */
    .power-button {
        position: absolute;
        top: 200px;
        right: -4px;
        width: 3px;
        height: 40px;
        background: linear-gradient(145deg, #0a0a0a 0%, #1d1d1d 25%, #232323 50%, #161616 75%, #0f0f0f 100%);
        border-radius: 2px;
        box-shadow:
            inset 0 1px 1px rgba(255, 255, 255, 0.1),
            inset 0 -1px 1px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }

    /* Mute Switch */
    .mute-switch {
        position: absolute;
        top: 100px;
        left: -4px;
        width: 3px;
        height: 20px;
        background: linear-gradient(145deg, #0a0a0a 0%, #1d1d1d 25%, #232323 50%, #161616 75%, #0f0f0f 100%);
        border-radius: 2px;
        box-shadow:
            inset 0 1px 1px rgba(255, 255, 255, 0.1),
            inset 0 -1px 1px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }

    /* Action Button */
    .action-button {
        position: absolute;
        top: 140px;
        left: -4px;
        width: 3px;
        height: 20px;
        background: linear-gradient(145deg, #0a0a0a 0%, #1d1d1d 25%, #232323 50%, #161616 75%, #0f0f0f 100%);
        border-radius: 2px;
        box-shadow:
            inset 0 1px 1px rgba(255, 255, 255, 0.1),
            inset 0 -1px 1px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
    color: var(--text-primary);
    box-shadow: 0 -2px 8px 0 rgba(0, 0, 0, 0.7), 0 2px 8px 0 rgba(0, 0, 0, 0.05);
    border-top: 3px solid #0f0f0f;

    &::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 142px;
        height: 32px;
        background: #000000;
        border-radius: 16px;
        z-index: 1001;
        display: none;
    }

    &.dynamic-island::after {
        display: block;
    }
}

.dynamic-island-content {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 142px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1002;

    .speaker {
        width: 64px;
        height: 6px;
        background: #333333;
        border-radius: 3px;
        position: relative;

        &::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 52px;
            height: 2px;
            background: #000000;
            border-radius: 1px;
        }
    }

    .camera {
        width: 12px;
        height: 12px;
        background: #333333;
        border-radius: 50%;
        border: 1px solid #000000;
        position: relative;

        &::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 6px;
            height: 6px;
            background: #000000;
            border-radius: 50%;
        }
    }
}

/* Home Indicator */
.home-indicator-container {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    cursor: pointer;
    z-index: 100;
    background: var(--status-bar-bg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);

    &:hover .home-indicator {
        background: var(--text-primary);
        opacity: 0.5;
        transform: scaleY(1.2);
    }

    .home-indicator {
        width: 134px;
        height: 5px;
        background: var(--text-primary);
        opacity: 0.3;
        border-radius: 3px;
        transition: all 0.2s ease;
    }
}