/* CryptoTavern Styles - Warm Tavern Theme */

/* Font Classes */
.font-cinzel {
    font-family: 'Cinzel', serif;
}

.font-lora {
    font-family: 'Lora', serif;
}

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

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

::-webkit-scrollbar-thumb {
    background: #3F2A1D;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5C4A3D;
}

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

/* Selection Color */
::selection {
    background: #D4AF37;
    color: #3F2A1D;
}

/* Custom Button Hover Effects */
.btn-tavern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-tavern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-tavern:hover::before {
    left: 100%;
}

/* Card Hover Lift */
.card-tavern {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-tavern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(63, 42, 29, 0.2);
}

/* Gold Accent Underline */
.link-gold {
    position: relative;
    text-decoration: none;
}

.link-gold::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.3s ease;
}

.link-gold:hover::after {
    width: 100%;
}

/* Hero Gradient Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-gradient {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Glow Effect for Important Elements */
.glow-gold {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Code Block Styling */
/* ============================================================
   Blog Post Prose Styles (.prose-tavern)
   Applied to rendered Markdown in _layouts/post.html
   ============================================================ */
.prose-tavern h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #3F2A1D;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.prose-tavern h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #3F2A1D;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #D4AF37;
}
.prose-tavern h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #5C4A3D;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.prose-tavern p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}
.prose-tavern a {
    color: #8B6914;
    text-decoration: underline;
    transition: color 0.2s;
}
.prose-tavern a:hover { color: #3F2A1D; }
.prose-tavern strong, .prose-tavern b {
    font-weight: 700;
    color: #3F2A1D;
}
.prose-tavern em, .prose-tavern i { font-style: italic; }
.prose-tavern ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.prose-tavern ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.prose-tavern li {
    margin-bottom: 0.4rem;
    line-height: 1.75;
}
.prose-tavern blockquote {
    border-left: 4px solid #D4AF37;
    padding: 0.5rem 1rem;
    font-style: italic;
    color: #5C4A3D;
    background: #F5E6C8;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}
.prose-tavern code {
    background: #E8D9B5;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.875em;
    font-family: monospace;
    color: #3F2A1D;
}
.prose-tavern pre {
    background: #2D1F16;
    color: #D4AF37;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}
.prose-tavern pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.prose-tavern hr {
    border: none;
    border-top: 2px solid #D4AF37;
    margin: 2rem 0;
}
.prose-tavern table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.prose-tavern th {
    background: #3F2A1D;
    color: #D4AF37;
    padding: 0.5rem 1rem;
    text-align: left;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
}
.prose-tavern td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #E8D9B5;
}
.prose-tavern tr:nth-child(even) td { background: #F5E6C8; }

/* Form Input Focus States */
input:focus,
textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

/* Product Card Badge */
.badge-free {
    background: linear-gradient(135deg, #10B981, #059669);
}

.badge-paid {
    background: linear-gradient(135deg, #D4AF37, #8B6914);
}

/* Loading Animation */
@keyframes tavernPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-tavern {
    animation: tavernPulse 2s ease-in-out infinite;
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    .bg-[#3F2A1D] {
        background: black;
    }
    
    .text-[#D4AF37] {
        color: #FFD700;
    }
}