/* ================================
   App Windows Styles - FULLSCREEN IN COMPUTER
   ================================ */

/* Base Window Style - FULLSCREEN */
.app-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--window-bg);
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 200;
}

.app-window.active {
    display: flex;
    animation: windowOpen 0.2s ease-out;
}

@keyframes windowOpen {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Window Title Bar */
.window-title-bar {
    height: 32px;
    min-height: 32px;
    background: var(--window-stripe);
    background-size: 100% 100%;
    border-bottom: 2px solid #000;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
}

.window-controls {
    display: flex;
    gap: 8px;
    z-index: 1;
}

.window-controls .control {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #000;
    cursor: pointer;
    transition: transform 0.1s;
}

.window-controls .control:hover {
    transform: scale(1.2);
}

.window-controls .close {
    background: #ff5f57;
}

.window-controls .minimize {
    background: #ffbd2e;
}

.window-controls .maximize {
    background: #28ca42;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 16px;
    background: #fff;
    padding: 2px 15px;
}

/* Window Content - FILLS REMAINING SPACE */
.window-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: #fff;
    font-size: 18px;
}

/* ========== APP SPECIFIC STYLES ========== */

/* Videos App */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.video-item {
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.video-item:hover {
    transform: scale(1.05);
    border-color: #000;
}

.video-thumbnail {
    width: 100%;
    height: 80px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
}

.video-thumbnail::after {
    content: '▶';
    position: absolute;
    font-size: 24px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-title {
    padding: 10px;
    font-size: 14px;
    background: #f0f0f0;
    text-align: center;
    font-weight: bold;
}

/* Video Player */
.video-player {
    display: none;
}

.video-player.active {
    display: block;
}

.video-player iframe {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 8px;
}

.video-back-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-system);
    font-size: 16px;
    border-radius: 5px;
}

.video-back-btn:hover {
    background: #333;
}

/* Email/Form App */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #000;
    font-family: var(--font-system);
    font-size: 18px;
    border-radius: 5px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.submit-btn {
    padding: 15px 30px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-system);
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #333;
}

.form-success {
    display: none;
    text-align: center;
    padding: 30px;
    color: #28ca42;
    font-size: 24px;
}

/* Contacts App */
.contacts-list {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    background: #f0f0f0;
}

.contact-avatar {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.contact-info p {
    font-size: 14px;
    color: #666;
}

/* Calendar App */
.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-event {
    background: #f9f9f9;
    border-left: 5px solid #ff6b6b;
    padding: 15px;
    border-radius: 0 8px 8px 0;
}

.calendar-event h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.calendar-event .event-date {
    font-size: 16px;
    color: #666;
}

.calendar-event .event-location {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

/* Store App */
.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.store-item {
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.store-item:hover {
    border-color: #000;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.store-image {
    width: 100%;
    height: 80px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.store-info {
    padding: 12px;
    text-align: center;
}

.store-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.store-info .price {
    font-weight: bold;
    font-size: 18px;
    color: #ff6b6b;
}

.buy-btn {
    width: 100%;
    padding: 10px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    font-family: var(--font-system);
    font-size: 14px;
    transition: background 0.2s;
    border-radius: 5px;
}

.buy-btn:hover {
    background: #333;
}

/* Photos App */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.photo-item {
    aspect-ratio: 1;
    background: #ddd;
    border: 3px solid #fff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s;
    border-radius: 5px;
}

.photo-item:hover {
    transform: scale(1.1);
    z-index: 1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-btn-trigger {
    grid-column: span 4;
    padding: 15px;
    background: linear-gradient(180deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    border: 2px solid #cc4444;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-system);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
}

.camera-btn-trigger:hover {
    transform: scale(1.02);
}

/* Games App */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.game-item {
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.game-item:hover {
    background: #fff;
    border-color: #000;
    transform: scale(1.05);
}

.game-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.game-title {
    font-size: 16px;
    font-weight: bold;
}

.game-embed {
    display: none;
}

.game-embed.active {
    display: block;
}

.game-embed canvas {
    width: 100%;
    height: 280px;
    background: #000;
    border-radius: 8px;
}

/* Map App */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Music App */
.music-embed {
    width: 100%;
    min-height: 300px;
}

.music-embed iframe {
    width: 100%;
    border-radius: 10px;
}

/* Partners App */
.partner-embed {
    width: 100%;
    height: 100%;
}

.partner-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 8px;
}

.music-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.platform-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 15px;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-system);
    font-size: 14px;
    transition: transform 0.2s;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.platform-btn:hover {
    transform: scale(1.05);
}

.platform-btn.spotify {
    background: #1db954;
}

.platform-btn.apple {
    background: linear-gradient(180deg, #fa57c1, #b14bf4);
}

.platform-btn.amazon {
    background: #25d1da;
    color: #000;
}

.platform-btn.youtube {
    background: #ff0000;
}

/* Social Links Window */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 15px;
    background: #f5f5f5;
    border-radius: 10px;
    text-decoration: none;
    color: #000;
    transition: all 0.2s;
}

.social-link:hover {
    transform: scale(1.05);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.social-link.twitter {
    background: #000;
    color: #fff;
}

.social-link.discord {
    background: #5865f2;
    color: #fff;
}

.social-link.youtube {
    background: #ff0000;
    color: #fff;
}

.social-link.tiktok {
    background: #000;
    color: #fff;
}

.social-link.spotify {
    background: #1db954;
    color: #fff;
}

.social-icon {
    font-size: 40px;
}

.social-name {
    font-size: 16px;
    font-weight: bold;
}

/* Camera Modal */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.camera-modal.active {
    display: flex;
}

.camera-window {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    max-width: 450px;
    width: 90%;
}

.camera-content {
    padding: 20px;
}

.camera-content video {
    width: 100%;
    border-radius: 8px;
    background: #000;
}

.camera-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.camera-btn {
    padding: 12px 25px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-system);
    font-size: 16px;
    transition: transform 0.2s;
}

.camera-btn:hover {
    transform: scale(1.05);
}

.camera-btn.secondary {
    background: #999;
}