/* ========================================
   MYSTICAL PROFILE SECTION STYLES
   Extracted from index.html inline styles
   ======================================== */

/* Enhanced Profile Section Container */
.profile-section.mystical {
    position: relative;
    overflow: visible;
}

/* Mystical Frame Container */
.profile-mystical-frame {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
}

/* Rotating Aura Ring */
.profile-aura {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    border: 2px solid transparent;
    background:
        linear-gradient(#1a1a3e, #1a1a3e) padding-box,
        linear-gradient(135deg, #B565FF, #7a9a7c, #d4a574, #B565FF) border-box;
    animation: auraRotate 8s linear infinite;
}

@keyframes auraRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Outer Glow Ring */
.profile-glow-ring {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(181, 101, 255, 0.3) 0%,
        rgba(181, 101, 255, 0.1) 50%,
        transparent 70%
    );
    animation: glowPulse 3s ease-in-out infinite;
}

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

/* Moon Phase Decorations */
.moon-phases {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.moon-phase {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.8;
    animation: moonFloat 6s ease-in-out infinite;
}

.moon-phase:nth-child(1) { top: -10px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.moon-phase:nth-child(2) { top: 20%; right: -5px; animation-delay: 0.5s; }
.moon-phase:nth-child(3) { bottom: 20%; right: -5px; animation-delay: 1s; }
.moon-phase:nth-child(4) { bottom: -10px; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.moon-phase:nth-child(5) { bottom: 20%; left: -5px; animation-delay: 2s; }
.moon-phase:nth-child(6) { top: 20%; left: -5px; animation-delay: 2.5s; }

@keyframes moonFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* Enhanced Photo Container */
.profile-photo-container.mystical {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 4px solid var(--lavender);
    box-shadow:
        0 0 30px rgba(181, 101, 255, 0.5),
        0 0 60px rgba(181, 101, 255, 0.3),
        inset 0 0 20px rgba(181, 101, 255, 0.2);
    z-index: 2;
}

.profile-photo-container.mystical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-container.mystical .profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--witchy-purple), var(--midnight-purple));
}

/* Floating Sparkles */
.profile-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #B565FF;
    border-radius: 50%;
    box-shadow: 0 0 6px #B565FF, 0 0 12px #B565FF;
    animation: sparkleFloat 4s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.7s; }
.sparkle:nth-child(3) { bottom: 30%; left: 5%; animation-delay: 1.4s; }
.sparkle:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 2.1s; }
.sparkle:nth-child(5) { top: 40%; left: -5%; animation-delay: 2.8s; }
.sparkle:nth-child(6) { top: 50%; right: -5%; animation-delay: 3.5s; }

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.5);
    }
}

/* ========================================
   COMBINED ABOUT CARD WITH ORB PLAYER
   ======================================== */

.about-card-combined {
    background: linear-gradient(180deg,
        rgba(74, 56, 102, 0.5) 0%,
        rgba(45, 27, 78, 0.7) 100%);
    border: 1px solid rgba(155, 126, 181, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Orb Player Header Band */
.orb-player-header {
    background: linear-gradient(180deg,
        rgba(45, 27, 78, 0.6) 0%,
        rgba(74, 56, 102, 0.4) 100%);
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(181, 101, 255, 0.15);
    position: relative;
}

.orb-player-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(181, 101, 255, 0.4),
        transparent);
}

.orb-player-layout {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

/* Orb Container */
.orb-container {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.orb-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(181, 101, 255, 0.2);
    border-radius: 50%;
    animation: orbRingPulse 3s ease-in-out infinite;
}

@keyframes orbRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.orb {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(200, 162, 208, 0.95) 0%,
        rgba(181, 101, 255, 0.75) 35%,
        rgba(155, 126, 181, 0.55) 65%,
        rgba(74, 56, 102, 0.85) 100%);
    box-shadow:
        0 0 20px rgba(181, 101, 255, 0.5),
        inset 0 0 10px rgba(200, 162, 208, 0.3);
    animation: orbGlow 3s ease-in-out infinite;
}

@keyframes orbGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(181, 101, 255, 0.5), inset 0 0 10px rgba(200, 162, 208, 0.3); }
    50% { box-shadow: 0 0 30px rgba(181, 101, 255, 0.7), inset 0 0 15px rgba(200, 162, 208, 0.4); }
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(200, 162, 208, 0.4) 70%,
        transparent 100%);
    animation: orbCorePulse 2s ease-in-out infinite;
}

@keyframes orbCorePulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Track Section */
.orb-track-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.orb-track-label {
    font-family: 'VT323', monospace;
    font-size: 0.65rem;
    color: var(--cannabis-green, #5a7a5c);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.orb-track-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--soft-lavender, #c8a2d0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mini Visualizer */
.orb-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.viz-bar {
    width: 2px;
    background: linear-gradient(to top, var(--cannabis-green, #5a7a5c), rgba(181, 101, 255, 0.7));
    border-radius: 1px;
    animation: vizBarPulse 0.6s ease-in-out infinite;
    animation-play-state: paused;
}

.orb-player-header.playing .viz-bar {
    animation-play-state: running;
}

.viz-bar:nth-child(1) { height: 4px; animation-delay: 0s; }
.viz-bar:nth-child(2) { height: 8px; animation-delay: 0.1s; }
.viz-bar:nth-child(3) { height: 6px; animation-delay: 0.15s; }
.viz-bar:nth-child(4) { height: 10px; animation-delay: 0.2s; }
.viz-bar:nth-child(5) { height: 12px; animation-delay: 0.25s; }
.viz-bar:nth-child(6) { height: 7px; animation-delay: 0.3s; }
.viz-bar:nth-child(7) { height: 9px; animation-delay: 0.35s; }

@keyframes vizBarPulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Orb Controls */
.orb-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.orb-ctrl-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: rgba(155, 126, 181, 0.6);
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.orb-ctrl-btn:hover {
    color: var(--soft-lavender, #c8a2d0);
    background: rgba(181, 101, 255, 0.15);
}

.orb-ctrl-btn.play {
    width: 34px;
    height: 34px;
    background: rgba(181, 101, 255, 0.25);
    border: 1px solid rgba(181, 101, 255, 0.4);
    color: var(--soft-lavender, #c8a2d0);
    font-size: 0.7rem;
}

.orb-ctrl-btn.play:hover {
    background: rgba(181, 101, 255, 0.4);
    box-shadow: 0 0 12px rgba(181, 101, 255, 0.4);
}

/* About Section Content (inside combined card) */
.about-section-content {
    padding: 1.25rem;
}

.about-section-content .section-title {
    font-family: var(--font-elegant, 'Cinzel'), serif;
    font-size: 1.25rem;
    color: var(--gold, #b8860b);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section-content .about-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--soft-lavender, #c8a2d0);
    line-height: 1.65;
}

/* Legacy support - hide old classes if still referenced */
.sidebar-music-player {
    display: none;
}

.about-section {
    display: none;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet breakpoint */
@media (max-width: 768px) {
    /* Scale down mystical frame for tablets */
    .profile-mystical-frame {
        width: 170px;
        height: 170px;
    }

    .profile-photo-container.mystical {
        width: 150px;
        height: 150px;
    }

    .moon-phases {
        width: 200px;
        height: 200px;
    }

    .moon-phase {
        font-size: 1rem;
    }

    /* Reduce animation intensity on mobile (battery saving) */
    .profile-aura {
        animation-duration: 12s;
    }

    .profile-glow-ring {
        animation-duration: 4s;
    }
}

/* Mobile breakpoint */
@media (max-width: 480px) {
    /* Further scale down for phones */
    .profile-mystical-frame {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }

    .profile-photo-container.mystical {
        width: 130px;
        height: 130px;
        border-width: 3px;
    }

    .moon-phases {
        width: 170px;
        height: 170px;
    }

    .moon-phase {
        font-size: 0.9rem;
    }

    /* Reduce glow effects for performance */
    .profile-glow-ring {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }

    .profile-aura {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }

    /* Smaller sparkles */
    .sparkle {
        width: 3px;
        height: 3px;
    }

    /* Profile name sizing */
    .profile-name {
        font-size: 1.5rem;
    }

    .profile-subtitle {
        font-size: 0.85rem;
    }

    /* Orb player mobile styles */
    .orb-player-header {
        padding: 0.75rem 0.875rem;
    }

    .orb-container {
        width: 42px;
        height: 42px;
    }

    .orb-track-name {
        font-size: 0.85rem;
    }

    .orb-ctrl-btn {
        width: 26px;
        height: 26px;
    }

    .orb-ctrl-btn.play {
        width: 32px;
        height: 32px;
    }

    .about-section-content {
        padding: 1rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .profile-mystical-frame {
        width: 130px;
        height: 130px;
    }

    .profile-photo-container.mystical {
        width: 110px;
        height: 110px;
    }

    .moon-phases {
        width: 150px;
        height: 150px;
    }

    .moon-phase {
        font-size: 0.8rem;
    }

    /* Simplify animations on very small screens */
    .sparkle {
        animation: none;
        opacity: 0.5;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    /* Compact orb player */
    .orb-player-layout {
        gap: 0.625rem;
    }

    .orb-container {
        width: 38px;
        height: 38px;
    }

    .orb-track-name {
        font-size: 0.8rem;
    }

    .orb-visualizer {
        height: 10px;
    }

    .orb-ctrl-btn {
        width: 24px;
        height: 24px;
        font-size: 0.55rem;
    }

    .orb-ctrl-btn.play {
        width: 30px;
        height: 30px;
    }
}
