/**
 * Styling for the pet facts toast notification
 */

.dog-fact-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    background-color: #fff;
    color: #333;
    border-left: 4px solid #3490dc; /* Default blue border */
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    padding: 16px;
    z-index: 9999;
    animation: slideIn 0.5s ease;
    transition: opacity 0.5s ease, border-color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dog-specific styling - blue theme */
.dog-fact-toast[data-pet-type="dog"] {
    border-left-color: #3490dc;
}

/* Cat-specific styling - purple theme */
.dog-fact-toast[data-pet-type="cat"] {
    border-left-color: #9561e2;
}

.dog-fact-toast.fade-out {
    opacity: 0;
}

.dog-fact-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.dog-fact-content {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
}

.dog-fact-header {
    margin-bottom: 4px;
    color: #3490dc;
    font-weight: 600;
}

/* Change header color based on pet type */
.dog-fact-toast[data-pet-type="dog"] .dog-fact-header {
    color: #3490dc;
}

.dog-fact-toast[data-pet-type="cat"] .dog-fact-header {
    color: #9561e2;
}

.dog-fact-content p {
    margin: 0;
    padding: 0;
}

.dog-fact-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    align-self: flex-start;
    line-height: 1;
}

.dog-fact-close:hover {
    color: #333;
}

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

/* Responsive adjustments */
@media (max-width: 480px) {
    .dog-fact-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dog-fact-toast {
        background-color: #1f2937;
        color: #f3f4f6;
        border-left-color: #60a5fa;
    }
    
    .dog-fact-toast[data-pet-type="dog"] {
        border-left-color: #60a5fa;
    }
    
    .dog-fact-toast[data-pet-type="cat"] {
        border-left-color: #c084fc;
    }
    
    .dog-fact-header {
        color: #60a5fa;
    }
    
    .dog-fact-toast[data-pet-type="dog"] .dog-fact-header {
        color: #60a5fa;
    }
    
    .dog-fact-toast[data-pet-type="cat"] .dog-fact-header {
        color: #c084fc;
    }
    
    .dog-fact-close {
        color: #9ca3af;
    }
    
    .dog-fact-close:hover {
        color: #f3f4f6;
    }
}