/* AZANA Launcher v1.0 - Estilo Futurista Ligero (ES5/CSS3) */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #050508;
    color: #e0e0e0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Pantalla de Carga */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.boot-text {
    color: #00ffcc;
    font-family: monospace;
    font-size: 1.5rem;
    letter-spacing: 2px;
    -webkit-animation: pulse 1s infinite alternate;
    animation: pulse 1s infinite alternate;
}

/* Layout Principal */
.launcher-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    opacity: 0; /* Oculto hasta que bootea */
    transition: opacity 1s ease;
}

/* HUD Superior */
.hud-top {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    font-size: 0.9rem;
    color: #88c0d0;
    z-index: 10;
}

.hud-center {
    font-weight: bold;
    font-size: 1.2rem;
    color: #eceff4;
}

/* Avatar Central (AZANA Face) */
.avatar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ai-core {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.eye {
    width: 30px;
    height: 10px;
    background-color: #00ffcc;
    border-radius: 10px;
    position: absolute;
    top: 40px;
    box-shadow: 0 0 15px #00ffcc;
    transition: height 0.1s;
}

.left-eye { left: 20px; }
.right-eye { right: 20px; }

.mouth {
    width: 40px;
    height: 4px;
    background-color: #00ffcc;
    border-radius: 4px;
    position: absolute;
    bottom: 40px;
    box-shadow: 0 0 10px #00ffcc;
    transition: all 0.1s;
}

/* Estados de la Cara */
.state-blinking .eye { height: 2px; }
.state-speaking .mouth { 
    height: 20px; 
    width: 30px; 
    border-radius: 15px; 
}
.state-thinking .eye { 
    height: 4px; 
    background-color: #b48ead;
    box-shadow: 0 0 15px #b48ead;
}
.state-thinking .mouth {
    width: 20px;
    background-color: #b48ead;
    box-shadow: 0 0 10px #b48ead;
}

.avatar-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,204,0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    -webkit-animation: breathe 4s infinite ease-in-out;
    animation: breathe 4s infinite ease-in-out;
}

.status-text {
    margin-top: 50px;
    color: #4c566a;
    font-size: 0.8rem;
    letter-spacing: 3px;
    z-index: 2;
}

/* Chat Overlay */
.chat-overlay {
    height: 150px;
    padding: 10px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.msg {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.3;
}

.msg.user {
    align-self: flex-end;
    background-color: rgba(255, 255, 255, 0.1);
    color: #eceff4;
    border-bottom-right-radius: 2px;
}

.msg.azana {
    align-self: flex-start;
    background-color: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-bottom-left-radius: 2px;
}

/* Controles Inferiores */
.hud-bottom {
    padding: 15px;
    background-color: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(0, 255, 204, 0.2);
}

.input-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-bar input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.input-bar input:focus {
    border-color: #00ffcc;
}

.action-btn {
    background-color: #00ffcc;
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 0 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
}

.action-btn.mic {
    border-radius: 50%;
    width: 40px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.mic.listening {
    background-color: #bf616a;
    border-color: #bf616a;
    -webkit-animation: pulse 1s infinite alternate;
    animation: pulse 1s infinite alternate;
}

.skills-dock {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.skill-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: #eceff4;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 0.8rem;
    cursor: pointer;
}

.skill-btn:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.skill-btn.danger {
    color: #bf616a;
    border-color: rgba(191, 97, 106, 0.3);
}

/* Animaciones */
@-webkit-keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}
@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@-webkit-keyframes breathe {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}
@keyframes breathe {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}
