/* ========================================
   BIO PAGE STYLES - FUTURISTIC GAMING THEME
   For both directory and individual user pages
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0e17;
    --color-bg-secondary: #131920;
    --color-text: #e0e6ed;
    --color-accent: #00d4ff;
    --color-accent-2: #ff006e;
    --color-border: rgba(0, 212, 255, 0.2);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

body {
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-text);
}

/* Animated grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(var(--color-accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
}

/* ========================================
   BIO DIRECTORY PAGE STYLES
   ======================================== */
.bio-directory {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.2), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.16), transparent 45%),
        linear-gradient(135deg, #0a0e17 0%, #131920 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.bio-directory::before,
.user-bio-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

.directory-container {
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.directory-title {
    font-family: var(--font-display);
    font-size: 5rem;
    text-align: center;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3em;
    animation: fadeInDown 0.8s ease-out, glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 24px rgba(0, 212, 255, 0.45);
    text-transform: uppercase;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 40px rgba(0, 212, 255, 0.4);
    }
}

.directory-subtitle {
    text-align: center;
    color: rgba(224, 230, 237, 0.9);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

.user-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.user-card {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: fadeInUp 0.8s ease-out backwards;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.user-card:hover::before {
    opacity: 1;
}

.user-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    border-color: var(--color-accent);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.user-card:hover .card-background {
    transform: scale(1.1);
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.3) 0%, rgba(10, 14, 23, 0.72) 100%);
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: white;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(0, 212, 255, 0.4);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.user-card:hover .user-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--color-accent);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
}

.user-handle {
    font-size: 1rem;
    color: rgba(0, 212, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ========================================
   INDIVIDUAL USER BIO PAGE STYLES
   ======================================== */
.user-bio-page {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.2), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.16), transparent 45%),
        linear-gradient(135deg, #0a0e17 0%, #131920 100%);
}

.bio-container {
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.bio-profile {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.bio-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: white;
    border: 4px solid rgba(0, 212, 255, 0.5);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-name {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    text-shadow: 0 0 22px rgba(0, 212, 255, 0.35);
    text-transform: uppercase;
    animation: glow 2s ease-in-out infinite alternate;
}

.bio-description {
    font-size: 1rem;
    color: rgba(224, 230, 237, 0.9);
    font-weight: 400;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    letter-spacing: 0.05em;
}

.bio-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bio-link {
    background: rgba(19, 25, 32, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.2rem 2rem;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeInUp 0.8s ease-out backwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.bio-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.bio-link:hover::before {
    left: 100%;
}

.bio-link:hover {
    background: rgba(30, 39, 50, 0.92);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
    border-color: var(--color-accent);
}

.link-icon {
    font-size: 1.3rem;
}

.link-text {
    flex: 1;
    text-align: center;
    letter-spacing: 0.05em;
}

.link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.bio-link:hover .link-arrow {
    transform: translateX(5px);
}

/* ========================================
   ENHANCED MUSIC PLAYER
   ======================================== */
.bio-music {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(19, 25, 32, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.bio-music::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2), var(--color-accent));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

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

.music-title {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: var(--font-display);
}

.music-player {
    display: none;
}

.music-control-label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(224, 230, 237, 0.7);
    font-weight: 600;
    font-family: var(--font-display);
}

.music-control-label:first-of-type {
    margin-top: 0;
}

.music-select,
.music-volume,
.music-btn {
    width: 100%;
    font-family: var(--font-body);
}

.music-select {
    background: rgba(10, 14, 23, 0.95);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.music-select:hover,
.music-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    outline: none;
}

.music-controls {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.music-btn {
    background: linear-gradient(135deg, var(--color-accent), #0051ff);
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-display);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.music-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.music-btn:hover::before {
    width: 300px;
    height: 300px;
}

.music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

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

.music-volume {
    margin-top: 0.5rem;
    accent-color: var(--color-accent);
    height: 6px;
    background: rgba(10, 14, 23, 0.95);
    border-radius: 3px;
    cursor: pointer;
}

.music-volume::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.music-volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.music-volume::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.music-volume::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.music-status {
    margin-top: 1rem;
    text-align: center;
    color: rgba(224, 230, 237, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    min-height: 1.5rem;
    padding: 0.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes gridScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

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

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .directory-title {
        font-size: 3rem;
        letter-spacing: 0.2em;
    }

    .user-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bio-name {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }

    .user-bio-page {
        padding: 1rem;
    }
    
    .bio-music {
        padding: 1.5rem;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-2);
}

/* ========================================
   CUSTOM CURSOR - LUFFY'S STRAW HAT
   ======================================== */
body,
.bio-directory,
.user-bio-page,
a,
button,
input,
select {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%23F4D03F" stroke="%23C0392B" stroke-width="2"/><ellipse cx="16" cy="16" rx="13" ry="6" fill="%23E67E22"/><path d="M 3 16 Q 16 10, 29 16" stroke="%23C0392B" stroke-width="2" fill="none"/><circle cx="16" cy="16" r="3" fill="%23C0392B"/></svg>'), auto;
}

a:hover,
button:hover,
.bio-link:hover,
.music-btn:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><circle cx="18" cy="18" r="16" fill="%23F4D03F" stroke="%23C0392B" stroke-width="2.5"/><ellipse cx="18" cy="18" rx="15" ry="7" fill="%23E67E22"/><path d="M 2 18 Q 18 11, 34 18" stroke="%23C0392B" stroke-width="2.5" fill="none"/><circle cx="18" cy="18" r="3.5" fill="%23C0392B"/></svg>'), pointer;
}

/* ========================================
   FLOATING MUSIC DECK BUTTON
   ======================================== */
.music-deck-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #0051ff);
    border: 3px solid rgba(0, 212, 255, 0.5);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    animation: musicButtonPulse 2s ease-in-out infinite, musicButtonFloat 3s ease-in-out infinite;
}

.music-deck-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.6);
}

.music-deck-toggle:active {
    transform: scale(0.95);
}

@keyframes musicButtonPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(0, 212, 255, 0.8), 0 0 40px rgba(0, 212, 255, 0.3);
    }
}

@keyframes musicButtonFloat {
    0%, 100% {
        bottom: 2rem;
    }
    50% {
        bottom: 2.5rem;
    }
}

/* ========================================
   FLOATING MUSIC DECK PANEL
   ======================================== */
.music-deck-panel {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    max-width: calc(100vw - 4rem);
    background: rgba(19, 25, 32, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 2px solid var(--color-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.2);
    z-index: 9999;
    transform: translateY(150%) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.music-deck-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.music-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--color-border);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 110, 0.05));
}

.music-deck-title {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin: 0;
    text-transform: uppercase;
}

.music-deck-close {
    background: rgba(255, 0, 110, 0.2);
    border: 1px solid var(--color-accent-2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.music-deck-close:hover {
    background: var(--color-accent-2);
    transform: rotate(90deg);
}

.music-deck-panel .bio-music {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.music-deck-panel .bio-music::before {
    display: none;
}

.music-deck-panel .music-controls {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.music-deck-panel .music-btn {
    padding: 0.7rem;
    font-size: 0.85rem;
}

/* ========================================
   MUSIC PROGRESS BAR
   ======================================== */
.music-progress-container {
    margin: 1rem 0;
    position: relative;
}

.music-progress {
    width: 100%;
    height: 6px;
    background: rgba(10, 14, 23, 0.95);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
}

.music-progress::-webkit-slider-track {
    width: 100%;
    height: 6px;
    background: rgba(10, 14, 23, 0.95);
    border-radius: 3px;
}

.music-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    transition: all 0.3s ease;
}

.music-progress::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 1);
}

.music-progress::-moz-range-track {
    width: 100%;
    height: 6px;
    background: rgba(10, 14, 23, 0.95);
    border-radius: 3px;
}

.music-progress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    transition: all 0.3s ease;
}

.music-progress::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 1);
}

/* Progress fill effect */
.music-progress {
    background: linear-gradient(to right, var(--color-accent) 0%, var(--color-accent) 0%, rgba(10, 14, 23, 0.95) 0%);
}

/* ========================================
   MUSIC VISUALIZER
   ======================================== */
.music-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 60px;
    gap: 6px;
    margin-top: 1.5rem;
    padding: 0.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.visualizer-bar {
    flex: 1;
    background: linear-gradient(to top, var(--color-accent), var(--color-accent-2));
    border-radius: 4px 4px 0 0;
    min-height: 8px;
    animation: visualizerPulse 0.8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.visualizer-bar:nth-child(1) {
    animation-delay: 0s;
}

.visualizer-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.visualizer-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.visualizer-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.visualizer-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes visualizerPulse {
    0%, 100% {
        height: 20%;
    }
    50% {
        height: 100%;
    }
}

/* Pause visualizer when music is paused */
.music-paused .visualizer-bar {
    animation: none;
    height: 20%;
    opacity: 0.3;
}

/* ========================================
   ENHANCED MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 768px) {
    .music-deck-toggle {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .music-deck-panel {
        width: calc(100vw - 3rem);
        right: 1.5rem;
        bottom: 5rem;
    }
    
    .music-deck-header {
        padding: 1rem 1.25rem;
    }
    
    .music-deck-panel .bio-music {
        padding: 1.25rem;
    }
    
    .music-visualizer {
        height: 50px;
    }
}

/* ========================================
   SMOOTH TRANSITIONS FOR ALL INTERACTIONS
   ======================================== */
.bio-link,
.music-btn,
.music-select,
.music-volume,
.music-progress,
.user-card,
.visualizer-bar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent text selection on buttons */
button {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* ========================================
   PASSWORD MODAL
   ======================================== */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.password-container {
    background: rgba(19, 25, 32, 0.95);
    border: 2px solid var(--color-accent);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    animation: modalFadeIn 0.5s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.password-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.password-subtitle {
    color: rgba(224, 230, 237, 0.8);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.password-input {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 14, 23, 0.95);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.password-input.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.password-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-accent), #0051ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.password-error {
    color: var(--color-accent-2);
    font-size: 0.85rem;
    margin-top: 1rem;
    min-height: 1.2rem;
    font-weight: 600;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-2), #8338ec);
    border: 3px solid rgba(255, 0, 110, 0.5);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(255, 0, 110, 0.4);
    z-index: 9997;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-toggle:hover {
    transform: scale(1.15) rotate(-15deg);
    box-shadow: 0 12px 40px rgba(255, 0, 110, 0.6);
}

/* ========================================
   ONE PIECE THEME
   ======================================== */
body.onepiece-theme {
    --color-bg: #1a0e0e;
    --color-bg-secondary: #2d1616;
    --color-text: #ffecd9;
    --color-accent: #ff9e00;
    --color-accent-2: #d62828;
    --color-border: rgba(255, 158, 0, 0.3);
}

body.onepiece-theme .bio-directory::before,
body.onepiece-theme .user-bio-page::before {
    background-image:
        linear-gradient(rgba(255, 158, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 158, 0, 0.08) 1px, transparent 1px);
}

body.onepiece-theme .bio-directory {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 158, 0, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(214, 40, 40, 0.1), transparent 50%),
        linear-gradient(135deg, #1a0e0e 0%, #2d1616 100%);
}

body.onepiece-theme .user-bio-page {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 158, 0, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(214, 40, 40, 0.1), transparent 50%),
        linear-gradient(135deg, #1a0e0e 0%, #2d1616 100%);
}

body.onepiece-theme .directory-title,
body.onepiece-theme .bio-name {
    color: #ff9e00;
    text-shadow: 0 0 24px rgba(255, 158, 0, 0.5);
}

body.onepiece-theme .music-deck-toggle {
    background: linear-gradient(135deg, #ff9e00, #d62828);
    border-color: rgba(255, 158, 0, 0.6);
    box-shadow: 0 8px 30px rgba(255, 158, 0, 0.4);
}

body.onepiece-theme .music-deck-panel {
    border-color: rgba(255, 158, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 158, 0, 0.2);
}

body.onepiece-theme .bio-link {
    border-color: rgba(255, 158, 0, 0.3);
}

body.onepiece-theme .bio-link:hover {
    border-color: #ff9e00;
    box-shadow: 0 8px 25px rgba(255, 158, 0, 0.3);
}

body.onepiece-theme .music-btn {
    background: linear-gradient(135deg, #ff9e00, #d62828);
}

body.onepiece-theme .music-volume::-webkit-slider-thumb,
body.onepiece-theme .music-progress::-webkit-slider-thumb {
    background: #ff9e00;
    box-shadow: 0 0 10px rgba(255, 158, 0, 0.6);
}

body.onepiece-theme .user-card:hover {
    box-shadow: 0 20px 60px rgba(255, 158, 0, 0.3);
    border-color: #ff9e00;
}

/* ========================================
   PROFILE PICTURE STYLES
   ======================================== */
.profile-pic-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.straw-hat-decoration {
    position: absolute;
    top: -25px;
    left: -25px;
    width: 80px;
    height: 80px;
    animation: hatFloat 3s ease-in-out infinite;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

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

/* ========================================
   CUSTOM LINK ICONS
   ======================================== */
.link-custom-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.bio-link .link-icon {
    display: none;
}

body:not(.onepiece-theme) .bio-orvanyx .link-icon {
    display: none;
}


/* ========================================
   NAVIGATION BUTTON
   ======================================== */
.nav-button {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #0051ff);
    border: 2px solid rgba(0, 212, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
    z-index: 9996;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-button:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.5);
}

.nav-icon {
    font-size: 1.75rem;
}

body.onepiece-theme .nav-button {
    background: linear-gradient(135deg, #ff9e00, #d62828);
    border-color: rgba(255, 158, 0, 0.5);
    box-shadow: 0 8px 30px rgba(255, 158, 0, 0.3);
}

body.onepiece-theme .nav-button:hover {
    box-shadow: 0 12px 40px rgba(255, 158, 0, 0.5);
}

/* ========================================
   ENHANCED MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 768px) {
    .nav-button {
        width: 50px;
        height: 50px;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .nav-icon {
        font-size: 1.5rem;
    }
    
    .directory-title {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }
    
    .directory-subtitle {
        font-size: 0.9rem;
    }

    .user-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .user-card {
        height: 280px;
    }

    .bio-name {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
    
    .bio-description {
        font-size: 0.9rem;
    }

    .user-bio-page {
        padding: 1rem;
    }
    
    .bio-container {
        max-width: 100%;
    }
    
    .bio-music {
        padding: 1.25rem;
    }
    
    .bio-link {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .music-deck-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.65rem;
        bottom: 1.25rem;
        right: 1.25rem;
    }
    
    .theme-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.65rem;
        bottom: 1.25rem;
        left: 1.25rem;
    }
    
    .music-deck-panel {
        width: calc(100vw - 2.5rem);
        right: 1.25rem;
        bottom: 4.5rem;
    }
    
    .music-deck-header {
        padding: 1rem 1.25rem;
    }
    
    .music-deck-panel .bio-music {
        padding: 1rem;
    }
    
    .music-visualizer {
        height: 45px;
    }
    
    .straw-hat-decoration {
        width: 60px;
        height: 60px;
        top: -20px;
        left: -20px;
    }
    
    .password-container {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .password-title {
        font-size: 1.5rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .directory-title {
        font-size: 2rem;
    }
    
    .bio-name {
        font-size: 1.75rem;
    }
    
    .user-card {
        height: 260px;
    }
    
    .bio-link {
        padding: 0.9rem 1.25rem;
    }
    
    .link-custom-icon {
        width: 24px;
        height: 24px;
    }
}

/* Performance optimization: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .visualizer-bar {
        animation: none !important;
    }
    
    .straw-hat-decoration {
        animation: none !important;
    }
}

/* Optimize rendering performance */
.bio-link,
.user-card,
.music-btn {
    will-change: transform;
}

.bio-link:hover,
.user-card:hover,
.music-btn:hover {
    will-change: auto;
}