﻿
/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Trait report styling.
 */


/*
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Trait favorites styling.
 */

/**
 * Trait Favorites CSS
 * Styles for favorite trait buttons and related UI elements
 */

.favorite-button-container {
    display: inline-block;
    margin-left: 0.75rem;
    align-self: center;
}

.favorite-btn {
    background: transparent;
    border: 1px solid var(--dnagenics-gray-300);
    color: var(--dnagenics-gray-600);
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 38px;
    min-width: 100px;
    line-height: 1.2;
    white-space: nowrap;
}

.favorite-btn:hover {
    background: rgba(196, 164, 132, 0.15);
    border-color: #C4A484;
    color: #A48464;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.favorite-btn.favorited {
    background: #A48464;
    border-color: #A48464;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.favorite-btn.favorited:hover {
    background: #8B6F52;
    border-color: #8B6F52;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.favorite-btn i {
    transition: transform 0.3s ease;
}

.favorite-btn:hover i {
    transform: scale(1.1);
}

.favorite-btn.favorited i {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.favorite-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.favorite-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Favorites Filter Button */
#favoritesFilterBtn {
    transition: all 0.3s ease;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#favoritesFilterBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#favoritesFilterBtn.btn-dnagenics-primary {
    background: var(--dnagenics-lime);
    border-color: var(--dnagenics-lime);
    color: white;
    font-weight: 600;
}

#favoritesFilterBtn.btn-dnagenics-primary:hover {
    background: var(--dnagenics-lime-dark);
    border-color: var(--dnagenics-lime-dark);
}

#favoritesFilterBtn .favorite-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    border: none;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .favorite-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
        min-height: 32px;
        min-width: 80px;
    }
    
    .favorite-text {
        display: none;
    }
    
    #favoritesFilterBtn {
        font-size: 0.85rem;
        padding: 0.375rem 0.75rem;
    }
    
    #favoritesFilterBtn .favorite-text {
        display: none;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-success {
    background: var(--dnagenics-lime);
    color: white;
}

.notification-error {
    background: var(--dnagenics-red);
    color: white;
}

.favorite-count {
    background: var(--dnagenics-gray-200);
    color: var(--dnagenics-gray-700);
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
} 