/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --presenceUsernameColor: #ff69b4;
    --presenceStatusColor: #ff1493;
    --textColor: #d63384;
    --textColorDarker: #c71585;
    --iconColor: #ffffff;
    --backgroundColor: #ffe4e1;
    --colorUsernameGlow: 0px 0px 16.5px #ff69b4;
    --usernameEffects: url(https://assets.guns.lol/sparkle_pink.gif), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="sparkle"><stop offset="0%" stop-color="%23ff69b4" stop-opacity="1"/><stop offset="100%" stop-color="%23ff1493" stop-opacity="0"/></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23sparkle)"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="url(%23sparkle)"><animate attributeName="opacity" values="0;1;0" dur="1.5s" repeatCount="indefinite"/></circle><circle cx="50" cy="70" r="2.5" fill="url(%23sparkle)"><animate attributeName="opacity" values="0;1;0" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="30" cy="80" r="1" fill="url(%23sparkle)"><animate attributeName="opacity" values="0;1;0" dur="1.8s" repeatCount="indefinite"/></circle><circle cx="70" cy="50" r="1.8" fill="url(%23sparkle)"><animate attributeName="opacity" values="0;1;0" dur="2.2s" repeatCount="indefinite"/></circle></svg>');
    --buttonBackground: rgba(255, 105, 180, 0.3);
    --buttonBorder: 2px solid rgba(255, 105, 180, 0.5);
    --buttonRadius: 12px;
    --buttonBackgroundHover: rgba(255, 105, 180, 0.5);
    --buttonBorderHover: 2px solid rgba(255, 20, 147, 0.7);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--backgroundColor);
    min-height: 100vh;
    color: var(--textColor);
    line-height: 1.6;
    display: flex;
    transition: background-color 2s cubic-bezier(0.16, 1, 0.3, 1), color 2s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Blurry Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffe4e1, #ffb6c1, #ffc0cb);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    filter: blur(8px);
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Entrance Screen */
.entrance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 228, 225, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.entrance-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entrance-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff1493;
    text-shadow: 0px 0px 20px #ff69b4;
    animation: pulse 2s infinite;
    background-image: var(--usernameEffects);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ff1493;
    background-clip: text;
    position: relative;
    z-index: 1001;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Main Content */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

/* Profile Section */
.profile-section {
    text-align: center;
    background: transparent;
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.profile-img-container {
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid var(--presenceUsernameColor);
    box-shadow: var(--colorUsernameGlow);
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.username {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--presenceUsernameColor);
    position: relative;
    display: inline-block;
    text-shadow: var(--colorUsernameGlow);
    filter: blur(2px);
    transition: filter 0.3s ease, transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
    background-image: var(--usernameEffects);
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--presenceUsernameColor);
    background-clip: text;
}

.username::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--usernameEffects);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
    filter: blur(0px);
    opacity: 0.8;
}

.username:hover {
    filter: blur(0px) !important;
    transform: scale(1.05);
    color: #ff1493;
    -webkit-text-fill-color: #ff1493;
    text-shadow: 0px 0px 25px #ff69b4;
}

.username:hover::before {
    opacity: 1;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--presenceStatusColor);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, 
        rgba(255, 105, 180, 0.3), 
        rgba(147, 51, 234, 0.2), 
        rgba(59, 130, 246, 0.1));
    border: 2px solid rgba(255, 105, 180, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    backdrop-filter: blur(8px);
    filter: blur(1px);
    animation: float 3s ease-in-out infinite;
    box-shadow: 
        0 8px 32px rgba(255, 105, 180, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

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

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 105, 180, 0.4),
        rgba(147, 51, 234, 0.3),
        rgba(59, 130, 246, 0.2),
        transparent);
    transition: left 0.6s ease;
    filter: blur(2px);
}

.social-link::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 105, 180, 0.3) 0%, 
        rgba(147, 51, 234, 0.2) 30%,
        rgba(59, 130, 246, 0.1) 60%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(3px);
}

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

.social-link:hover::after {
    opacity: 1;
}

.social-link:hover {
    background: linear-gradient(135deg, 
        rgba(255, 105, 180, 0.5), 
        rgba(147, 51, 234, 0.4), 
        rgba(59, 130, 246, 0.3));
    border: 2px solid rgba(147, 51, 234, 0.6);
    transform: translateY(-3px) rotate(3deg) scale(1.1);
    box-shadow: 
        0 12px 40px rgba(255, 105, 180, 0.4),
        0 8px 32px rgba(147, 51, 234, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(255, 255, 255, 0.2);
    filter: blur(0px);
    backdrop-filter: blur(12px);
}

.social-link i {
    font-size: 1.3rem;
    z-index: 1;
    filter: drop-shadow(0px 0px 8px rgba(255, 105, 180, 0.8));
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff69b4, #9333ea, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link:hover i {
    filter: drop-shadow(0px 0px 15px rgba(147, 51, 234, 1));
    transform: scale(1.2);
    background: linear-gradient(135deg, #ff1493, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Views */
.views {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 0.8rem 1.2rem;
    z-index: 100;
    transition: all 0.3s ease;
}

.views i {
    font-size: 1rem;
    background: linear-gradient(135deg, #ff69b4, #9333ea, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 0px 3px rgba(255, 105, 180, 0.6));
}

.views span {
    font-weight: 600;
    background: linear-gradient(135deg, #ff69b4, #9333ea, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 0px 5px rgba(147, 51, 234, 0.4));
}

.views:hover {
    transform: scale(1.05);
}

.views:hover i {
    filter: drop-shadow(0px 0px 6px rgba(59, 130, 246, 0.8));
}

.views:hover span {
    filter: drop-shadow(0px 0px 8px rgba(255, 105, 180, 0.6));
}

/* Responsive Design */
@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .username {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
    }
}

/* Profile Showcase Grid */
.profile-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.profile-showcase.visible {
    opacity: 1;
    visibility: visible;
}

.showcase-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.most-viewed {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #ff6b6b;
    padding: 15px 20px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    z-index: 1000;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
    background: transparent;
    border: none;
}

.most-viewed::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
        transparent 30%,
        rgba(255, 105, 180, 0.1) 50%,
        transparent 70%);
    border-radius: 12px;
    z-index: -1;
    animation: shimmer 3s infinite;
}

.most-viewed::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
    animation: float-particle 4s infinite;
}

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

@keyframes float-particle {
    0% { 
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translate(-10px, -5px) scale(1);
        opacity: 1;
    }
    20% {
        transform: translate(10px, 5px) scale(1);
        opacity: 1;
    }
    30% {
        transform: translate(5px, 10px) scale(1);
        opacity: 1;
    }
    40% {
        transform: translate(-5px, 15px) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-10px, 10px) scale(1);
        opacity: 1;
    }
    60% {
        transform: translate(5px, 5px) scale(1);
        opacity: 1;
    }
    70% {
        transform: translate(-15px, 0px) scale(1);
        opacity: 1;
    }
    80% {
        transform: translate(-10px, -5px) scale(1);
        opacity: 1;
    }
    90% {
        transform: translate(-20px, -10px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Profile Cards */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.6s ease-out;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 105, 180, 0.15), 
        rgba(147, 51, 234, 0.1),
        rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.8s ease-out;
    filter: blur(30px);
}

.profile-card:hover::before {
    opacity: 0.8;
}

.profile-card:hover {
    transform: translateY(-5px);
    transition: all 0.8s ease-out;
}

.profile-card-img-container {
    margin-bottom: 1rem;
    position: relative;
}

.profile-card-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--presenceUsernameColor);
    box-shadow: var(--colorUsernameGlow);
    filter: grayscale(100%) contrast(1.1) blur(1px);
    transition: all 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.profile-card:hover .profile-card-img {
    filter: grayscale(0%) contrast(1.1) blur(0px);
    transition: all 0.8s ease-out;
}

.profile-card-name {
font-size: 1.5rem;
font-weight: 600;
color: var(--presenceUsernameColor);
position: relative;
z-index: 1;
}

.profile-card:hover .profile-card-name {
    transition: filter 0.8s ease-out;
}

/* Profile Page (for separate HTML files) */
.profile-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.profile-page .profile-section {
    text-align: center;
    background: transparent;
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.profile-page .back-btn {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1001;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #ff69b4;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.profile-page .back-btn:hover {
    color: #ff1493;
    transform: translateX(-5px);
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
}

.profile-page .views {
    margin-top: 1.5rem;
}

/* Audio Controls - Top Left */
.audio-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.mute-btn {
    background: transparent;
    border: none;
    color: #ff69b4;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
}

.mute-btn:hover {
    color: #ff1493;
    transform: scale(1.1);
}

.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(255, 105, 180, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4, #93c5fd);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

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

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4, #93c5fd);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.volume-percentage {
    color: #ff69b4;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 35px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.volume-slider-container:hover .volume-percentage,
.volume-slider:active ~ .volume-percentage,
.volume-slider:focus ~ .volume-percentage {
    opacity: 1;
}

/* Profile Views Container (old - keep for compatibility) */
.profile-views {
    display: none;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.profile-views.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-view {
    display: none;
    text-align: center;
}

.profile-view.active {
    display: block;
}

/* Responsive Design for Showcase */
@media (max-width: 600px) {
    .profiles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .showcase-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-card-img {
        width: 100px;
        height: 100px;
    }
    
    .back-btn {
        top: 10px;
        left: 10px;
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Loading Spinner - Animated Light Blue Glassy */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    z-index: 9999;
    display: none;
}

.loading-spinner.active {
    display: block;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(147, 197, 253, 0.4), 
        rgba(96, 165, 250, 0.2),
        rgba(59, 130, 246, 0.1));
    backdrop-filter: blur(8px);
    border: 2px solid rgba(147, 197, 253, 0.3);
    box-shadow: 
        0 0 30px rgba(147, 197, 253, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: glassy-spin 2s ease-in-out infinite, glassy-pulse 1.5s ease-in-out infinite;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 50%;
    border: 6px solid transparent;
    border-top-color: rgba(147, 197, 253, 0.8);
    border-right-color: rgba(96, 165, 250, 0.6);
    filter: blur(1px);
    animation: chase-spin 1s linear infinite;
}

@keyframes glassy-spin {
    0% {
        transform: rotate(0deg) scale(1);
        box-shadow: 0 0 30px rgba(147, 197, 253, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        box-shadow: 0 0 50px rgba(147, 197, 253, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
        box-shadow: 0 0 30px rgba(147, 197, 253, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

@keyframes glassy-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes chase-spin {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

/* Profile-specific Themes */
body.profile-vm3q {
    --presenceStatusColor: #8b5cf6;
    --textColor: #7c3aed;
    --textColorDarker: #6d28d9;
    --backgroundColor: #f3e8ff;
    --colorUsernameGlow: 0px 0px 16.5px #a78bfa;
}

body.profile-pepsi {
    --presenceStatusColor: #6b7280;
    --textColor: #374151;
    --textColorDarker: #1f2937;
    --iconColor: #ffffff;
    --backgroundColor: #f9fafb;
    --colorUsernameGlow: 0px 0px 16.5px #9ca3af;
    --buttonBackground: rgba(107, 114, 128, 0.3);
    --buttonBorder: 2px solid rgba(107, 114, 128, 0.5);
    --buttonBackgroundHover: rgba(107, 114, 128, 0.5);
    --buttonBorderHover: 2px solid rgba(55, 65, 81, 0.7);
}

body.profile-zenny {
    --presenceStatusColor: #ec4899;
    --textColor: #db2777;
    --textColorDarker: #be185d;
    --backgroundColor: #fce7f3;
    --colorUsernameGlow: 0px 0px 16.5px #f472b6;
}

body.profile-ghostcly {
    --presenceStatusColor: #6366f1;
    --textColor: #4f46e5;
    --textColorDarker: #4338ca;
    --backgroundColor: #e0e7ff;
    --colorUsernameGlow: 0px 0px 16.5px #818cf8;
}

body.profile-egghead {
    --presenceStatusColor: #f59e0b;
    --textColor: #d97706;
    --textColorDarker: #b45309;
    --iconColor: #ffffff;
    --backgroundColor: #fef3c7;
    --colorUsernameGlow: 0px 0px 16.5px #fbbf24;
}

body.profile-disabledboy {
    --presenceStatusColor: #6b7280;
    --textColor: #374151;
    --textColorDarker: #1f2937;
    --iconColor: #ffffff;
    --backgroundColor: #f9fafb;
    --colorUsernameGlow: 0px 0px 16.5px #9ca3af;
}

body.profile-arrandildoprice {
    --presenceStatusColor: #dc2626;
    --textColor: #b91c1c;
    --textColorDarker: #991b1b;
    --iconColor: #ffffff;
    --backgroundColor: #fee2e2;
    --colorUsernameGlow: 0px 0px 16.5px #ef4444;
}
