/* Multi-platform follow CSS styles */
:root {
    --primary-color: #6132b8;  /* Updated to the requested purple */
    --secondary-color: #8a63d2; /* Lighter purple for secondary elements */
    --spotify-green: #1DB954;
    --instagram-gradient: linear-gradient(45deg, #FFDC80, #F56040, #833AB4, #405DE6);
    --facebook-blue: #4267B2;
    --soundcloud-orange: #FF5500;
    --dark-blue: #191C3D;
    --darker-blue: #12142A;
    --light-text: #FFFFFF;
    --gray-text: #9A9BB3;
    --check-green: #1DB954;
    --error-red: #FF3B30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: var(--darker-blue);
    color: var(--light-text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: var(--dark-blue);
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    overflow: hidden;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header p {
    color: var(--gray-text);
    font-size: 16px;
}

.artist-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.artist-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artist-avatar img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(97, 50, 184, 0.6);
}

.artist-details {
    margin-left: 15px;
}

.artist-details h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.artist-description {
    color: var(--gray-text);
    font-size: 14px;
}

/* Spotify Player Styles */
.spotify-player-container {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.spotify-player {
    width: 100%;
    height: 352px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.spotify-player iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: none;
}

.platforms-container {
    margin-top: 30px; /* Add padding between progress bar and platforms */
    margin-bottom: 25px;
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    transition: background 0.2s;
    position: relative; /* For positioning the direct link */
    min-height: 70px; /* Ensure consistent height for all items */
    cursor: pointer; /* Indicate it's clickable */
}

.platform-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Completely new checkbox styling to avoid caching issues */
.platform-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.platform-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(97, 50, 184, 0.4);
}

.platform-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* New approach: create a centered checkmark */
.platform-checkbox:checked:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1px; /* Adjust for visual balance */
    margin-left: 0px;
    width: 5px;
    height: 10px;
    border-style: solid;
    border-color: white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.platform-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.platform-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.platform-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-icon:hover::before {
    opacity: 1;
}

.platform-icon.spotify {
    background: linear-gradient(135deg, #1DB954, #1AA34A, #158f3e);
}

.platform-icon.spotify::before {
    background: linear-gradient(135deg, #23d65b, #1DB954, #1AA34A);
}

.platform-icon.instagram {
    background: linear-gradient(45deg, #FFDC80, #F56040, #833AB4, #405DE6);
}

.platform-icon.instagram::before {
    background: linear-gradient(45deg, #F56040, #833AB4, #405DE6, #FFDC80);
}

.platform-icon.facebook {
    background: linear-gradient(135deg, #17A9FD, #0165E1, #17A9FD);
}

.platform-icon.facebook::before {
    background: linear-gradient(135deg, #0165E1, #17A9FD, #0064FF);
}

.platform-icon.soundcloud {
    background: linear-gradient(135deg, #ff7700, #ff3300, #ff7700);
}

.platform-icon.soundcloud::before {
    background: linear-gradient(135deg, #ff3300, #ff7700, #ff5500);
}

.platform-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    z-index: 2;
    position: relative;
}

.platform-info {
    flex: 1;
}

.platform-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.platform-id {
    color: var(--gray-text);
    font-size: 13px;
}

.platform-status {
    display: flex;
    align-items: center;
    margin-left: auto;
    font-size: 14px;
    margin-right: 120px; /* Increased space for the direct link button */
}

.platform-status.followed {
    color: var(--check-green);
}

.platform-status svg {
    margin-left: 5px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--primary-color); /* Updated color */
    color: white;
    border: none;
    padding: 15px 0;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    box-shadow: 3px 4px 18px rgba(97, 50, 184, 0.35);
    animation: buttonPulse 6s ease-in-out infinite;
}

.btn-primary:hover {
    background: #7144d4; /* Lighter hover state */
    transform: translateY(-2px);
    box-shadow: 5px 6px 25px rgba(97, 50, 184, 0.5);
    animation: none; /* Stop the animation on hover */
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

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

.status-container {
    margin-bottom: 30px; /* Add more spacing after the progress bar */
}

.status-message {
    text-align: center;
    margin-bottom: 10px;
    min-height: 20px;
    color: var(--gray-text);
}

.progress-indicator {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* Completion message styles */
.completion-message {
    text-align: center;
    animation: fadeIn 0.5s forwards;
}

.completion-message h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0 25px;
    color: var(--light-text);
}

.success-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.platform-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
}

.platform-logos img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s;
}

.platform-logos img:hover {
    transform: scale(1.1);
}

.follow-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin: 25px 0;
}

.follow-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.follow-item:last-child {
    margin-bottom: 0;
}

.follow-platform-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.follow-status {
    display: flex;
    align-items: center;
    margin-left: auto;
    color: var(--check-green);
}

.follow-status svg {
    margin-left: 5px;
}

#continue-btn {
    min-width: 200px;
    margin: 0 auto;
    display: block;
}

.follow-item.error .follow-status {
    color: var(--error-red);
}

.completion-message h2.error {
    color: var(--error-red);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes buttonGlow {
    0% { box-shadow: 0 6px 18px rgba(97, 50, 184, 0.35); }
    50% { box-shadow: 0 8px 25px rgba(97, 50, 184, 0.65); }
    100% { box-shadow: 0 6px 18px rgba(97, 50, 184, 0.35); }
}

@keyframes buttonRightGlow {
    0% { box-shadow: 3px 4px 18px rgba(97, 50, 184, 0.35); }
    50% { box-shadow: 5px 6px 25px rgba(97, 50, 184, 0.65); }
    100% { box-shadow: 3px 4px 18px rgba(97, 50, 184, 0.35); }
}

@keyframes buttonHoverEffect {
    0% {
        background: var(--primary-color);
        transform: translateY(0);
        box-shadow: 3px 4px 18px rgba(97, 50, 184, 0.35);
    }
    100% {
        background: #7144d4;
        transform: translateY(-2px);
        box-shadow: 5px 6px 25px rgba(97, 50, 184, 0.5);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        background: var(--primary-color);
        transform: translateY(0);
        box-shadow: 3px 4px 18px rgba(97, 50, 184, 0.35);
    }
    50% {
        background: #7144d4;
        transform: translateY(-2px);
        box-shadow: 5px 6px 25px rgba(97, 50, 184, 0.5);
    }
}

/* Media queries for responsive layout */
@media (max-width: 500px) {
    .container {
        padding: 20px;
    }
    
    .spotify-player {
        height: 280px;
    }
    
    .action-buttons {
        flex-direction: column;
    }

    .platform-logos {
        flex-wrap: wrap;
    }
    
    .platform-logos img {
        width: 32px;
        height: 32px;
    }
}

/* Direct link styles */
.platform-direct-link {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100px;
    text-align: center;
}

.platform-direct-link:hover {
    color: var(--light-text);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
} 