/**
 * Dead West Demo - Outlaw Styles
 * Extended styling and animations
 */

/* Animation Ready State */
.animate-ready .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-ready .fade-up.visible {
    opacity: 1;
    transform: none;
}

/* Enhanced Table Styles */
.ledger th:first-child,
.ledger td:first-child {
    font-weight: 500;
}

.ledger td:last-child {
    text-align: right;
}

.ledger th:last-child {
    text-align: right;
}

/* Image hover effects */
.scene-shot img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scene-shot img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(139, 37, 0, 0.3);
}

/* Button pulse animation */
@keyframes dustPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(210, 105, 30, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(210, 105, 30, 0);
    }
}

.bounty-btn.primary {
    animation: dustPulse 2s infinite;
}

.bounty-btn.primary:hover {
    animation: none;
}

/* Navigation scrolled state */
.trail-nav.scrolled {
    background: rgba(26, 26, 26, 0.98);
}

/* FAQ item hover */
.inquiry-item:hover {
    background: rgba(139, 37, 0, 0.1);
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
}

/* Mobile menu animation */
@media (max-width: 768px) {
    .trail-links {
        transform: translateY(-10px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .trail-links.revealed {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Print improvements */
@media print {
    .territory {
        page-break-inside: avoid;
    }
    
    .ledger {
        font-size: 10pt;
    }
    
    a {
        color: inherit;
        text-decoration: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ledger td,
    .ledger th {
        border: 2px solid currentColor;
    }
    
    .bounty-btn {
        border: 2px solid currentColor;
    }
}

/* Dark mode enhancements (already dark by default) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme regardless of system preference */
}

/* Selection styling */
::selection {
    background: rgba(210, 105, 30, 0.5);
    color: #F5F5DC;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #8B2500;
    border-radius: 5px;
}

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

/* Loading state for images */
.scene-shot img {
    background: linear-gradient(135deg, #2D2D2D, #1A1A1A);
}

/* Table mobile enhancement */
@media (max-width: 768px) {
    .ledger-wrap {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .ledger th,
    .ledger td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Footer grid mobile */
@media (max-width: 600px) {
    .saloon-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
