/* Jump Showdown Wiki - Custom Styles */

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

/* Contrast improvements for brand colors */
.bg-primary {
    background-color: #C10F0F !important;
}

.text-primary {
    color: #FF4D4D !important;
}

.border-primary {
    border-color: #FF4D4D !important;
}

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

::-webkit-scrollbar-track {
    background: #0D0D0D;
}

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

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

/* Copy button success state */
.copy-btn.copied {
    background-color: #22c55e !important;
}

/* Animation for copy feedback */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.copy-btn.copied {
    animation: pulse 0.3s ease-in-out;
}

/* FAQ toggle animation */
.faq-toggle span {
    transition: transform 0.2s ease;
}

.faq-toggle.active span {
    transform: rotate(45deg);
}

/* Card hover effects */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(236, 19, 19, 0.1);
}

/* Table responsive */
@media (max-width: 640px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Selection color */
::selection {
    background-color: #EC1313;
    color: white;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #EC1313;
    outline-offset: 2px;
}

/* Prose styles for content pages */
.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin-bottom: 1rem;
}

.prose h2 {
    margin-top: 2rem;
}

/* Hero background fallback */
.hero-bg {
    background: linear-gradient(135deg, #0D0D0D 0%, #1a1a1a 50%, #0D0D0D 100%);
}

/* Code blocks */
code {
    background-color: #1A1A1A;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #22c55e;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s;
}

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

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