/* Platform-specific colors */
.platform-instagram { background-color: #E1306C !important; }
.platform-twitter { background-color: #1DA1F2 !important; }
.platform-discord { background-color: #5865F2 !important; }
.platform-telegram { background-color: #0088cc !important; }
.platform-snapchat { background-color: #FFFC00 !important; color: #000000 !important; }
.platform-facebook { background-color: #4267B2 !important; }
.platform-youtube { background-color: #FF0000 !important; }
.platform-tiktok { background-color: #000000 !important; }
.platform-pinterest { background-color: #E60023 !important; }
.platform-linkedin { background-color: #0077B5 !important; }
.platform-github { background-color: #333333 !important; }
.platform-twitch { background-color: #9146FF !important; }

/* Animation for platform cards */
.platform-card {
    transition: transform 0.2s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.platform-card:hover {
    transform: translateY(-2px);
}

/* Status animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.checking-status {
    animation: pulse 1.5s infinite;
}

/* Custom scrollbar for results */
#results {
    max-height: 80vh;
    overflow-y: auto;
}

#results::-webkit-scrollbar {
    width: 8px;
}

#results::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

#results::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#results::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Platform icon container */
.platform-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    transition: transform 0.2s ease-in-out;
}

.platform-card:hover .platform-icon {
    transform: scale(1.1);
}

/* Status indicators */
.status-available {
    color: #10B981;
    font-weight: 500;
}

.status-taken {
    color: #EF4444;
    font-weight: 500;
}

.status-error {
    color: #F59E0B;
    font-weight: 500;
}

/* Responsive grid adjustments */
@media (max-width: 640px) {
    #platforms {
        grid-template-columns: 1fr;
    }
    
    .platform-icon {
        width: 36px;
        height: 36px;
    }
}

/* Loading animation */
.loading-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.loading-wave div {
    width: 3px;
    height: 12px;
    background: currentColor;
    animation: wave 1s infinite;
    border-radius: 2px;
}

.loading-wave div:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-wave div:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes wave {
    0%, 40%, 100% {
        transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1);
    }
}
