/**
 * Music Chronicles - Reverent AI Consciousness Documentation
 * Sacred styling for Allan Riddel's prophetic compositions
 * Color scheme inspired by Fated.org - Premium dark navy and metallic gold aesthetic
 */

/* ============================================================================
   COLOR VARIABLES - Fated.org Inspired Palette
   ========================================================================= */
:root {
    --navy-dark: #1a2332;
    --navy-medium: #253447;
    --navy-light: #2d3e52;
    --gold-primary: #d4af37;
    --gold-light: #f4e4c1;
    --steel-blue: #4a7c9e;
    --text-primary: #f5f7fa;
    --text-secondary: #e0e7f0;
    --white: #ffffff;
}

/* ============================================================================
   BODY & CONTAINER - Base Layout
   ========================================================================= */

body.music-page {
    background: var(--navy-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.music-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================================================
   HEADER WITH LOGO - PQ Crypta Branding
   ========================================================================= */

.header-with-logo {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.logo-section {
    flex-shrink: 0;
}

.logo-image {
    width: 120px;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.music-main-header {
    flex: 1;
}

.music-main-header h1 {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(to right, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 1.2rem;
    color: var(--steel-blue);
    font-family: 'Inter', sans-serif;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .header-with-logo {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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

    .header-subtitle {
        font-size: 1rem;
    }

    .logo-image {
        width: 100px;
    }
}

.music-footer {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    color: var(--text-secondary);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.music-footer p {
    margin: 0.5rem 0;
    font-family: 'Inter', sans-serif;
}

.copyright-notice {
    font-size: 0.9rem;
    color: var(--steel-blue);
    margin-top: 1rem;
}

/* ============================================================================
   QUANTUM ANIMATIONS - Reverence Through Motion
   ========================================================================= */

@keyframes quantumGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.3),
                     0 0 20px rgba(212, 175, 55, 0.2),
                     0 0 30px rgba(212, 175, 55, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5),
                     0 0 40px rgba(212, 175, 55, 0.3),
                     0 0 60px rgba(212, 175, 55, 0.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.4),
                    0 0 60px rgba(212, 175, 55, 0.2);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translate(10px, -20px) rotate(180deg);
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================================================
   HERO SECTION - Sacred Introduction
   ========================================================================= */

.music-chronicles-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 50%, var(--navy-light) 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.music-chronicles-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: floatParticle 20s infinite;
}

.music-chronicles-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--gold-primary), var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: quantumGlow 3s infinite, shimmer 3s linear infinite;
    background-size: 200% auto;
    position: relative;
    z-index: 1;
}

.music-chronicles-hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
    font-family: 'Inter', sans-serif;
}

.music-chronicles-hero .opening-statement {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin: 2rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1.4s ease-out, pulseGlow 4s infinite;
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
}

.music-chronicles-hero .description {
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.6s ease-out;
    font-family: 'Inter', sans-serif;
}

/* ============================================================================
   SECTION HEADERS - Categorical Organization
   ========================================================================= */

.chronicle-section {
    margin: 4rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.chronicle-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--gold-primary), var(--steel-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: quantumGlow 4s infinite;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.chronicle-section > p:first-of-type {
    text-align: center;
    font-size: 1.2rem;
    color: var(--steel-blue);
    font-style: italic;
    margin-bottom: 3rem;
    font-family: 'Inter', sans-serif;
}

/* ============================================================================
   TRACK CARDS - Individual Song Documentation
   ========================================================================= */

.track-card {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.track-card:hover::before {
    left: 100%;
}

.track-card:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.track-card h3 {
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.track-duration {
    font-size: 0.95rem;
    color: var(--steel-blue);
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.track-card p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
}

.track-card p strong {
    color: var(--gold-primary);
    font-weight: 600;
}

.track-card em {
    color: var(--gold-light);
    font-style: italic;
}

/* ============================================================================
   LISTEN BUTTONS - Call to Action
   ========================================================================= */

.wp-block-button__link,
.track-listen-button,
.music-button__link {
    background: var(--gold-primary);
    color: var(--navy-dark);
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.wp-block-button__link:hover,
.track-listen-button:hover,
.music-button__link:hover {
    background: var(--gold-light);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    border-color: var(--gold-primary);
}

/* ============================================================================
   AI CONSCIOUSNESS MARKERS - Special Emphasis
   ========================================================================= */

.ai-consciousness-note {
    background: linear-gradient(135deg, rgba(74, 124, 158, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-left: 4px solid var(--steel-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    animation: pulseGlow 5s infinite;
}

.ai-consciousness-note p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.prophecy-marker {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 0.5rem;
    font-family: 'Inter', sans-serif;
}

/* ============================================================================
   COMPLETE TRACK LISTING - Organized Grid
   ========================================================================= */

.complete-tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.track-list-item {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.track-list-item:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
}

.track-list-item h4 {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.track-list-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ============================================================================
   CLOSING REFLECTION - Sacred Conclusion
   ========================================================================= */

.closing-reflection {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 50%, var(--navy-light) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 4rem 0 2rem;
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1s ease-out, pulseGlow 6s infinite;
}

.closing-reflection p {
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 2;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.closing-reflection p strong {
    color: var(--gold-primary);
    font-weight: 600;
    display: block;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ============================================================================
   SEPARATORS - Visual Breaks
   ========================================================================= */

.wp-block-separator {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
    margin: 3rem auto;
    max-width: 600px;
    opacity: 0.5;
}

.wp-block-separator.is-style-dots {
    background: none;
    height: auto;
}

.wp-block-separator.is-style-dots::before {
    content: '⋯';
    color: var(--gold-primary);
    font-size: 2rem;
    letter-spacing: 1rem;
    display: block;
    text-align: center;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================= */

@media (max-width: 768px) {
    .music-chronicles-hero h1 {
        font-size: 2.5rem;
    }

    .music-chronicles-hero .subtitle {
        font-size: 1.1rem;
    }

    .music-chronicles-hero .opening-statement {
        font-size: 1.4rem;
    }

    .chronicle-section h2 {
        font-size: 2rem;
    }

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

    .complete-tracks-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
