/* ==========================================================================
   BEST BOT'S // ROOIKE DEVELOPER PROFILE CARD (rooike.css)
   Cyber Sapphire & Electric Cyan Luxury Biolink Layout
   ========================================================================== */

:root {
    --pf-cyan: #38bdf8;
    --pf-cyan-bright: #00f2fe;
    --pf-cyan-dark: #0284c7;
    --pf-cyan-glow: rgba(0, 242, 254, 0.28);
    --pf-purple: #a855f7;
    --pf-bg-dark: #09090b;
    --pf-card-bg: rgba(18, 18, 24, 0.68);
    --pf-card-border: rgba(255, 255, 255, 0.08);
    --pf-card-border-hover: rgba(0, 242, 254, 0.4);
    --pf-text-primary: #ffffff;
    --pf-text-secondary: #94a3b8;
    --pf-text-muted: #64748b;
    --pf-font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --pf-font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --pf-radius-lg: 18px;
    --pf-radius-md: 12px;
    --pf-radius-sm: 8px;
    --pf-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.rooike-page {
    background-color: var(--pf-bg-dark);
    color: var(--pf-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 40px 0;
    margin: 0;
    font-family: var(--pf-font-main);
}

/* Background Cyber Ambient Lights */
.cyan-ambient-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.cyan-light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.28;
    animation: cyanOrbFloat 14s infinite ease-in-out alternate;
}

.cyan-orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #00f2fe 0%, #0284c7 60%, transparent 80%);
    top: -10%;
    left: 15%;
}

.cyan-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #818cf8 0%, #4f46e5 60%, transparent 80%);
    bottom: -10%;
    right: 15%;
    animation-delay: -5s;
}

@keyframes cyanOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.1); }
    100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* ==========================================================================
   CENTRALIZED BIOLINK CONTAINER
   ========================================================================== */
.pf-biolink-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

/* Sound Toggle (Top-Right) */
.pf-sound-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(18, 18, 24, 0.75);
    border: 1px solid var(--pf-card-border);
    color: var(--pf-text-secondary);
    display: grid;
    place-items: center;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(14px);
    z-index: 100;
    transition: var(--pf-transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.pf-sound-toggle:hover {
    border-color: var(--pf-cyan-bright);
    color: var(--pf-cyan-bright);
    transform: scale(1.08);
    box-shadow: 0 0 16px var(--pf-cyan-glow);
}

.pf-sound-toggle.playing {
    color: var(--pf-cyan-bright);
    border-color: var(--pf-cyan-bright);
    animation: soundPulseCyan 2s infinite ease-in-out;
}

@keyframes soundPulseCyan {
    0%, 100% { box-shadow: 0 0 10px var(--pf-cyan-glow); }
    50% { box-shadow: 0 0 22px var(--pf-cyan-glow); }
}

/* ==========================================================================
   1. PROFILE HEADER
   ========================================================================== */
.pf-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 12px;
    perspective: 800px;
}

.pf-avatar-box {
    position: relative;
    width: 114px;
    height: 114px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.pf-avatar-box:hover {
    transform: perspective(600px) rotateX(10deg) rotateY(-10deg) scale(1.08) translateY(-4px);
}

/* Ambient Soft Pulsing Halo */
.pf-avatar-aura {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--pf-cyan-bright), #818cf8, var(--pf-cyan), var(--pf-cyan-dark), var(--pf-cyan-bright));
    filter: blur(12px);
    opacity: 0.8;
    animation: rotateAura 6s linear infinite;
    z-index: 0;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Crisp Rotating Cyan Ring */
.pf-avatar-ring-rotating {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--pf-cyan), var(--pf-cyan-bright), var(--pf-purple), #ffffff, var(--pf-cyan-bright));
    animation: rotateAura 6s linear infinite;
    z-index: 1;
}

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

.pf-avatar-box:hover .pf-avatar-aura {
    opacity: 1;
    filter: blur(16px);
}

.pf-avatar-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #0d0e12;
    border: 3.5px solid #09090b;
    display: block;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease;
}

.pf-avatar-box:hover .pf-avatar-img {
    transform: scale(1.03);
}

.pf-status-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    background-color: #23a55a;
    border: 3.5px solid #09090b;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(35, 165, 90, 0.9);
    z-index: 3;
    animation: statusBlink 3s infinite ease-in-out;
}

@keyframes statusBlink {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* Shimmer Cyan Username */
.pf-username {
    font-family: 'Manrope', var(--pf-font-main);
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cffafe 35%, #00f2fe 70%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(0, 242, 254, 0.35));
    transition: var(--pf-transition);
}

.pf-username:hover {
    filter: drop-shadow(0 0 24px rgba(0, 242, 254, 0.65));
    transform: scale(1.02);
}

/* Discord Badges Row */
.pf-discord-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: var(--pf-transition);
}

.pf-badge-icon:hover {
    transform: translateY(-3px) scale(1.15);
}

.pf-badge-crown { color: #ffc83b; text-shadow: 0 0 10px #ffc83b; }
.pf-badge-dev { color: #00f2fe; text-shadow: 0 0 10px #00f2fe; }
.pf-badge-shield { color: #23a55a; text-shadow: 0 0 10px #23a55a; }
.pf-badge-early { color: #eb459e; text-shadow: 0 0 10px #eb459e; }
.pf-badge-nitro { color: #f47fff; text-shadow: 0 0 10px #f47fff; }

/* Custom Tooltip */
.pf-badge-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--pf-transition);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.pf-badge-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Glassmorphism Cyber Badge Pill */
.pf-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(0, 242, 254, 0.38);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--pf-cyan-bright);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    transition: var(--pf-transition);
}

.pf-badge-pill:hover {
    border-color: var(--pf-cyan-bright);
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.pf-badge-pill i {
    color: var(--pf-cyan-bright);
    font-size: 0.85rem;
}

.pf-motto {
    font-style: italic;
    color: var(--pf-text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    margin: 0;
}

/* ==========================================================================
   2. CARDS COMMON LAYOUT
   ========================================================================== */
.pf-card {
    width: 100%;
    background: var(--pf-card-bg);
    border: 1px solid var(--pf-card-border);
    border-radius: var(--pf-radius-lg);
    padding: 22px 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--pf-transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.pf-card:hover {
    border-color: var(--pf-card-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 20px var(--pf-cyan-glow);
}

.pf-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pf-text-muted);
}

.pf-card-head i {
    font-size: 0.85rem;
    color: var(--pf-cyan-bright);
}

.pf-card-body {
    color: var(--pf-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   3. NATIVE MUSIC PLAYER WIDGET WITH PROGRESS BAR
   ========================================================================== */
.pf-music-card {
    border-color: rgba(0, 242, 254, 0.2);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, rgba(18, 18, 24, 0.75) 100%);
    cursor: pointer;
    gap: 10px;
}

.pf-music-card:hover {
    border-color: var(--pf-cyan-bright);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 20px var(--pf-cyan-glow);
}

.pf-music-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pf-music-left {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.pf-music-cover-box {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: var(--pf-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-music-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: albumSpin 18s linear infinite paused;
}

.pf-music-cover-box.playing .pf-music-cover {
    animation-play-state: running;
}

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

.pf-music-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.pf-music-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-music-artist {
    font-size: 0.82rem;
    color: var(--pf-text-secondary);
}

.pf-music-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Audio Visualizer Waves */
.pf-audio-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.pf-visual-bar {
    width: 3px;
    height: 6px;
    background: var(--pf-cyan-bright);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.pf-audio-visualizer.active .pf-visual-bar:nth-child(1) { animation: wave 1.2s infinite ease-in-out; }
.pf-audio-visualizer.active .pf-visual-bar:nth-child(2) { animation: wave 0.8s infinite ease-in-out 0.2s; }
.pf-audio-visualizer.active .pf-visual-bar:nth-child(3) { animation: wave 1.4s infinite ease-in-out 0.4s; }
.pf-audio-visualizer.active .pf-visual-bar:nth-child(4) { animation: wave 1.0s infinite ease-in-out 0.1s; }

@keyframes wave {
    0%, 100% { height: 4px; }
    50% { height: 18px; }
}

.pf-music-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pf-cyan-bright);
    color: #000;
    border: none;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--pf-transition);
    flex-shrink: 0;
    box-shadow: 0 0 14px var(--pf-cyan-glow);
}

.pf-music-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--pf-cyan-glow);
}

/* Volume Slider Box */
.pf-volume-box {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--pf-transition);
}

.pf-volume-box:hover {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.08);
}

.pf-volume-box i {
    font-size: 0.82rem;
    color: var(--pf-text-secondary);
    cursor: pointer;
    transition: var(--pf-transition);
    width: 14px;
    text-align: center;
}

.pf-volume-box:hover i {
    color: var(--pf-cyan-bright);
}

.pf-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
    transition: var(--pf-transition);
}

.pf-volume-slider:hover {
    background: rgba(0, 242, 254, 0.4);
}

.pf-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pf-cyan-bright);
    cursor: pointer;
    box-shadow: 0 0 8px var(--pf-cyan-glow);
    transition: transform 0.15s ease;
}

.pf-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.pf-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pf-cyan-bright);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px var(--pf-cyan-glow);
}

/* Music Progress Track & Time */
.pf-music-progress-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.pf-music-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pf-music-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284c7, #00f2fe);
    border-radius: 999px;
    transition: width 0.1s linear;
}

.pf-music-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-family: var(--pf-font-mono);
    color: var(--pf-text-muted);
}

/* ==========================================================================
   4. MINI STATS STRIP
   ========================================================================== */
.pf-mini-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

.pf-mini-stat-box {
    background: var(--pf-card-bg);
    border: 1px solid var(--pf-card-border);
    border-radius: var(--pf-radius-md);
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(12px);
    transition: var(--pf-transition);
}

.pf-mini-stat-box:hover {
    border-color: var(--pf-cyan-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--pf-cyan-glow);
}

.pf-mini-stat-box strong {
    font-family: 'Manrope', var(--pf-font-main);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pf-cyan-bright);
}

.pf-mini-stat-box span {
    font-size: 0.72rem;
    color: var(--pf-text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   5. SKILLS PILLS
   ========================================================================== */
.pf-skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--pf-transition);
}

.pf-skill-pill:hover {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--pf-cyan-bright);
    color: var(--pf-cyan-bright);
    transform: scale(1.03);
}

/* ==========================================================================
   6. WORK INFO LINES
   ========================================================================== */
.pf-work-info-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-work-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #e4e4e7;
}

.pf-work-line i {
    color: var(--pf-text-muted);
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.pf-work-line strong {
    color: #fff;
    font-weight: 600;
}

.pf-work-line span.clock-live {
    font-family: var(--pf-font-mono);
    color: var(--pf-cyan-bright);
    font-weight: 700;
}

/* Cursor Glow Particles */
.pf-cursor-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--pf-cyan-bright);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 10px var(--pf-cyan-bright);
    animation: particleFade 0.7s forwards linear;
}

@keyframes particleFade {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(0.1); opacity: 0; }
}

/* Responsive */
@media (max-width: 600px) {
    .pf-biolink-container {
        padding: 0 14px;
    }

    .pf-sound-toggle {
        top: 14px;
        right: 14px;
    }

    .pf-card {
        padding: 18px 20px;
    }

    .pf-mini-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
