/**
 * Trader Origin - Main Stylesheet
 * Consolidated CSS for all pages
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Custom Color Classes (Tailwind extensions)
   ========================================================================== */

.text-gold { color: #DAA520; }
.bg-gold { background-color: #DAA520; }
.border-gold { border-color: #DAA520; }

/* ==========================================================================
   Lucide Icons Font
   ========================================================================== */

.lucide {
    font-family: 'Lucide';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0) !important;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-answer {
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
}

.faq-answer.open {
    max-height: 1000px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    opacity: 1;
}

.faq-question .lucide-chevron-down {
    transition: transform 0.3s ease-in-out;
}

.faq-question[aria-expanded="true"] .lucide-chevron-down {
    transform: rotate(180deg);
}

/* ==========================================================================
   Banner & Text Effects
   ========================================================================== */

#rotating-banner-text {
    transition: opacity 0.3s ease-in-out;
}

.text-gradient-platinum {
    background: linear-gradient(90deg, #E5E7EB 0%, #C0C0C0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Image Modal
   ========================================================================== */

#image-modal {
    transition: opacity 0.3s ease-in-out;
}

#image-modal img,
#modal-image {
    max-width: 90vw;
    max-height: 85vh;
}

/* ==========================================================================
   Performance Table
   ========================================================================== */

.monthly-pnl-table-container {
    overflow-x: auto;
}

.loading {
    color: #6b7280;
}

.flash-update {
    background-color: rgba(218, 165, 32, 0.4);
    transition: background-color 0.1s ease-in-out;
}

/* ==========================================================================
   Genesis Page Specific
   ========================================================================== */

.hero-bg {
    background-color: #000000;
    background-image: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.1) 0%, rgba(0,0,0,0) 60%);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.5);
}

/* Carousel Scrollbar */
.carousel-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background-color: #4a5568;
    border-radius: 10px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background-color: #1a202c;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

button:disabled {
    background-color: #4A5568;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    #cookieConsent {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ==========================================================================
   Mobile Performance Table
   ========================================================================== */

@media (max-width: 1024px) {
    .monthly-pnl-table-container {
        position: relative;
    }

    .monthly-pnl-table-container::after {
        content: '← Scroll →';
        position: absolute;
        bottom: -24px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        color: #6b7280;
        white-space: nowrap;
    }

    .monthly-pnl-table-container table {
        font-size: 0.75rem;
    }

    .monthly-pnl-table-container th,
    .monthly-pnl-table-container td {
        padding: 0.5rem 0.5rem;
        white-space: nowrap;
    }
}

/* Hide advanced view hint text on mobile when simple view works better */
@media (max-width: 640px) {
    #simple-performance-view .performance-card {
        padding: 0.75rem;
    }

    #simple-performance-view .performance-card .text-2xl {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   ROI Calculator Custom Scrollbar
   ========================================================================== */

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #4a5568;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Firefox scrollbar */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #4a5568 transparent;
}
