/**
 * All To Ash - Band Website Styles
 * Dark, edgy rock/metal aesthetic with responsive design
 */

/* CSS Variables */
:root {
    --bg-dark: #0a0a0a;
    --bg-medium: #141414;
    --bg-light: #1a1a1a;
    --bg-card: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #999999;
    --text-muted: #666666;
    --accent-red: #8b0000;
    --accent-red-light: #a52a2a;
    --accent-red-glow: rgba(139, 0, 0, 0.3);
    --border-color: #333333;
    --border-light: #444444;
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Scrolling Banner */
.scrolling-banner {
    width: 100%;
    overflow: hidden;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.scrolling-banner-track {
    display: flex;
    width: max-content;
    animation: scroll-banner 80s linear infinite;
}

.scrolling-banner-track img {
    height: 80px;
    width: auto;
    flex-shrink: 0;
}

@keyframes scroll-banner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header / Logo */
.header {
    text-align: center;
    padding: 30px 0;
}

.logo {
    max-width: 100%;
    width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 20px var(--shadow-dark));
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Slideshow Section */
.slideshow-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-dark);
    box-sizing: border-box;
}

.slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-images {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-style: italic;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: var(--bg-medium);
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.slideshow-dot.active,
.slideshow-dot:hover {
    background: var(--accent-red);
}

/* Player Section */
.player-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.player-container {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow-dark);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.player-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.player-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wip-toggle-btn,
.lyrics-toggle-btn {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hide mobile buttons on desktop */
.player-mobile-buttons {
    display: none;
}

.wip-toggle-btn:hover,
.lyrics-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.wip-icon,
.lyrics-icon {
    font-size: 1.1rem;
}

/* Current Track Display */
.current-track {
    text-align: center;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-medium);
    border-radius: 6px;
}

.track-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.track-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: var(--bg-medium);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-light));
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.control-btn {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--bg-light);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.control-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.control-btn.play-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
    border: none;
    color: white;
}

.control-btn.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.control-btn.play-btn svg {
    width: 28px;
    height: 28px;
}

/* Volume Control */
.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.volume-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.volume-btn:hover {
    color: var(--text-primary);
}

.volume-btn svg {
    width: 24px;
    height: 24px;
}

.volume-slider {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-medium);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-red);
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-red);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Playlist */
.playlist {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 6px;
    background: var(--bg-medium);
}

.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.playlist::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item:hover {
    background: var(--bg-light);
}

.playlist-item.active {
    background: var(--accent-red-glow);
    border-left: 3px solid var(--accent-red);
}

.playlist-item-number {
    width: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.playlist-item-title {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.playlist-item-download {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.playlist-item-download:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.playlist-item-download svg {
    width: 14px;
    height: 14px;
}

.no-songs {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* WIP Modal */
.wip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wip-modal.active {
    display: flex;
}

.wip-modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px var(--shadow-dark);
}

.wip-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.wip-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-red-light);
}

.wip-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.wip-close-btn:hover {
    color: var(--text-primary);
}

.wip-description {
    padding: 20px 25px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    border-bottom: 1px solid var(--border-color);
}

.wip-playlist {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-medium);
}

.wip-back-btn {
    margin: 20px 25px;
    padding: 12px 25px;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wip-back-btn:hover {
    background: var(--bg-light);
    border-color: var(--border-light);
}

/* Lyrics Modal */
.lyrics-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lyrics-modal.active {
    display: flex;
}

.lyrics-modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px var(--shadow-dark);
}

.lyrics-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.lyrics-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-red-light);
}

.lyrics-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.lyrics-close-btn:hover {
    color: var(--text-primary);
}

.lyrics-list {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-medium);
}

.lyrics-list-item {
    display: block;
    padding: 15px 25px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.lyrics-list-item:hover {
    background: var(--bg-light);
}

.lyrics-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: var(--bg-medium);
}

.lyrics-content pre {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.lyrics-back-btn {
    margin: 20px 25px;
    padding: 12px 25px;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lyrics-back-btn:hover {
    background: var(--bg-light);
    border-color: var(--border-light);
}

/* Band Info Section */
.band-info {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px var(--shadow-dark);
}

.band-description {
    margin-bottom: 25px;
}

.band-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.band-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.download-info {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-medium);
    border-radius: 6px;
}

.download-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.download-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.download-all-btn svg {
    width: 20px;
    height: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    background: var(--bg-medium);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.social-link img {
    width: 24px;
    height: 24px;
}

.social-link span {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */

/* Tablet and up */
@media (min-width: 768px) {
    .scrolling-banner-track img {
        height: 100px;
    }

    .container {
        padding: 30px;
    }

    .header {
        padding: 40px 0;
    }

    .logo {
        width: 450px;
    }

    .main-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }

    .player-container {
        padding: 30px;
    }

    .player-title {
        font-size: 1.75rem;
    }

    .control-btn {
        width: 50px;
        height: 50px;
    }

    .control-btn.play-btn {
        width: 65px;
        height: 65px;
    }

    .social-links {
        gap: 40px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .scrolling-banner-track img {
        height: 120px;
    }

    .container {
        padding: 40px;
    }

    .logo {
        width: 500px;
    }

    .slideshow-container {
        max-width: 500px;
    }

    .player-container {
        padding: 35px;
    }

    .playlist {
        max-height: 350px;
    }

    .band-info {
        padding: 40px;
    }
}

/* Wide displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .slideshow-container {
        max-width: 550px;
    }
}

/* Mobile - All phones */
@media (max-width: 767px) {
    .main-content {
        max-width: 100%;
        overflow: hidden;
    }

    .slideshow-section,
    .player-section {
        max-width: 100%;
        overflow: hidden;
    }

    .slideshow-container {
        max-width: 100%;
    }

    .player-container {
        max-width: 100%;
        padding: 15px;
    }

    /* Hide desktop buttons, show mobile buttons below playlist */
    .player-header-buttons {
        display: none;
    }

    .player-mobile-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .player-mobile-buttons .wip-toggle-btn,
    .player-mobile-buttons .lyrics-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile - Small screens */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .player-container {
        padding: 12px;
    }

    .player-header {
        flex-direction: column;
        text-align: center;
    }

    .player-title {
        font-size: 1.25rem;
    }

    .track-name {
        font-size: 1rem;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .control-btn.play-btn {
        width: 55px;
        height: 55px;
    }

    .player-controls {
        gap: 10px;
    }

    .volume-slider {
        width: 100px;
    }

    .playlist-item {
        padding: 10px 12px;
    }

    .playlist-item-title {
        font-size: 0.85rem;
    }

    .playlist-item-download {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .social-link {
        justify-content: center;
    }

    .band-info {
        padding: 20px;
    }

    .download-all-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .control-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .playlist-item {
        min-height: 50px;
    }

    .playlist-item-download {
        min-height: 40px;
        padding: 8px 15px;
    }
}

/* Animation for loading */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    animation: fadeIn 0.5s ease;
}

/* Prevent text selection on controls */
.control-btn,
.wip-toggle-btn,
.playlist-item,
.slideshow-dot {
    user-select: none;
    -webkit-user-select: none;
}
