/* Mining Index - Complete CSS Design System */

/* ===========================
   COLORS & TYPOGRAPHY
   =========================== */

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --secondary: #1e3a5f;
    --secondary-light: #2d5a8f;
    --success: #10b981;
    --danger: #ef4444;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: rgba(0,0,0,0.1);
    --shadow-hover: rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p, .hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 400;
}

/* ===========================
   STATS SECTION
   =========================== */

.stats {
    background: var(--secondary);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.stats h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-box h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===========================
   CARDS
   =========================== */

.section {
    background: var(--white);
    margin: 40px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
}

.section h2 {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
}

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

.card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn, .btn-calculate, .btn-small {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.btn:hover, .btn-calculate:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-dark);
}

/* ===========================
   TABLES
   =========================== */

.miners-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.miners-table th {
    background: var(--secondary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.miners-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.miners-table tr:hover {
    background: var(--bg-light);
}

.miners-table a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.miners-table a:hover {
    text-decoration: underline;
}

/* ===========================
   FILTERS
   =========================== */

.filter-section {
    background: var(--white);
    padding: 30px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.filter-group input,
.filter-group select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--primary-dark);
}

.filter-btn.secondary {
    background: var(--text-light);
}

/* ===========================
   RESULTS
   =========================== */

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

.result-box {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border);
}

.result-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.result-value.positive {
    color: var(--success);
}

.result-value.negative {
    color: var(--danger);
}

.result-value.highlight {
    color: var(--primary);
    font-size: 32px;
}

/* ===========================
   KEY METRICS
   =========================== */

.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.metric {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.metric-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.metric-value.highlight {
    color: var(--primary);
    font-size: 32px;
}

/* ===========================
   PROFITABILITY
   =========================== */

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

.profit-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.profit-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.profit-value {
    font-size: 24px;
    font-weight: 700;
}

.profit-value.positive {
    color: var(--success);
}

.profit-value.negative {
    color: var(--danger);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .miners-table {
        font-size: 14px;
    }
    
    .miners-table th,
    .miners-table td {
        padding: 10px;
    }
}

/* ===========================
   BREADCRUMBS
   =========================== */

.breadcrumbs {
    padding: 20px 0;
    color: var(--text-light);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===========================
   SPECS & PRICING
   =========================== */

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

.spec-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.spec-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.spec-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.price-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* ===========================
   NOTES
   =========================== */

.note {
    background: #fef3c7;
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* ===========================
   CHARTS (PLACEHOLDER)
   =========================== */

.chart-placeholder {
    height: 300px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-top: 20px;
}

