/* Additional custom styles beyond Tailwind CSS */

/* Dark mode styles */
.dark {
    color-scheme: dark;
}

/* Card hover effect */
.hover\:transform:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sentiment badge styles */
.sentiment-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sentiment-badge-bullish {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dark .sentiment-badge-bullish {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.sentiment-badge-bearish {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dark .sentiment-badge-bearish {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.sentiment-badge-neutral {
    background-color: rgba(156, 163, 175, 0.1);
    color: #6b7280;
}

.dark .sentiment-badge-neutral {
    background-color: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

/* Keyword highlighting */
.keyword-highlight {
    background-color: rgba(253, 224, 71, 0.3);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

.dark .keyword-highlight {
    background-color: rgba(253, 224, 71, 0.15);
}

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

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

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

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

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(203, 213, 224, 0.3);
    border-radius: 50%;
    border-top: 3px solid #3b82f6;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Editor's pick badge */
.editors-pick {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(79, 70, 229, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* News card image overlay gradient */
.news-card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Fear and Greed index custom styles */
.fear-greed-meter {
    position: relative;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(to right, #ef4444, #f59e0b, #10b981);
}

.fear-greed-indicator {
    position: absolute;
    width: 12px;
    height: 30px;
    background-color: white;
    border: 2px solid #1f2937;
    border-radius: 2px;
    top: 0;
    transform: translateX(-50%);
    z-index: 10;
}

.dark .fear-greed-indicator {
    border-color: white;
    background-color: #1f2937;
} 