/* Base Styles */
:root {
    --primary-color: #1a237e;
    --secondary-color: #b71c1c;
    --accent-color: #ffab00;
    --dark-color: #0d0a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --text-light: #777;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Vinyl Overlay Effect */
.vinyl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--dark-color) 20%, var(--dark-color) 80%, transparent 80%, transparent),
    radial-gradient(circle, transparent 20%, var(--dark-color) 20%, var(--dark-color) 80%, transparent 80%, transparent) 50px 50px;
    background-size: 100px 100px;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
.jazz-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.2rem;
    margin: 0.5rem 0 0;
    font-weight: 300;
    letter-spacing: 1px;
}

.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-sizing: border-box;
    opacity: 0.1;
    z-index: 1;
}

.saxophone-icon, .trumpet-icon {
    font-size: 8rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    max-height: 600px;
    margin-bottom: 4rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    max-width: 600px;
    text-align: left;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Common Section Styles */
.section-title {
    text-align: center;
    margin: 3rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title span {
    background-color: var(--light-color);
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-title:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--primary-color);
    z-index: 1;
}

/* Record Grid Styles */
.record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.record-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.record-item:hover {
    transform: translateY(-5px);
}

.record-cover {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.record-vinyl {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #333 0%, #000 100%);
    border: 2px solid #555;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.record-info {
    padding: 1.5rem;
    text-align: center;
}

.record-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.price {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 0;
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 1rem;
    color: var(--primary-color);
}

/* User Navigation */
.user-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.user-greeting {
    display: flex;
    align-items: center;
}

.welcome {
    font-weight: 300;
    margin-right: 0.5rem;
}

.username {
    font-weight: 600;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
}

.cart-count {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.cart-icon {
    font-size: 1.2rem;
}

.logout-button {
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.catalog-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.album-cover {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.play-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.catalog-item:hover .play-button {
    opacity: 1;
}

.play-button:hover {
    transform: scale(1.1);
}

.album-info {
    padding: 1.5rem;
}

.album-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.album-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
}

/* Footer Styles */
.jazz-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    margin-top: 4rem;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    z-index: 1;
}

.piano-icon {
    font-size: 10rem;
}

/* Button Styles */
.cta-button {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .record-grid, .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .album-cover {
        height: 200px;
    }
}