/* Monkeys In Machines - Custom Styles */

/* Body background */
body {
    background-image: url("/images/background.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    min-height: 100vh;
}

/* Navbar styling */
.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-nav .nav-link {
    font-size: 18px;
    color: #333 !important;
    margin-left: 15px;
}

.navbar-nav .nav-link:hover {
    color: #000 !important;
}

/* Album cards */
.album-card {
    margin-bottom: 2rem;
    transition: transform 0.2s ease;
}

.album-card:hover {
    transform: translateY(-5px);
}

.album-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Player section */
.player-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Waveform container */
#waveform {
    width: 100%;
    height: 128px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Player controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.player-controls button {
    border: none;
    background: #333;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.player-controls button:hover {
    background: #555;
}

.player-controls button.active {
    background: #007bff;
}

/* Time display */
.time-display {
    font-family: monospace;
    font-size: 0.9rem;
    color: #666;
}

/* Volume control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-control input[type="range"] {
    width: 100px;
}

/* Track list */
.track-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.track-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.track-list li:hover {
    background: #f8f9fa;
}

.track-list li.active {
    background: #e3f2fd;
    font-weight: 600;
}

.track-list li .track-number {
    width: 30px;
    color: #999;
    font-size: 0.85rem;
}

.track-list li .track-title {
    flex: 1;
}

.track-list li .track-share {
    color: #999;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}

.track-list li .track-share:hover {
    opacity: 1;
    color: #007bff;
}

.track-list li .track-duration {
    color: #999;
    font-size: 0.85rem;
    font-family: monospace;
}

.track-list li .playing-indicator {
    color: #007bff;
    margin-right: 0.5rem;
    display: none;
}

.track-list li.active .playing-indicator {
    display: inline;
}

/* Now playing info */
.now-playing {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.now-playing .track-name {
    font-weight: 600;
}

/* Album artwork on player */
.player-artwork {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    padding: 2rem 0;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        font-size: 16px;
        margin-left: 0;
    }
    
    .player-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .volume-control {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .player-artwork {
        max-width: 80%;
        width: 80%;
    }
    
    .player-container {
        border-radius: 0;
        box-shadow: none;
        margin-left: -12px;
        margin-right: -12px;
        padding: 1rem;
    }
    
    .content-card {
        border-radius: 0;
        box-shadow: none;
    }
}

/* Content card background */
.content-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Home page album grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Missing artwork placeholder */
.placeholder-artwork {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    aspect-ratio: 1;
    border-radius: 8px;
}
