/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
    --bg-main: #060608;
    --card-bg: rgba(17, 18, 20, 0.88);
    --card-border: rgba(255, 255, 255, 0.04);
    --card-border-glow: rgba(255, 62, 62, 0.15);
    
    /* Theme Colors */
    --primary-red: #ff3e3e;
    --primary-red-hover: #ff1a1a;
    --primary-red-glow: rgba(255, 62, 62, 0.5);
    --accent-pink: #ff69b4;
    --accent-pink-glow: rgba(255, 105, 180, 0.4);
    --goth-black: #0c0d12;
    --text-normal: #dbdee1;
    --text-muted: #949ba4;
    --text-link: #00a8fc;
    
    /* Discord Specifics */
    --discord-dnd: #f23f43;
    --discord-nitro: #ff73fa;
    --spotify-green: #1db954;
    
    /* Font Families */
    --font-ui: 'Outfit', sans-serif;
    --font-title: 'Cinzel', serif;
    --font-goth: 'Cinzel Decorative', serif;
    --font-quote: 'Playfair Display', serif;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-normal);
    font-family: var(--font-ui);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: default;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 62, 62, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 62, 62, 0.6);
}

/* ==========================================
   BACKGROUND EFFECTS
   ========================================== */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle, transparent 40%, rgba(6, 6, 8, 0.8) 85%, rgba(0, 0, 0, 0.95) 100%);
    box-shadow: inset 0 0 100px rgba(255, 62, 62, 0.05);
}

/* ==========================================
   LAYOUT WRAPPER
   ========================================== */
.profile-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

/* ==========================================
   DISCORD PROFILE CARD
   ========================================== */
.profile-card {
    width: 100%;
    max-width: 480px;
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
                0 0 30px var(--card-border-glow);
    overflow: visible;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
}

.profile-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 
                0 0 40px rgba(255, 62, 62, 0.25);
}

/* Profile Banner */
.profile-banner-wrapper {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.profile-banner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.profile-card:hover .profile-banner {
    transform: scale(1.08);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(17, 18, 20, 0.95) 100%);
}

/* Profile Header Section */
.profile-header {
    padding: 0 16px;
    position: relative;
    height: 64px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Avatar overlapping banner */
.avatar-wrapper {
    position: absolute;
    left: 22px;
    top: -55px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #111214;
    padding: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.avatar-wrapper:hover {
    transform: scale(1.05) rotate(-3deg);
}

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

/* DND Status Ring */
.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--discord-dnd);
    border: 5px solid #111214;
    transition: transform 0.2s ease;
}

.status-indicator.dnd::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 2.5px;
    background-color: #111214;
    transform: translate(-50%, -50%);
    border-radius: 1px;
}

.avatar-wrapper:hover .status-indicator {
    transform: scale(1.1);
}

/* Badges Container */
.badges-container {
    display: flex;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge {
    color: var(--text-muted);
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.badge:hover {
    color: #fff;
    transform: translateY(-2px);
}

.badge-icon {
    transition: filter 0.2s ease;
}

.badge:hover .badge-icon {
    filter: drop-shadow(0 0 4px var(--primary-red));
}

.badge-icon-fa {
    font-size: 16px;
    filter: drop-shadow(0 0 2px rgba(255, 62, 62, 0.3));
}

.badge:hover .badge-icon-fa {
    filter: drop-shadow(0 0 5px var(--primary-red));
}

/* ==========================================
   PROFILE BODY
   ========================================== */
.profile-body {
    padding: 16px;
    background-color: rgba(20, 21, 24, 0.5);
    border-radius: 12px;
    margin: 8px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Identity & Names */
.user-identity {
    margin-bottom: 12px;
}

.display-name {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.pronouns {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.username-container {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.username {
    font-size: 14px;
    color: var(--text-normal);
    font-weight: 500;
}

.tag {
    font-size: 14px;
    color: var(--text-muted);
}

/* Custom Status */
.custom-status-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-normal);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: 10px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-status-container:hover {
    background-color: rgba(255, 62, 62, 0.08);
    border-color: rgba(255, 62, 62, 0.2);
}

.status-emoji {
    font-size: 15px;
}

.status-text {
    font-weight: 400;
}

.status-tooltip {
    position: absolute;
    right: 12px;
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-status-container:hover .status-tooltip {
    opacity: 1;
}

.divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 16px 0;
}

/* Sections */
.profile-section {
    margin-bottom: 20px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* About Me Custom Quote Styling */
.about-me-quote {
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.05) 0%, rgba(255, 105, 180, 0.05) 100%);
    border-left: 3px solid var(--primary-red);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.about-me-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 105, 180, 0.1), transparent 60%);
    pointer-events: none;
}

.quote-text {
    font-family: var(--font-quote);
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.2px;
    text-shadow: 0 0 10px rgba(255, 62, 62, 0.3);
    animation: textGlowPulse 4s infinite ease-in-out;
}

.quote-mark {
    font-family: var(--font-title);
    font-size: 26px;
    color: var(--primary-red);
    opacity: 0.5;
    position: absolute;
}

.quote-mark:first-of-type {
    top: 2px;
    left: 6px;
}

.quote-mark:last-of-type {
    bottom: -8px;
    right: 6px;
}

/* ==========================================
   CONNECTIONS / SOCIAL PILLS
   ========================================== */
.connections-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.connection-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-normal);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.connection-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.connection-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.connection-details {
    display: flex;
    flex-direction: column;
}

.connection-platform {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.connection-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.connection-arrow {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Hover States for Socials */
.connection-pill:hover {
    transform: translateX(4px);
    background-color: rgba(255, 255, 255, 0.03);
}

.connection-pill:hover .connection-arrow {
    transform: translateX(2px);
    opacity: 1;
    color: var(--primary-red);
}

/* Individual Social Hover Effects */
.instagram:hover {
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 0 10px rgba(225, 48, 108, 0.15);
}
.instagram:hover .connection-icon {
    color: #e1306c;
    transform: rotate(5deg) scale(1.1);
}

.tiktok:hover {
    border-color: rgba(0, 242, 234, 0.3);
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.1);
}
.tiktok:hover .connection-icon {
    color: #00f2ea;
    transform: rotate(-5deg) scale(1.1);
}

.tiktok-priv:hover {
    border-color: rgba(254, 44, 85, 0.4);
    box-shadow: 0 0 10px rgba(254, 44, 85, 0.15);
}
.tiktok-priv:hover .connection-icon {
    color: #fe2c55;
    transform: rotate(5deg) scale(1.1);
}

/* ==========================================
   SPOTIFY PRESENCE STYLES
   ========================================== */
.spotify-card {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.04) 0%, rgba(12, 13, 18, 0.6) 100%);
    border: 1px solid rgba(29, 185, 84, 0.1);
    border-radius: 8px;
    padding: 14px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.spotify-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(29, 185, 84, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.spotify-main {
    display: flex;
    gap: 14px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Album Cover and Vinyl Effect */
.album-cover-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    z-index: 2;
    position: relative;
    transition: transform 0.5s ease;
}

/* Spinning Animation on Play */
.album-cover.playing {
    animation: spin 8s linear infinite;
    border-radius: 50%;
}

.album-vinyl {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.8) 22%, transparent 24%, rgba(0,0,0,0.9) 50%, rgba(29, 185, 84, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.album-cover-wrapper:hover .album-cover.playing {
    transform: scale(0.9);
}

.album-cover-wrapper:hover .album-vinyl {
    opacity: 1;
    transform: translateX(15px) rotate(90deg);
}

/* Spotify Details */
.spotify-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.song-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.song-title:hover {
    color: var(--spotify-green);
    text-decoration: underline;
}

.song-artist, .song-album {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 1px;
}

/* Progress bar */
.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.progress-track {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--spotify-green);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-track:hover .progress-fill {
    background-color: #1ed760;
}

/* Media Controls */
.media-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: var(--spotify-green);
    border-color: var(--spotify-green);
    color: #000;
    transform: scale(1.05);
}

#play-pause-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* Spotify Embed (IFrame Container) */
.spotify-embed-container {
    margin-top: 14px;
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease, 
                margin-top 0.4s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.spotify-embed-container.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

/* ==========================================
   INTERACTIVE DRAGGABLE STICKERS
   ========================================== */
.draggable-sticker {
    position: absolute;
    z-index: 50;
    cursor: grab;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.draggable-sticker:active {
    cursor: grabbing;
}

.draggable-sticker img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 12px;
    border: 2.5px solid #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.draggable-sticker:hover img {
    transform: scale(1.08) rotate(3deg);
    border-color: var(--primary-red);
    box-shadow: 0 10px 20px rgba(255, 62, 62, 0.3);
}

/* Drag indicator badge */
.drag-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background-color: var(--primary-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
    transition: transform 0.2s ease;
    text-transform: uppercase;
}

.draggable-sticker:hover .drag-badge {
    transform: translateX(-50%) scale(1);
}

/* ==========================================
   SPAWNABLE PARTICLES
   ========================================== */
.click-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 20px;
    transform: translate(-50%, -50%);
    animation: particleFly 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Ambient glowing background blobs */
.ambient-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 62, 62, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

/* ==========================================
   FOOTER
   ========================================== */
.profile-footer {
    padding: 10px 16px;
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 11px;
    color: var(--text-muted);
    border-radius: 0 0 15px 15px;
}

/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes textGlowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 62, 62, 0.3), 0 0 2px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 18px rgba(255, 105, 180, 0.6), 0 0 5px rgba(255, 62, 62, 0.4);
    }
}

@keyframes particleFly {
    0% {
        transform: translate(-50%, -50%) scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.4) translate(var(--x), var(--y)) rotate(var(--r));
        opacity: 0;
    }
}

@keyframes floatGlow {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) translate(50px, 30px) scale(1.15);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .draggable-sticker img {
        width: 65px;
        height: 65px;
    }
    
    #kitty-sticker-1 {
        top: -30px !important;
        left: -30px !important;
    }
    
    #kitty-sticker-2 {
        bottom: -25px !important;
        right: -30px !important;
    }
    
    .profile-wrapper {
        padding: 15px 10px;
    }
    
    .profile-card {
        border-radius: 12px;
    }
    
    .profile-banner-wrapper {
        height: 130px;
    }
    
    .avatar-wrapper {
        width: 85px;
        height: 85px;
        top: -45px;
    }
    
    .status-indicator {
        width: 22px;
        height: 22px;
        border-width: 4px;
    }
    
    .display-name {
        font-size: 18px;
    }
}

/* ==========================================
   ENTRY OVERLAY & MUSIC AUTOPLAY
   ========================================== */
.entry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #060608;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    backdrop-filter: blur(20px);
}

.entry-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entry-content {
    text-align: center;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.entry-title {
    font-family: var(--font-goth);
    font-size: 3.5rem;
    letter-spacing: 4px;
    color: var(--primary-red);
    text-shadow: 0 0 20px var(--primary-red-glow);
    margin-bottom: 10px;
    animation: titlePulse 2s infinite ease-in-out;
}

.entry-subtitle {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.entry-heart {
    font-size: 2.5rem;
    color: var(--primary-red);
    animation: beat 1.2s infinite;
    display: inline-block;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 62, 62, 0.5)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 15px rgba(255, 62, 62, 0.8)); }
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.2); }
    50% { transform: scale(1.15); }
    70% { transform: scale(1.25); }
}
