/* ============================================================
   TECHNICAL ANALYSIS PAGE
   Page-specific styles for stock_technicals.html
   ============================================================ */

.tech-container {
    width: 100%;
    box-sizing: border-box;
}

.tech-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.4;
}

.tech-breadcrumb a {
    color: #155eef;
    text-decoration: none;
}

.tech-breadcrumb a:hover {
    text-decoration: underline;
}

.tech-breadcrumb .sep {
    color: #c5ccd6;
}

.tech-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.tech-title h1 {
    margin: 0 0 6px 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #071b3a;
}

.tech-title p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: #526b8a;
}

.cmp-badge {
    flex-shrink: 0;
    padding: 9px 14px;
    border-radius: 8px;
    background: #e8eef6;
    color: #17345f;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.tech-section-title {
    margin: 30px 0 16px 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: #071b3a;
}

.indicator-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.ind-card {
    min-width: 0;
    box-sizing: border-box;
    min-height: 92px;
    padding: 18px 18px 16px 18px;
    background: #ffffff;
    border: 1px solid #dce4ee;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tech-container .ind-card .ind-label {
    margin-bottom: 10px;
    font-size: 18px;
    text-align: center;
    line-height: 1.25;
    font-weight: 500;
    color: #0a0a0a;
}

.tech-container .ind-card .ind-value {
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    font-weight: 700;
    color: #071b3a;
    overflow-wrap: anywhere;
}

.tech-container .ind-card.ind-sub {
    margin-top: 5px;
    font-size: 13px;
    text-align: center;
    line-height: 1.3;
    color: #526b8a;
}

.val-info {
    color: #0783d1;
}

.val-success {
    color: #009b45;
}

.val-danger {
    color: #e52525;
}

.tech-data-info {
    margin: 18px 0 4px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #17345f;
}

.chart-card {
    margin-top: 8px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dce4ee;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.chart-card h3 {
    margin: 0 0 18px 0;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    color: #071b3a;
}

.chart-card > div {
    width: 100%;
    box-sizing: border-box;
}

/* Responsive layout */
@media (max-width: 1200px) {
    .indicator-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .indicator-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tech-title h1 {
        font-size: 27px;
    }
}

@media (max-width: 700px) {
    .tech-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .indicator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tech-section-title {
        margin-top: 24px;
        font-size: 20px;
    }

    .ind-card {
        min-height: 86px;
        padding: 15px;
    }

    .ind-value {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .indicator-grid {
        grid-template-columns: 1fr;
    }

    .tech-title h1 {
        font-size: 24px;
    }

    .cmp-badge {
        font-size: 13px;
    }
}
