/* Desktop Styles 2050 Theme */

:root {
    --desktop-bg: #0a0a1a;
    --start-bg: rgba(15, 15, 35, 0.95);
    --window-bg: rgba(20, 20, 40, 0.95);
    --text-color: #e0e0ff;
    --accent-color: #00b4d8;
    --hover-color: #00d5ff;
    --icon-size: 64px;
    --window-border: 1px solid rgba(0, 180, 216, 0.3);
    --glass-effect: blur(10px);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.desktop {
    font-family: 'Segoe UI', sans-serif;
    background: var(--desktop-bg);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    cursor: default;
}

/* Desktop Background */
.desktop-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a, #1a1a3a);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    z-index: -1;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Desktop Icons */
.desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--icon-size));
    gap: 20px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.desktop-icon {
    width: var(--icon-size);
    height: var(--icon-size);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.desktop-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
}

.desktop-icon span {
    font-size: 12px;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Start Button */
.start-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

#start-btn {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    border: none;
    background: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
}

#start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.7);
}

#start-btn img {
    width: 30px;
    height: 30px;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 400px;
    background: var(--start-bg);
    border-radius: 20px;
    backdrop-filter: var(--glass-effect);
    border: var(--window-border);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.start-menu.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.start-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.start-header img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.start-search {
    margin-bottom: 20px;
}

.start-search input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
}

.start-apps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.start-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.start-app:hover {
    background: rgba(255,255,255,0.1);
}

.start-app img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
}

.start-app span {
    font-size: 12px;
    text-align: center;
}

/* AI Widget */
.ai-widget {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.ai-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ai-header img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 15px;
}

.ai-chat {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 10px;
}

.ai-messages {
    height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 5px;
}

.ai-message {
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 10px;
    max-width: 80%;
}

.ai-message.user {
    background: rgba(0, 180, 216, 0.3);
    margin-left: auto;
}

.ai-message.bot {
    background: rgba(255,255,255,0.1);
}

.ai-input {
    display: flex;
    gap: 10px;
}

.ai-input input {
    flex: 1;
    padding: 8px;
    border-radius: 5px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
}

.ai-input button {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: none;
    background: var(--accent-color);
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s ease;
}

.ai-input button:hover {
    background: var(--hover-color);
}

.ai-voice.listening {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: var(--start-bg);
    border: var(--window-border);
    border-radius: 10px;
    padding: 5px;
    backdrop-filter: var(--glass-effect);
    z-index: 1000;
}

.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.context-menu-item:hover {
    background: rgba(255,255,255,0.1);
}
