/* Custom styles for Tarot Card Library */

/* Category button styles */
.category-btn {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.category-btn:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.category-btn.active {
    background-color: #4C1D95;
    color: white;
    border-color: #4C1D95;
}

/* Card hover effects */
.card-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Category badges */
.category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ensure card names are not transformed to uppercase */
.card-item h3 {
    text-transform: none !important;
}

.category-büyük-arcana {
    background-color: #7C3AED;
    color: white;
}

.category-kupa {
    background-color: #3B82F6;
    color: white;
}

.category-tilsim {
    background-color: #10B981;
    color: white;
}

.category-asa {
    background-color: #F59E0B;
    color: white;
}

.category-kılıç {
    background-color: #EF4444;
    color: white;
}

/* Form enhancements */
.form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #4C1D95;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4C1D95;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background-color: #10B981;
}

.toast.error {
    background-color: #EF4444;
}

.toast.info {
    background-color: #3B82F6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .card-item {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card-item {
        break-inside: avoid;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4C1D95;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4C1D95;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3730A3;
}

/* Animation for card appearance */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Empty state illustration */
.empty-state {
    opacity: 0.6;
    filter: grayscale(0.3);
}

/* Card number styling */
.card-number {
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #4C1D95;
}

/* Tarot-specific styling */
.tarot-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.tarot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4C1D95, #7C3AED, #F59E0B);
}

/* Search highlight */
.search-highlight {
    background-color: #FEF3C7;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
}
