/* Gold Copy Trading - Main Stylesheet */
/* CSS Variables for consistent theming */
:root {
    --gold: #d4af37;
    --gold-light: #f1cf5e;
    --dark: #1a1a1a;
    --dark-gray: #2d2d2d;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 20px;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--white);
}

/* Skip Navigation for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--gold);
    color: var(--dark);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 15px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Buttons and Interactive Elements */
.btn, .cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    min-height: 44px;
    min-width: 44px;
    text-align: center;
}

.btn:focus, .cta-button:focus {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

.btn-primary, .cta-button.primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover, .cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-secondary, .cta-button.secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover, .cta-button.secondary:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Cards and Containers */
.card {
    background: var(--dark-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.metric-card {
    background: var(--dark-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.metric-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--white);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 10px 0;
}

/* Performance and Statistics */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: var(--dark-gray);
    border: 2px solid var(--gold);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--white);
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--gold);
}

.stat-card .subvalue {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 5px 0 0 0;
    color: var(--white);
}

/* Specialized Card Types */
.profit-positive {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--dark);
}

.profit-positive .value,
.profit-positive h3,
.profit-positive .subvalue {
    color: var(--dark);
}

.accent-card {
    background: var(--dark);
    border-color: var(--gold-light);
}

.highlight-card {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--dark);
}

.highlight-card .value,
.highlight-card h3,
.highlight-card .subvalue {
    color: var(--dark);
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--gold);
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.highlight-box h2, .highlight-box h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.highlight-box p, .highlight-box li {
    color: var(--white);
    margin-bottom: 15px;
}

.highlight-box ul {
    margin: 15px 0;
    padding-left: 20px;
}

.highlight-box li {
    margin: 8px 0;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 400px;
    margin: 40px 0;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

/* FAQ Styles */
.faq-item {
    background: var(--dark-gray);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px;
    text-align: left;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
}

.faq-question:hover, .faq-question:focus {
    background: rgba(212, 175, 55, 0.1);
    outline: none;
}

.faq-question:focus {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

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

.faq-icon {
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--white);
    line-height: 1.6;
}

.faq-answer[hidden] {
    display: none;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gold);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn, .cta-button {
        width: 100%;
        min-width: auto;
        padding: 18px 24px;
    }

    .chart-container {
        height: 300px;
        padding: 15px;
    }

    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .metric-card {
        padding: 20px;
        min-height: 120px;
    }

    .metric-value {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .metric-card {
        padding: 15px;
        min-height: 100px;
    }

    .stat-card {
        padding: 20px;
        min-height: 100px;
    }

    .highlight-box {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .skip-link,
    .cta-buttons,
    .faq-question {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .card, .metric-card, .stat-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}