/* Contenido para el archivo: /css/style.css */

:root {
    --dark-blue: #1a2333;
    --accent-orange: #f39c12;
    --accent-orange-light: #ffb74d;
    --light-text: #f5f5f5;
    --dark-wood: #2c1e17;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, rgba(61, 46, 38, 0.85) 0%, rgba(44, 30, 23, 0.9) 50%, rgba(18, 18, 18, 0.95) 100%);
    color: var(--light-text);
    min-height: 100vh;
    overflow-x: hidden;
}

#artwork-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.5);
    transform: scale(1.1);
    transition: background-image 0.5s ease-in-out;
}

#visualizer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.header, .main-player, .tabs-section, .footer {
    position: relative;
    z-index: 1;
}

.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    border-bottom: 1px solid rgba(243, 156, 18, 0.2);
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-orange);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin: 0;
}

.tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.install-btn {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-orange-light));
    color: var(--dark-blue);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.main-player {
    padding: 2rem 0;
}

.player-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.player-artwork {
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(26, 35, 51, 0.3), rgba(44, 62, 80, 0.3));
    border: 3px solid rgba(243, 156, 18, 0.3);
    transition: all 0.5s ease;
}

.player-artwork.playing {
    border-color: var(--accent-orange);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
    transition: all 0.5s ease;
}

.player-artwork img.logo-mode {
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 35, 51, 0.8), rgba(44, 62, 80, 0.8));
    backdrop-filter: blur(10px);
}

.player-artwork img.cover-mode {
    padding: 0;
    background: none;
    backdrop-filter: none;
}

.metadata {
    margin-bottom: 2rem;
}

.song-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.song-artist {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 0, 0, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 0, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-orange-light));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.5);
}

.play-btn svg {
    width: 30px;
    height: 30px;
    fill: var(--dark-blue);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-volume {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-volume:hover {
    background: rgba(243, 156, 18, 0.2);
    border-color: var(--accent-orange);
}

.btn-volume svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.volume-slider {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-orange);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-orange);
    border-radius: 50%;
    cursor: pointer;
}

.tabs-section {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-orange-light));
    color: var(--dark-blue);
    border-color: var(--accent-orange);
}

.tab-content {
    max-width: 800px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel h3 {
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.song-history {
    display: grid;
    gap: 1rem;
}

.song-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.song-item:hover {
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
}

.song-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.song-info {
    flex: 1;
    text-align: left;
}

.song-info .title {
    font-weight: 600;
    color: white;
    margin-bottom: 0.3rem;
}

.song-info .artist {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.song-time {
    color: var(--accent-orange);
    font-size: 0.8rem;
    font-weight: 500;
}

.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    font-style: italic;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.share-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: rgba(243, 156, 18, 0.1);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-orange);
}

.info-content {
    text-align: center;
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-orange);
    color: var(--dark-blue);
}

.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-orange-light);
}

@media (max-width: 768px) {
    .player-artwork { width: 250px; height: 250px; }
    .player-controls { gap: 1rem; }
}

@media (max-width: 480px) {
    .player-artwork { width: 200px; height: 200px; }
    .song-title { font-size: 1.2rem; }
    .play-btn { width: 70px; height: 70px; }
    .play-btn svg { width: 26px; height: 26px; }
}