/**
 * Ceremonial Audio Player Styles
 * Persistent audio player for ceremonial space-song assignments
 */

/* ═══════════════════════════════════════════════════════════
   CONSENT MODAL
   ═══════════════════════════════════════════════════════════ */

.ceremonial-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.6s ease;
}

.ceremonial-consent-content {
    max-width: 500px;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(15, 15, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease 0.2s both;
}

.ceremonial-sigil {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.ceremonial-consent-content h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-variant: small-caps;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
    color: #eaeaea;
}

.ceremonial-consent-content p {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.ceremonial-consent-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.ceremonial-btn {
    padding: 0.75rem 1.5rem;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ceremonial-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.ceremonial-btn.primary {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.ceremonial-btn.primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   PERSISTENT PLAYER
   ═══════════════════════════════════════════════════════════ */

.ceremonial-player {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: slideInFromRight 0.5s ease;
}

.ceremonial-player.minimized {
    min-width: auto;
    padding: 0.75rem;
}

.ceremonial-player.minimized .ceremonial-track-info,
.ceremonial-player.minimized .ceremonial-volume-slider {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   PLAYER CONTROLS
   ═══════════════════════════════════════════════════════════ */

.ceremonial-player-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ceremonial-control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.ceremonial-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.ceremonial-control-btn:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   TRACK INFO
   ═══════════════════════════════════════════════════════════ */

.ceremonial-track-info {
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.ceremonial-track-title {
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    color: #eaeaea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.ceremonial-track-space {
    font-family: 'Crimson Text', serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   VOLUME CONTROL
   ═══════════════════════════════════════════════════════════ */

.ceremonial-volume-slider {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ceremonial-volume-slider input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.ceremonial-volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.ceremonial-volume-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.ceremonial-volume-slider input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.ceremonial-volume-slider input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .ceremonial-player {
        bottom: 1rem;
        right: 1rem;
        min-width: 280px;
        max-width: calc(100% - 2rem);
    }

    .ceremonial-consent-content {
        max-width: 90%;
        padding: 2rem 1.5rem;
    }

    .ceremonial-consent-actions {
        flex-direction: column;
    }

    .ceremonial-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ceremonial-player {
        bottom: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        min-width: auto;
        max-width: none;
    }

    .ceremonial-player.minimized {
        left: auto;
        right: 0.5rem;
        width: auto;
    }
}
