/* ============================================
   MODERN JAZZ-FUSION ALBUMS - STYLES
   ============================================ */

/* CSS Variables for consistent theming */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(30, 30, 45, 0.6);
    --bg-card-hover: rgba(40, 40, 60, 0.8);
    --bg-glass: rgba(18, 18, 26, 0.7);
    
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #707080;
    
    --accent-primary: #a855f7;
    --accent-secondary: #c084fc;
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #c084fc 50%, #e879f9 100%);
    --accent-glow: rgba(168, 85, 247, 0.3);
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    
    --border-color: rgba(168, 85, 247, 0.2);
    --border-hover: rgba(168, 85, 247, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   BASE STYLES & TYPOGRAPHY
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at top, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(192, 132, 252, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-icon {
    vertical-align: middle;
    margin-right: 0.5em;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
}

nav ul li a:hover::before {
    width: 80%;
}

nav ul li span {
    color: var(--accent-secondary);
    font-weight: 600;
    padding: 0.6rem 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

.logout-button {
    background: transparent;
    color: var(--accent-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.logout-button:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-primary);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.container h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ALBUM LIST & CARDS
   ============================================ */

#albums-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.album-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.album-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--accent-primary);
}

.album-card:hover::before {
    opacity: 0.05;
}

.album-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-slow);
}

.album-card:hover img {
    transform: scale(1.05);
}

.album-card-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.album-card-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.album-card-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   ALBUM DETAIL PAGE
   ============================================ */

.album-detail {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.album-detail img.cover {
    max-width: 350px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.album-detail img.cover:hover {
    transform: scale(1.02);
}

.album-detail-info {
    text-align: center;
    flex: 1;
}

.album-detail-info h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.album-detail-info h3 {
    color: var(--accent-secondary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.album-detail-info p {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================
   STREAMING LINKS
   ============================================ */

.streaming-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.streaming-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--accent-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.streaming-link:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.streaming-icon {
    width: 20px;
    height: 20px;
    filter: invert(50%) sepia(100%) saturate(1000%) hue-rotate(240deg) brightness(100%) contrast(100%);
}

.streaming-link:hover .streaming-icon {
    filter: invert(70%) sepia(100%) saturate(1000%) hue-rotate(240deg) brightness(120%) contrast(100%);
}

/* ============================================
   ADMIN ACTIONS
   ============================================ */

.admin-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    margin-right: 0.5rem;
}

.button:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.button-danger {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.button-danger:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* ============================================
   FORMS
   ============================================ */

.form-container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 550px;
    margin: 2rem auto;
}

.form-container h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(18, 18, 26, 0.8);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="submit"] {
    width: 100%;
    padding: 0.9rem;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.form-group input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   COVER ART SEARCH
   ============================================ */

.cover-art-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cover-art-input-group input {
    flex-grow: 1;
}

.cover-art-results {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    background: rgba(18, 18, 26, 0.5);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.cover-art-results h3 {
    width: 100%;
    text-align: center;
    color: var(--accent-secondary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.cover-art-thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.cover-art-thumbnail:hover {
    border-color: var(--accent-primary);
    transform: scale(1.08);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-content {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-content img {
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    max-width: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   ERROR & SUCCESS MESSAGES
   ============================================ */

.error-message {
    color: var(--danger);
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.message {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.message.success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.message.error {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

footer p {
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (min-width: 768px) {
    .album-detail {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .album-detail img.cover {
        margin-right: 2.5rem;
    }

    .album-detail-info {
        text-align: left;
    }

    .streaming-links {
        justify-content: flex-start;
    }

    .admin-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    main {
        padding: 1rem;
    }

    #albums-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .album-detail {
        padding: 2rem;
    }

    .album-detail img.cover {
        max-width: 280px;
    }

    .form-container {
        padding: 2rem;
        margin: 1rem;
    }

    .about-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    nav h1 {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    nav ul li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .about-content img {
        max-width: 200px;
    }

    #albums-list {
        grid-template-columns: 1fr;
    }

    .album-card-info h3 {
        font-size: 1rem;
    }

    .album-detail-info h2 {
        font-size: 1.5rem;
    }

    .album-detail-info h3 {
        font-size: 1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.album-card {
    animation: fadeIn 0.5s ease forwards;
}

.album-card:nth-child(1) { animation-delay: 0.05s; }
.album-card:nth-child(2) { animation-delay: 0.1s; }
.album-card:nth-child(3) { animation-delay: 0.15s; }
.album-card:nth-child(4) { animation-delay: 0.2s; }
.album-card:nth-child(5) { animation-delay: 0.25s; }
.album-card:nth-child(6) { animation-delay: 0.3s; }
.album-card:nth-child(7) { animation-delay: 0.35s; }
.album-card:nth-child(8) { animation-delay: 0.4s; }
.album-card:nth-child(9) { animation-delay: 0.45s; }
.album-card:nth-child(10) { animation-delay: 0.5s; }

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}
