/* 
 * Estilos para Análise de Investimentos: Brasil vs. EUA
 * Palette: Warm Neutrals with Enhanced Accents
 */

/* ===========================
   Base Styles
   =========================== */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #FDFBF8 0%, #F5F3EF 100%);
    color: #403A3A;
}

/* ===========================
   Navigation Tabs
   =========================== */
.tab-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-button.active {
    color: #2563EB;
    border-bottom-color: #2563EB;
    font-weight: 600;
}

.tab-button:hover:not(.active) {
    color: #1E40AF;
    transform: translateY(-2px);
}

/* ===========================
   Metric Cards
   =========================== */
.metric-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #2563EB);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.metric-card:hover::before {
    transform: scaleX(1);
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===========================
   Chart Containers
   =========================== */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 250px;
    max-height: 400px;
}

@media (min-width: 640px) {
    .chart-container {
        height: 300px;
    }
}

@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

/* ===========================
   Feature Cards (Next Steps)
   =========================== */
.feature-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.feature-card:hover {
    border-left-color: #3B82F6;
    transform: translateX(8px);
    background-color: #F9FAFB;
}

/* ===========================
   Section Cards
   =========================== */
.section-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid #E5E7EB;
}

/* ===========================
   Gradient Text
   =========================== */
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Tab Panes
   =========================== */
.tab-pane {
    animation: fadeIn 0.5s ease-in;
}

.tab-pane.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Mobile Responsive Improvements
   =========================== */

/* Prevent zoom on iOS when focusing inputs */
@media (max-width: 768px) {
    input,
    select,
    textarea,
    button {
        font-size: 16px !important;
    }

    /* Ensure touch-friendly buttons */
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better spacing for mobile cards */
    .metric-card {
        padding: 1rem !important;
    }

    /* Responsive chart containers */
    .chart-container {
        max-height: 300px !important;
    }

    /* Better text sizing for mobile */
    .tab-button {
        font-size: 12px;
        padding: 0.5rem 0.75rem;
    }

    /* Feature cards more compact */
    .feature-card {
        padding: 0.75rem !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .metric-card {
        padding: 0.75rem !important;
    }

    .chart-container {
        height: 200px !important;
        max-height: 250px !important;
    }

    /* Smaller text on tiny screens */
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.1rem;
    }
}
