/* ========================================
   MOBILE FIRST CSS - Valkora Music
   ======================================== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Mobile (320px+) */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 15px;
    color: #333;
    font-size: 14px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* Header Mobile */
.header {
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Legal Notice Mobile */
.legal-notice {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #f39c12;
}

.legal-notice h3 {
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 1rem;
}

.legal-notice p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.9rem;
}

.legal-notice strong {
    color: #e74c3c;
    font-weight: 600;
}

.thanks {
    font-style: italic;
    color: #667eea;
    font-weight: 500;
}

.thanks a {
    color: #764ba2;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.thanks a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Sections Mobile */
section {
    margin-bottom: 30px;
}

section h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-desc {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Albums Grid Mobile (1 colonna) */
.albums-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.album-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.album-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.album-card h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.track-count {
    color: #888;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.btn-download {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-size: 0.9rem;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-icon {
    margin-right: 5px;
}

/* Tracks Section Mobile con Accordion */
.track-album {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    user-select: none;
    transition: background 0.3s ease;
}

.album-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.album-title {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

.toggle-icon {
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.tracks-list.collapsed {
    max-height: 0;
    padding: 0 15px;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.track-item:hover {
    background: #e9ecef;
}

.track-name {
    color: #333;
    font-weight: 500;
    flex: 1;
    font-size: 0.9rem;
}

.btn-track {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.btn-track:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* Footer Mobile */
.footer {
    text-align: center;
    color: #fff;
    padding: 20px 15px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.footer p {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========================================
   TABLET (min-width: 480px)
   ======================================== */
@media (min-width: 480px) {
    body {
        font-size: 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .album-card h3 {
        font-size: 1.4rem;
    }

    .btn-download {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .album-title {
        font-size: 1.3rem;
    }

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

    .btn-track {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ========================================
   TABLET LARGE (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }

    .container {
        max-width: 750px;
    }

    .header {
        padding: 25px 20px;
        margin-bottom: 35px;
    }

    .header h1 {
        font-size: 2.3rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .legal-notice {
        padding: 20px;
    }

    .legal-notice h3 {
        font-size: 1.2rem;
    }

    .legal-notice p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .section-desc {
        font-size: 1.05rem;
    }

    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .track-album {
        margin-bottom: 20px;
    }

    .album-header {
        padding: 18px 20px;
    }

    .album-title {
        font-size: 1.4rem;
    }

    .tracks-list {
        padding: 20px;
        gap: 10px;
    }

    .tracks-list.collapsed {
        padding: 0 20px;
    }

    .track-item {
        padding: 14px;
    }
}

/* ========================================
   DESKTOP (min-width: 1024px)
   ======================================== */
@media (min-width: 1024px) {
    .container {
        max-width: 1000px;
    }

    .header {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .legal-notice {
        padding: 25px;
    }

    section h2 {
        font-size: 2rem;
    }

    .albums-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .album-card {
        padding: 30px 20px;
    }

    .album-icon {
        font-size: 3rem;
    }

    .album-card h3 {
        font-size: 1.5rem;
    }

    .track-count {
        font-size: 0.95rem;
    }

    .btn-download {
        padding: 12px 30px;
    }

    .track-album {
        margin-bottom: 25px;
    }

    .album-header {
        padding: 20px 25px;
    }

    .album-title {
        font-size: 1.5rem;
    }

    .tracks-list {
        padding: 25px;
    }

    .tracks-list.collapsed {
        padding: 0 25px;
    }

    .track-item {
        padding: 15px;
    }

    .footer {
        padding: 30px 20px;
        margin-top: 50px;
    }

    .footer p {
        font-size: 1rem;
    }

    .footer-note {
        font-size: 0.9rem;
    }
}

/* ========================================
   DESKTOP LARGE (min-width: 1400px)
   ======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .albums-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   ANIMATIONS & SMOOTH SCROLLING
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

