/* BTC Signal Tracker - Dark Theme */

body {
    background-color: #0d1117;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

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

/* Header */
.header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #21262d;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 28px;
    margin: 0;
    color: #f0883e;
    letter-spacing: 1px;
}

.header .subtitle {
    color: #8b949e;
    font-size: 14px;
    margin-top: 4px;
}

/* Price banner */
.price-banner {
    text-align: center;
    padding: 24px;
    background: #161b22;
    border-radius: 12px;
    border: 1px solid #21262d;
    margin-bottom: 24px;
}

.price-value {
    font-size: 48px;
    font-weight: 700;
    color: #e6edf3;
}

.price-change-positive {
    color: #3fb950;
    font-size: 20px;
    margin-left: 12px;
}

.price-change-negative {
    color: #f85149;
    font-size: 20px;
    margin-left: 12px;
}

/* Consolidated signal row */
.signal-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
}

.consolidated-signal {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.help-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    color: #8b949e;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.help-btn:hover {
    color: #f0883e;
    border-color: #f0883e;
    background: #1c2129;
}

/* Explanation panel */
.explanation-panel {
    background: #161b22;
    border-radius: 12px;
    border: 1px solid #21262d;
    padding: 24px;
    margin-bottom: 24px;
    animation: slideDown 0.25s ease-out;
}

.explanation-panel h3 {
    color: #f0883e;
    margin-top: 0;
    font-size: 18px;
}

.explanation-panel h4 {
    color: #f0883e;
    font-size: 15px;
    margin-bottom: 8px;
}

.score-table table {
    width: auto;
    border-collapse: collapse;
    margin: 0 auto;
}

.score-table th, .score-table td {
    padding: 6px 20px;
    text-align: center;
    border-bottom: 1px solid #21262d;
}

.score-table th {
    color: #8b949e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Signal breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.breakdown-table th, .breakdown-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #21262d;
}

.breakdown-table th {
    color: #8b949e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breakdown-table td {
    color: #e6edf3;
    font-size: 14px;
}

/* Indicator checklist */
.indicator-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.indicator-checklist label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e6edf3;
    font-size: 14px;
    padding: 8px 12px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.indicator-checklist label:hover {
    border-color: #f0883e;
}

.indicator-checklist input[type="checkbox"] {
    accent-color: #f0883e;
    width: 16px;
    height: 16px;
}

/* Indicator cards */
.cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.indicator-card {
    background: #161b22;
    border-radius: 12px;
    border: 1px solid #21262d;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.indicator-card.clickable {
    cursor: pointer;
}

.indicator-card.clickable:hover {
    border-color: #f0883e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 136, 62, 0.15);
}

.indicator-card .card-title {
    font-size: 13px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.indicator-card .card-value {
    font-size: 32px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 8px;
}

.indicator-card .card-signal {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 1px;
}

/* Detail panel */
.detail-panel {
    background: #161b22;
    border-radius: 12px;
    border: 1px solid #21262d;
    padding: 24px;
    margin-bottom: 24px;
    animation: slideDown 0.25s ease-out;
}

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

.detail-panel h3 {
    color: #f0883e;
    margin-top: 0;
    font-size: 20px;
}

.detail-panel h4 {
    color: #f0883e;
    font-size: 16px;
}

.close-btn {
    float: right;
    cursor: pointer;
    color: #8b949e;
    font-size: 13px;
    padding: 4px 10px;
    border: 1px solid #21262d;
    border-radius: 6px;
    transition: color 0.2s, border-color 0.2s;
}

.close-btn:hover {
    color: #f85149;
    border-color: #f85149;
}

/* Iframe */
.iframe-container {
    margin-top: 16px;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 16px;
    color: #484f58;
    font-size: 12px;
    border-top: 1px solid #21262d;
}

/* Responsive */
@media (max-width: 900px) {
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .cards-row {
        grid-template-columns: 1fr;
    }
    .price-value {
        font-size: 32px;
    }
}
