/* Bio Panel Styles */

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

/* Bio Panel */
.bio-panel {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 30%; /* Default for desktop screens (above 1200px) */
    min-width: 300px; /* Appropriate minimum width for sidebar */
    height: 100vh; /* Full height of screen */
    background: rgba(0,0,0, 0.1)!important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px 0 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.2)!important;
    border-right: none;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.6s ease, 
                background-color 0.3s ease,
                width 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    user-select: none; /* Prevent text selection */
    will-change: transform, opacity; /* Optimize for animations */
    
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Custom scrollbar styling for WebKit browsers (Chrome, Safari, etc.) */
.bio-panel::-webkit-scrollbar {
    width: 8px;
}

.bio-panel::-webkit-scrollbar-track {
    background: transparent;
}

.bio-panel::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
}

.bio-panel.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.bio-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bio-panel-title {
    font-size: 1.2rem;
    color: white;
    font-weight: normal;
}

.bio-panel-close {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.bio-panel-close:hover {
    color: white;
    transform: scale(1.1);
}

.bio-panel-content {
    padding: 20px;
    padding-bottom: 40px; /* Added extra padding at the bottom to prevent content from being cut off */
    overflow-y: auto;
    height: calc(100% - 50px); /* Adjusted height to account for header */
    color: #000000; /* Changed to black for better readability */
    
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Custom scrollbar styling for WebKit browsers (Chrome, Safari, etc.) */
.bio-panel-content::-webkit-scrollbar {
    width: 6px;
}

.bio-panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.bio-panel-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
}

.bio-section {
    margin-bottom: 30px; /* Increased bottom margin for better spacing */
}

.bio-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background: transparent;
    border: none;
    padding: 0;
}

.bio-section-title {
    font-size: 1.0em;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Arial';
    margin: 0;
    flex: 1;
   margin-bottom: 10px;
    font-weight: bold;
}

.bio-collapse-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.bio-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bio-collapse-btn i {
    transition: transform 0.3s ease;
}

.bio-section.collapsed .bio-collapse-btn i {
    transform: rotate(180deg);
}

.bio-section.collapsed .bio-section-content,
.bio-section.collapsed .bio-section-content-wrapper {
    display: none;
}

.bio-section-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white; /* Changed to black for better readability */
    user-select: text; /* Allow text selection for content */
    cursor: text;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* Core Bio text should have smaller font size for better appearance */
#bio-core-info {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Core Bio layout - flexbox for side-by-side content */
.core-bio-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.bio-core-left {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bio-core-right {
    flex: 1;
}

.bio-profile-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(58,65,73, 0.6);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
    .core-bio-container {
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .bio-core-right {
        margin-bottom: 15px;
    }
}

.bio-quote {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    /*border-left: 3px solid var(--gold);*/
    margin-bottom: 10px;
    font-style: italic;
    color: white; /* Changed to black for better readability */
    user-select: text; /* Allow text selection for quotes */
    cursor: text;
    font-size: 1.1rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.bio-quote-author {
    text-align: right;
    font-size: 0.9rem;
    color: var(--gold-light);
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* Bio panel header */
.bio-panel-header {
    padding-bottom: 5px;
}

/* Bio fun facts list */
.bio-fun-facts {
    padding-left: 20px;
    margin: 0;
    user-select: text; /* Allow text selection for fun facts */
    cursor: text;
}

.bio-fun-facts li {
    color: white; /* Changed to black for better readability */
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
}

/* Bio Button styles */
#bio-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

#bio-button:hover {
    transform: scale(1.1);
    background-color: rgba(58,65,73, 0.5) !important;
}

#bio-button .hover-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(58,65,73, 0.0);
    transition: all 0.3s ease;
    z-index: 0;
}

#bio-button:hover .hover-ring {
    border-color: rgba(58,65,73, 0.8);
    box-shadow: 0 0 15px rgba(58,65,73, 0.5);
    transform: scale(1.1);
}

/* Story Button styles */
#story-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

#story-button:hover {
    transform: scale(1.1);
    background-color: rgba(58,65,73, 0.5) !important;
}

#story-button .hover-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(58,65,73, 0.0);
    transition: all 0.3s ease;
    z-index: 0;
}

#story-button:hover .hover-ring {
    border-color: rgba(58,65,73, 0.8);
    box-shadow: 0 0 15px rgba(58,65,73, 0.5);
    transform: scale(1.1);
}

/* Story button pulse animation */
@keyframes story-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.story-button-pulse {
    animation: story-pulse 1.5s infinite ease-in-out;
}

.story-button-pulse.interaction-done {
    animation: none;
}

/* Bio button pulse animation */
@keyframes bio-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.bio-button-pulse {
    animation: bio-pulse 1.5s infinite ease-in-out;
}

.bio-button-pulse.interaction-done {
    animation: none;
}

/* Mobile responsiveness for bio panel */
@media (min-width: 768px) and (max-width: 1200px) {
    .bio-panel {
        width: 30%; /* Tablet width (768px to 1200px) */
        min-width: 300px; /* Minimum width */
        height: 100vh; /* Full height */
    }
}

@media (max-width: 768px) {
    .bio-panel {
        width: 50%; /* Mobile width (under 768px) */
        min-width: unset; /* Remove min-width for mobile */
        height: 100vh; /* Full height */
        border-radius: 15px 0 0 15px;
    }
}