:root {
    --primary-color: #4c6ef5;
    --secondary-color: #748ffc;
    --accent-color: #ff6b6b;
    --background: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #868e96;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    filter: blur(80px);
    opacity: 0.6;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.gradient-sphere.secondary {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 50px) rotate(90deg); }
    50% { transform: translate(0, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 50px) rotate(270deg); }
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    backdrop-filter: blur(10px);
}

.share-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
}

.share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.share-button:active {
    transform: scale(0.95);
}

.share-button svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.profile {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.profile-image-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    border-radius: 15px;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(76, 110, 245, 0.2), rgba(255, 107, 107, 0.2));
    mix-blend-mode: overlay;
}

.profile h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 500px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-item:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.95);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(76, 110, 245, 0.1);
    transition: all 0.3s ease;
}

.link-item:hover .icon-wrapper {
    background: rgba(76, 110, 245, 0.15);
    transform: scale(1.1);
}

.icon-wrapper img {
    width: 24px;
    height: 24px;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.arrow {
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.link-item:hover .arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .profile-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .profile h1 {
        font-size: 28px;
    }
    
    .bio {
        font-size: 14px;
        padding: 0 15px;
    }
    
    .link-item {
        padding: 14px 20px;
    }
    
    .icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .link-title {
        font-size: 15px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .toast {
        font-size: 13px;
        padding: 10px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gradient-sphere {
        animation: none;
    }
    
    .link-item:hover {
        transform: none;
    }
}

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 1000;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    bottom: max(30px, env(safe-area-inset-bottom, 30px));
}

.icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper.tiktok svg {
    fill: #000000;
}

.icon-wrapper.twitter svg {
    fill: #1DA1F2;
}

.icon-wrapper.spotify svg {
    fill: #1DB954;
}

.icon-wrapper.instagram svg {
    fill: #E4405F;
}

.icon-wrapper.apple-music svg {
    fill: #FA243C;
}

.link-item:hover .icon {
    transform: scale(1.1);
}

/* Gradient background for icon wrappers */
.icon-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.link-item:hover .icon-wrapper {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Special styling for each platform */
.icon-wrapper.tiktok {
    background: linear-gradient(45deg, #000000, #ffffff);
}

.icon-wrapper.twitter {
    background: linear-gradient(45deg, #1DA1F2, #14171A);
}

.icon-wrapper.spotify {
    background: linear-gradient(45deg, #1DB954, #191414);
}

.icon-wrapper.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.icon-wrapper.apple-music {
    background: linear-gradient(45deg, #FA243C, #FB5C74);
}

/* Make icons white on gradient backgrounds */
.icon-wrapper.tiktok svg,
.icon-wrapper.twitter svg,
.icon-wrapper.spotify svg,
.icon-wrapper.instagram svg,
.icon-wrapper.apple-music svg {
    fill: white;
}

/* Add these with your other icon-wrapper styles */
.icon-wrapper.boomplay {
    background: linear-gradient(45deg, #FF1B1B, #FF4B4B);
}

.icon-wrapper.audiomack {
    background: linear-gradient(45deg, #FFA200, #FF7C00);
}

.icon-wrapper.boomplay svg,
.icon-wrapper.audiomack svg {
    fill: white;
}

/* Add these animation effects for the new platforms */
.link-item:hover .icon-wrapper.boomplay {
    box-shadow: 0 4px 12px rgba(255, 27, 27, 0.3);
}

.link-item:hover .icon-wrapper.audiomack {
    box-shadow: 0 4px 12px rgba(255, 162, 0, 0.3);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .share-button {
        top: max(20px, env(safe-area-inset-top, 20px));
        right: max(20px, env(safe-area-inset-right, 20px));
        width: 40px;
        height: 40px;
    }

    .toast {
        font-size: 13px;
        padding: 10px 20px;
        max-width: 90%;
        white-space: normal;
    }
}

/* Add support for dark mode */
@media (prefers-color-scheme: dark) {
    .share-button {
        background: rgba(255, 255, 255, 0.8);
    }
    
    .toast {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Audio Player Styles */
.audio-player-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 0 20px;
}

.audio-player {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* For direct audio player */
.audio-player audio {
    width: 100%;
    margin-top: 16px;
}

/* For Audiomack embed */
.audiomack-embed {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: white;
    margin: 0 auto;
    display: block;
}

.track-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.track-artwork {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 16px;
    object-fit: cover;
}

.track-details {
    display: flex;
    flex-direction: column;
}

.track-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.track-artist {
    font-size: 14px;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.play-pause {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-pause:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}

.play-pause svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.play-pause .pause-icon {
    display: none;
}

.play-pause.playing .play-icon {
    display: none;
}

.play-pause.playing .pause-icon {
    display: block;
}

.progress-container {
    flex-grow: 1;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .audio-player-container {
        padding: 0 15px;
    }
    
    .audio-player {
        padding: 12px;
    }
    
    .track-artwork {
        width: 50px;
        height: 50px;
    }
    
    .track-title {
        font-size: 14px;
    }
    
    .track-artist {
        font-size: 12px;
    }
} 