/* Link Products Styling */

.link-product-badge {
    background: linear-gradient(135deg, #8a2be2 0%, #6a1bb2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.purchased-links-container {
    background: rgba(138, 43, 226, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.purchased-link-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.purchased-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateX(4px);
}

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

.link-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.link-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8a2be2 0%, #6a1bb2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.link-info {
    flex: 1;
}

.link-title {
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
}

.link-url {
    font-size: 0.85rem;
    color: #888;
    word-break: break-all;
}

.link-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-copy-link {
    background: linear-gradient(135deg, #8a2be2 0%, #6a1bb2 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.btn-copy-link.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-copy-link.copied i {
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.btn-open-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-open-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.view-links-btn {
    background: linear-gradient(135deg, #8a2be2 0%, #6a1bb2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-links-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.links-hidden {
    display: none;
}

.no-links-message {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.no-links-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #666;
}

/* Catalog display for link products */
.product-type-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #8a2be2 0%, #6a1bb2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.link-product-card {
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.link-product-card:hover {
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
}

/* Toast notification for copy success */
.copy-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .purchased-link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .link-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-copy-link,
    .btn-open-link {
        width: 100%;
        justify-content: center;
    }
    
    .link-url {
        font-size: 0.75rem;
    }
}
