/* Global Styles */
:root {
    --gold-primary: #D4AF37;
    --gold-secondary: #FFD700;
    --gold-light: #FFF6E0;
    --gold-dark: #996515;
    --dark-bg: #1A1A1A;
    --medium-bg: #2A2A2A;
    --light-bg: #333333;
    --text-light: #F5F5F5;
    --text-medium: #CCCCCC;
    --text-dark: #333333;
    --positive: #4CAF50;
    --negative: #F44336;
    --neutral: #2196F3;
    --oversold: #4CAF50;
    --overbought: #F44336;
    --bearish: #F44336;
    --bullish: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #F5F5F5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--dark-bg), var(--medium-bg));
    color: var(--gold-primary);
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.2em;
    color: var(--gold-secondary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--gold-secondary);
    border-bottom: 2px solid var(--gold-secondary);
}

/* Section Styles */
.section {
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.section h2 {
    font-size: 2rem;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--gold-primary);
    display: inline-block;
}

/* Executive Summary */
.summary-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.metric h3 {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.metric-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.oversold {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--oversold);
}

.overbought {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--overbought);
}

.bearish {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--bearish);
}

.bullish {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--bullish);
}

.positive {
    color: var(--positive);
}

.negative {
    color: var(--negative);
}

/* Price Analysis */
.chart-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    height: 400px;
}

.price-summary, .daily-movements {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.price-item {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 6px;
    text-align: center;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 0.3rem;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.data-table th, .data-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

.analysis-note {
    font-style: italic;
    color: var(--text-medium);
}

/* Technical Analysis */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.indicator-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.indicator-list {
    list-style: none;
}

.indicator-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.indicator-name {
    font-weight: 500;
    color: var(--text-medium);
}

.indicator-value {
    font-weight: 600;
    float: right;
}

.status-tag {
    font-size: 0.8rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.technical-outlook {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.technical-outlook ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.technical-outlook li {
    margin-bottom: 0.5rem;
}

/* Fundamental Factors */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.factor-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.factor-card h3 {
    color: var(--gold-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold-light);
}

.factors-summary {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.factors-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.factors-column {
    padding: 1.5rem;
    border-radius: 8px;
}

.factors-column h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.factors-column ul {
    margin-left: 1.5rem;
}

.factors-column li {
    margin-bottom: 0.5rem;
}

.bearish {
    background-color: rgba(244, 67, 54, 0.05);
    border-left: 4px solid var(--bearish);
}

.bearish h4 {
    color: var(--bearish);
}

.bullish {
    background-color: rgba(76, 175, 80, 0.05);
    border-left: 4px solid var(--bullish);
}

.bullish h4 {
    color: var(--bullish);
}

.factors-conclusion {
    font-style: italic;
    font-weight: 500;
}

/* Trading Recommendations */
.market-outlook {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.investor-profiles {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.profile-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
}

.profile-tab {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.profile-tab:hover {
    color: var(--gold-dark);
}

.profile-tab.active {
    color: var(--gold-dark);
    border-bottom: 3px solid var(--gold-primary);
}

.profile-content {
    display: none;
}

.profile-content.active {
    display: block;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.strategy-item {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
}

.strategy-item h5 {
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.strategy-item ul {
    margin-left: 1.5rem;
}

.strategy-rationale {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.strategy-box {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.strategy-box h5 {
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.strategy-box ul {
    margin-left: 1.5rem;
}

.key-levels {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.levels-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
    background: linear-gradient(to bottom, rgba(244, 67, 54, 0.05), rgba(255, 255, 255, 0.5), rgba(76, 175, 80, 0.05));
    border-left: 1px solid #e0e0e0;
}

.level {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 0.5rem;
    border-top: 1px dashed #ccc;
    display: flex;
    justify-content: space-between;
}

.level-price {
    font-weight: 700;
    font-size: 1.1rem;
    background-color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.level-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    background-color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.resistance-major {
    top: 0%;
}

.resistance-major .level-price {
    color: var(--bearish);
    border-left: 4px solid var(--bearish);
}

.resistance-second {
    top: 15%;
}

.resistance-second .level-price {
    color: #FF7043;
    border-left: 4px solid #FF7043;
}

.resistance-first {
    top: 30%;
}

.resistance-first .level-price {
    color: #FFA726;
    border-left: 4px solid #FFA726;
}

.current-price {
    top: 50%;
}

.current-price .level-price {
    color: var(--neutral);
    border-left: 4px solid var(--neutral);
    font-size: 1.2rem;
}

.support-first {
    top: 70%;
}

.support-first .level-price {
    color: #66BB6A;
    border-left: 4px solid #66BB6A;
}

.support-second {
    top: 85%;
}

.support-second .level-price {
    color: var(--bullish);
    border-left: 4px solid var(--bullish);
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.risk-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--gold-primary);
}

.risk-item h4 {
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.disclaimer {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid var(--text-medium);
}

.disclaimer h3 {
    color: var(--text-medium);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .key-metrics, 
    .price-grid, 
    .indicators-grid, 
    .factors-grid, 
    .factors-columns,
    .strategy-grid,
    .risk-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .levels-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
}
