/**
 * Jazz Elegance Theme
 *
 * Sophisticated vintage jazz club aesthetic with warm cream tones, deep navy sections,
 * and rich gold accents. Perfect for jazz musicians, classical performers, and
 * artists seeking timeless sophistication.
 *
 * Design Philosophy:
 * - Warm cream backgrounds evoke aged paper and vintage elegance
 * - Deep navy sections create dramatic contrast
 * - Rich gold accents add luxury without being flashy
 * - Subtle textures and refined typography
 */

/* ============================================
   Theme Variables & Enhancements
   ============================================ */

:root {
    /* Paper texture effect variables */
    --paper-texture-opacity: 0.03;
    --vintage-overlay: linear-gradient(180deg,
        rgba(244, 232, 216, 0) 0%,
        rgba(26, 26, 46, 0.02) 100%);

    /* Gold shine effect */
    --gold-shimmer: linear-gradient(45deg,
        transparent 30%,
        rgba(212, 175, 55, 0.3) 50%,
        transparent 70%);

    /* Subtle shadow for depth */
    --jazz-shadow: 0 4px 12px rgba(26, 26, 46, 0.15);
    --jazz-shadow-hover: 0 8px 24px rgba(26, 26, 46, 0.2);
}

/* ============================================
   Body & Background Enhancements
   ============================================ */

body {
    /* Subtle paper texture overlay */
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"),
        var(--vintage-overlay);
    background-attachment: fixed;
    position: relative;
}

/* Add elegant page frame effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 8px solid var(--color-primary);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.1;
}

/* ============================================
   Typography Enhancements
   ============================================ */

h1, h2, h3 {
    position: relative;
    letter-spacing: 0.02em;
}

/* Elegant underline accent for h2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg,
        var(--color-primary) 0%,
        transparent 100%);
    margin: 1rem auto 0;
}

section h2::after {
    margin-left: 0;
    margin-right: auto;
}

/* Refined text shadow for headings on dark backgrounds */
.section-group--header h1,
.section-group--header h2,
.section-group--header h3,
[style*="background: #1A1A2E"] h1,
[style*="background: #1A1A2E"] h2,
[style*="background: #1A1A2E"] h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Button Enhancements
   ============================================ */

button, .btn, a.button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Gold shimmer effect on hover */
button::before, .btn::before, a.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-shimmer);
    transition: left 0.6s ease;
}

button:hover::before,
.btn:hover::before,
a.button:hover::before {
    left: 100%;
}

button:hover, .btn:hover, a.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--jazz-shadow-hover);
}

/* Primary button styling */
button[style*="background-color: var(--button-color)"],
.btn-primary {
    background: linear-gradient(135deg,
        var(--color-primary) 0%,
        color-mix(in srgb, var(--color-primary) 85%, var(--color-secondary) 15%) 100%) !important;
}

/* ============================================
   Card & Content Block Enhancements
   ============================================ */

.card, .content-block {
    background: var(--color-surface, var(--card-background));
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
    box-shadow: var(--jazz-shadow);
}

.card:hover, .content-block:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--jazz-shadow-hover);
    transform: translateY(-4px);
}

/* ============================================
   Section Enhancements
   ============================================ */

section {
    position: relative;
}

/* Add subtle divider between sections */
section + section {
    border-top: 1px solid rgba(26, 26, 46, 0.08);
}

/* Dark sections (navy background) */
section[style*="#1A1A2E"],
section[style*="#2C2C3E"] {
    border-top-color: rgba(212, 175, 55, 0.15);
}

/* Elegant quote marks for testimonials */
blockquote {
    position: relative;
    font-style: italic;
    padding-left: 2rem;
    border-left: 3px solid var(--color-primary);
}

blockquote::before {
    content: '\201C';
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ============================================
   Navigation Enhancements
   ============================================ */

nav, .header {
    background: var(--header-background);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.1);
}

nav a, .menu-item {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Elegant gold underline on hover */
nav a::after, .menu-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--color-primary) 0%,
        var(--color-accent) 100%);
    transition: width 0.3s ease;
}

nav a:hover::after, .menu-item:hover::after {
    width: 100%;
}

nav a:hover, .menu-item:hover {
    color: var(--color-primary);
}

/* ============================================
   Hero Section Enhancements
   ============================================ */

.hero, section[class*="hero"] {
    position: relative;
}

/* Vintage vignette effect */
.hero:not(:has(> div[class*="absolute"][class*="inset-0"]))::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(26, 26, 46, 0.15) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Only target content container, not background image */
.hero > .relative {
    z-index: 10;
}

/* ============================================
   Music Player Integration
   ============================================ */

.music-player,
#amplitude-player {
    background: var(--card-background);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--jazz-shadow);
    border-radius: var(--card-border-radius, 12px);
}

/* Album art styling */
.album-art img,
[data-amplitude-song-info="cover_art_url"] {
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: var(--jazz-shadow);
    transition: all 0.3s ease;
}

.album-art:hover img {
    border-color: var(--color-primary);
    box-shadow: var(--jazz-shadow-hover);
}

/* Play button styling */
.amplitude-play-pause,
button[class*="play"] {
    background: linear-gradient(135deg,
        var(--color-primary) 0%,
        var(--color-accent) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.amplitude-play-pause:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
}

/* ============================================
   Form Elements
   ============================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    border: 1px solid rgba(26, 26, 46, 0.2);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Footer Enhancements
   ============================================ */

footer {
    background: var(--footer-background);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 -4px 12px rgba(26, 26, 46, 0.1);
}

/* Elegant social icon styling */
footer .social-links a {
    transition: all 0.3s ease;
    opacity: 0.8;
}

footer .social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--color-primary);
}

/* ============================================
   Image Treatments
   ============================================ */

img {
    transition: all 0.4s ease;
}

/* Subtle vintage effect on images */
img:not([class*="logo"]):not([class*="icon"]) {
    filter: contrast(1.05) brightness(0.98);
}

img:hover {
    filter: contrast(1.1) brightness(1);
}

/* Gallery images */
.gallery img,
[class*="gallery"] img {
    border: 3px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--jazz-shadow);
}

.gallery img:hover {
    border-color: var(--color-primary);
    box-shadow: var(--jazz-shadow-hover);
}

/* ============================================
   Decorative Elements
   ============================================ */

/* Art deco inspired dividers */
.divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-primary) 50%,
        transparent 100%);
    margin: 2rem 0;
}

/* Optional ornamental corner accents */
.ornament::before,
.ornament::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    opacity: 0.3;
}

.ornament::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.ornament::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    /* Reduce body frame on mobile */
    body::before {
        border-width: 4px;
    }

    /* Simplify shadows on mobile for performance */
    .card, .content-block {
        box-shadow: 0 2px 8px rgba(26, 26, 46, 0.1);
    }

    /* Remove hover effects on touch devices */
    .card:hover, .content-block:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Disable all animations for accessibility */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    button:hover, .btn:hover {
        transform: none;
    }
}
