/* ============================================
   XONIQ 2.0 - Colores Turquesa/Gris Oscuro
   ============================================ */

:root {
    /* Colores principales */
    --turquoise-primary: #00CED1;
    --turquoise-light: #40E0D0;
    --turquoise-dark: #008B8B;
    
    --gray-darker: #1a1a1a;
    --gray-dark: #2d2d2d;
    --gray-medium: #404040;
    --gray-light: #606060;
    
    /* Colores funcionales */
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
    
    /* Texto */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--gray-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    width: 100%;
    min-height: 100vh;
}

/* ============================================
   LOGIN VIEW
   ============================================ */

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-logo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--turquoise-primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
}

.btn-login {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-phone {
    background: var(--turquoise-primary);
    color: white;
}

.btn-google {
    background: white;
    color: #333;
}

.btn-email {
    background: var(--gray-medium);
    color: white;
}

.songs-count {
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============================================
   PLAYER VIEW (Hello World por ahora)
   ============================================ */

.player-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1rem;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.player-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--turquoise-primary);
}

.hello-world {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--turquoise-primary);
}

/* ============================================
   UTILIDADES
   ============================================ */

.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}


/* ============================================
   DEBUG CONSOLE (TEMPORAL PARA iOS)
   ============================================ */

#debugConsole {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    font-family: monospace;
    font-size: 10px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    border-top: 2px solid #00ff00;
}



/* ============================================
   INPUT FIELDS
   ============================================ */

.input-field {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-medium);
    background: var(--gray-dark);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--turquoise-primary);
}

.input-field::placeholder {
    color: var(--text-secondary);
}


/* ============================================
   PLAYER FUNCIONAL
   ============================================ */

.player-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--turquoise-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.player-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--turquoise-primary);
    letter-spacing: 2px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--gray-medium);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:active {
    transform: scale(0.95);
}

/* Song Cover */
.song-cover {
    width: 100%;
    aspect-ratio: 1;
    max-width: 350px;
    margin: 2rem auto;
    background: var(--gray-dark);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Song Info */
.song-info {
    text-align: center;
    margin-bottom: 2rem;
}

.song-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.song-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Progress */
.progress-container {
    margin-bottom: 2rem;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-medium);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--turquoise-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

/* Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.btn-control {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--gray-medium);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play {
    width: 80px;
    height: 80px;
    background: var(--turquoise-primary);
    font-size: 2rem;
}

.btn-control:active {
    transform: scale(0.95);
}

/* Secondary Controls */
.secondary-controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
}

.btn-secondary {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gray-medium);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:active {
    transform: scale(0.95);
}

.ready-indicator {
    font-size: 1.5rem;
}



/* Ocultar debug en producción */
#debugConsole {
    display: none !important;
}