/**
 * Bamboo Ways Demo - Jade Theme Styles
 * Dynasty naming convention
 */

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

.animate-ready .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Table Styles */
.jade-table {
    border: 1px solid #e0e0e0;
}

.jade-table th:first-child {
    border-radius: 8px 0 0 0;
}

.jade-table th:last-child {
    border-radius: 0 8px 0 0;
}

/* Enhanced Button Effects */
.lotus-btn {
    position: relative;
    overflow: hidden;
}

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

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

/* FAQ Item Hover */
.wisdom-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wisdom-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Screenshot Hover */
.scroll-gallery img {
    transition: transform 0.3s ease;
}

.scroll-gallery figure:hover img {
    transform: scale(1.02);
}

/* Focus Visible Styles */
:focus-visible {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}

/* Link Styles */
.scroll-section a:not(.lotus-btn) {
    color: #4CAF50;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.scroll-section a:not(.lotus-btn):hover {
    color: #388E3C;
}

/* Highlight Text */
.highlight-text {
    background: linear-gradient(120deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

.pagoda-column p {
    color: var(--gold);
    margin-bottom: 15px;
    font-family: var(--emperor-font);
    font-weight: bold;
}

/* Table Accent Row */
.jade-table tr.accent {
    background: #e8f5e9;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .lotus-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lotus-btn {
        text-align: center;
    }
    
    .scroll-gallery {
        grid-template-columns: 1fr;
    }
    
    .wisdom-item {
        padding: 15px;
    }
    .fortune-warning {
        font-size: 10px !important;
    }
}

/* Print Styles */
@media print {
    .fortune-warning,
    .temple-header,
    .lantern-overlay,
    .bamboo-mobile-cta,
    .lotus-buttons {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        background: white;
        color: black;
    }
    
    .scroll-section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .jade-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .lotus-btn::before {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .jade-table th {
        background: #000;
    }
    
    .lotus-btn.primary {
        background: #000;
        border: 2px solid #fff;
    }
    
    .wisdom-item {
        border: 2px solid #000;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --mist: #1a1a2e;
        --ink: #f5f5f0;
    }
}
