/* Affiliate Actions Enhancement Styles */

/* Button states for Like/Dislike */
.liked {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.disliked {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%) !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Floating notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Affiliate floating notification */
.affiliate-notification {
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.affiliate-notification.closing {
    animation: slideOutRight 0.3s ease-in;
}

/* Premium download modal enhancements */
.premium-feature {
    position: relative;
    overflow: hidden;
}

.premium-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.premium-feature:hover::before {
    left: 100%;
}

/* Subscriber benefits animation */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.subscriber-benefit {
    animation: bounceIn 0.6s ease-out;
}

/* More options menu enhancement */
#more-options-menu {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#more-options-menu button:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* Hot badge animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hot-badge {
    animation: pulse 2s infinite;
}

/* Mobile-specific improvements */
@media (max-width: 640px) {
    .affiliate-notification {
        max-width: calc(100vw - 2rem);
        font-size: 0.875rem;
    }
    
    .premium-modal {
        margin: 1rem;
        max-height: 90vh;
    }
    
    .subscriber-modal {
        margin: 1rem;
        max-height: 90vh;
    }
}

/* Action button hover effects */
.action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.action-btn:hover::before {
    width: 100%;
    height: 100%;
}

/* Share modal enhancements */
.share-modal {
    backdrop-filter: blur(10px);
}

.share-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Loading spinner for affiliate buttons */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Affiliate card hover effects */
.affiliate-card-mobile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Success states */
.success-state {
    color: #059669 !important;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
}

/* Loading states */
.loading-state {
    opacity: 0.7;
    pointer-events: none;
}

.loading-state .fas {
    animation: spin 1s linear infinite;
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 0.5rem;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Responsive grid for affiliate links */
@media (max-width: 640px) {
    .affiliate-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .affiliate-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1025px) {
    .affiliate-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}