
:root {
    --bg-color-deep: #121212;
    --bg-color-light: #1c1c1c;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-hero: #f5f5f5;
    --accent-color: #58a6ff;
    --accent-hover: #79b8ff;
    --border-color: #282828;
    --blurb-bg: rgba(28, 28, 28, 0.5); /* Semi-transparent for glass effect */
    --tag-master-bg: #4a90e2;
    --tag-multis-bg: #f5a623;
    --tag-stems-bg: #bd10e0;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top, var(--bg-color-light), var(--bg-color-deep) 25%);
    font-family: var(--font-family);
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 20px 200px 20px; 
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color-deep);
}
::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
    border: 2px solid var(--bg-color-deep);
}
::-webkit-scrollbar-thumb:hover {
    background-color: #444;
}

.site-container {
    width: 100%;
    max-width: 1000px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 80px;
}

.site-logo {
    max-width: 40px;
    height: auto;
    margin-bottom: 20px;
    animation: fade-in-up 0.6s ease-out forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-hero);
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fade-in-up 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 550px;
    line-height: 1.6;
    opacity: 0;
    animation: fade-in-up 0.6s ease-out 0.3s forwards;
}

.album-list {
    width: 100%;
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px 30px;
}

.album-item {
    perspective: 1000px;
    opacity: 0;
    animation: fade-in-up 0.5s ease-out forwards;
    animation-delay: var(--animation-delay, 0s);
}

.album-art-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.album-item:hover .album-art-container {
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.album-art {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.album-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.album-item:hover .album-overlay,
.album-item:focus-within .album-overlay {
    opacity: 1;
}

.album-blurb {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--blurb-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.album-item:hover .album-blurb,
.album-item:focus-within .album-blurb {
    transform: translateY(0);
}

.blurb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.blurb-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.blurb-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
}
.blurb-tag.master { background-color: var(--tag-master-bg); }
.blurb-tag.multitracks { background-color: var(--tag-multis-bg); }
.blurb-tag.stems { background-color: var(--tag-stems-bg); }

.blurb-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px;
}

.action-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0;
    color: var(--text-primary);
}

.action-btn:hover,
.action-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.action-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
    transition: transform 0.2s ease;
}

.action-btn:hover svg {
    transform: scale(1.1);
}

.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }
.play-btn.playing { background-color: var(--accent-color) !important; }


footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    margin-top: 50px;
}

.promo-image {
    display: block;
    max-width: 500px;
    width: 100%;
    height: auto;
    animation: pulse-animation 4s ease-in-out infinite;
    cursor: default;
    border-radius: 8px;
    margin: 25px 0;
}

.promo-title {
    color: #888888;
    font-size: 1rem;
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 4px;
}

.promo-subtitle {
    color: #555555;
    font-size: 0.9rem;
    font-weight: 400; 
    letter-spacing: 1px;
}

@keyframes pulse-animation {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(100, 100, 100, 0.2); }
  50% { transform: scale(1.03); box-shadow: 0 0 30px 10px rgba(100, 100, 100, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(100, 100, 100, 0); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-color-light);
    color: var(--text-secondary);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal-content p {
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-highlight {
    color: var(--accent-hover);
    font-weight: 500;
}

.modal-button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-button:hover {
    background-color: var(--accent-hover);
}


@media (max-width: 768px) {
    body {
        padding: 40px 15px 100px 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .album-list {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .album-item {
        max-width: 350px;
        justify-self: center;
        width: 100%;
    }

    .album-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 80%);
    }
    .album-blurb {
        transform: translateY(0);
    }
    .album-item:hover .album-art-container {
        transform: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
}

@media (pointer: coarse) {
    .album-art-container {
        transform: none !important;
    }
    .album-item:hover .album-art-container {
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
}