/* ============================================
   OurCare Dashboard - Standard Template (Desktop)
   Extracted from templates/dashboard/standard_template_figma_desktop.html
   ============================================ */

/* Page-specific overrides for standard template */
.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Nav inner content container - page specific wrapper */
.nav-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    box-sizing: border-box;
}

/* Override nav padding for this page's layout */
.nav {
    padding: 0;
}

/* Key finding gap override for standard template */
.key-finding-content {
    gap: 200px;
}

/* Chart wrapper override for this page */
.chart-wrapper {
    /* Let charts expand to the full available desktop content width.
       (The main layout already constrains width via the sidebar + content padding.) */
    width: 100%;
    max-width: 100%;
    height: 300px;
    margin: 20px 0;
}

/* Response count styling */
.response-count {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 8px;
}

/* No questions message */
.no-questions {
    padding: 40px;
    text-align: center;
    font-family: var(--font-primary);
    color: var(--text-gray);
}

/* Question Title Row - Desktop layout */
.question-title-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.question-title-row .question-title {
    flex: 1;
    margin-bottom: 0;
}

/* View More Button - Desktop version (next to title) */
.view-more-button-desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    margin-top: 0;
}

/* View More Button Label/Arrow */
.view-more-label {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    line-height: 102%;
    color: var(--primary-blue);
    transition: color 0.2s;
}

.view-more-arrow {
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more-arrow svg path {
    transition: stroke 0.2s;
}

.view-more-button:hover .view-more-label,
.view-more-button:hover .view-more-arrow {
    color: var(--text-light);
}

.view-more-button:hover .view-more-arrow svg path {
    stroke: var(--text-light);
}

/* Desktop template: only render the desktop "View more" button */

/* Respondent Group Section Header */
.respondent-group-section {
    margin-top: 48px;
    margin-bottom: 32px;
}

.respondent-group-section:first-of-type {
    margin-top: 32px;
}

.respondent-group-header {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 24px;
    line-height: 120%;
    color: var(--text-dark);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-blue);
}

/* Green Key Finding Styles */
.key-finding-section.green .header-badge {
    background: var(--accent-green);
}

/* Standard Header Styling */
.standard-header {
    margin-top: 51px;
    margin-bottom: 16px;
}

.standard-header-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 20px;
    color: var(--primary-blue);
    margin-right: 12px;
}

.standard-header-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 28px;
    line-height: 120%;
    color: var(--text-dark);
    display: inline;
    vertical-align: middle;
}

.standard-header-description {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: var(--text-gray);
    margin-top: 16px;
    max-width: 800px;
}

/* Footer logos gap override */
.footer-logos {
    gap: 20px;
}

/* =========================================================
   DATA FOOTER (Desktop Standard Template) - Figma alignment
   Target: inner frame width 1050px starting at x=341 (301 sidebar + 40)
   ========================================================= */
.data-footer.data-footer--standard {
    /* Override the shared `.data-footer` padding so we can control the inner frame position */
    padding: 39px 0;
}

.data-footer.data-footer--standard .footer-content {
    width: min(1050px, calc(100% - 40px));
    margin-left: 40px; /* x=341 relative to full page */
}

.data-footer.data-footer--standard .footer-links {
    width: 100%;
    max-width: 1050px;
    gap: 108px;
}

.data-footer.data-footer--standard .footer-links > div:first-child {
    width: 344px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.data-footer.data-footer--standard .footer-link {
    margin-bottom: 0;
}

.data-footer.data-footer--standard .footer-logos {
    /* Figma: 598px logo frame with 3 items on row 1, 2 items on row 2 (right cell empty) */
    width: 598px;
    max-width: 598px;
    display: grid;
    grid-template-columns: max-content max-content max-content;
    grid-template-rows: auto auto;
    justify-content: space-between;
    align-items: center;
    row-gap: 40px;
}

/* Explicit placement to match Figma arrangement */
.data-footer.data-footer--standard .footer-logos .footer-logo:nth-child(1) { grid-column: 1; grid-row: 1; }
.data-footer.data-footer--standard .footer-logos .footer-logo:nth-child(2) { grid-column: 2; grid-row: 1; }
.data-footer.data-footer--standard .footer-logos .footer-logo:nth-child(3) { grid-column: 3; grid-row: 1; }
.data-footer.data-footer--standard .footer-logos .footer-logo:nth-child(5) { grid-column: 1; grid-row: 2; }
.data-footer.data-footer--standard .footer-logos .footer-logo:nth-child(4) { grid-column: 2; grid-row: 2; }

/* Footer divider override */
.footer-divider {
    border: 1px solid var(--text-light);
    background: none;
    opacity: 1;
}

/* Loading state text color (was inline in template JS) */
.loading-spinner {
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-inner {
        padding: 12px 24px;
        gap: 0;
    }

    /* Key Finding responsive override */
    .key-finding-content {
        gap: 16px;
    }

    /* Question title row mobile - stack vertically */
    .question-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .question-title-row .question-title {
        margin-bottom: 8px;
    }

    /* Chart wrapper mobile */
    .chart-wrapper {
        max-width: 100%;
        height: 180px;
        margin: 16px 0;
    }

    /* Response count mobile */
    .response-count {
        font-size: 12px;
    }

    /* Standard Header Mobile */
    .standard-header {
        margin-top: 24px;
    }

    .standard-header-number {
        width: 28px;
        height: 28px;
        font-size: 16px;
        margin-right: 8px;
    }

    .standard-header-title {
        font-size: 22px;
    }

    .standard-header-description {
        font-size: 16px;
        margin-top: 12px;
    }

    /* Respondent Group Header Mobile */
    .respondent-group-header {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .respondent-group-section {
        margin-top: 32px;
    }

    /* Footer logo sizes for mobile */
    .footer-logo:nth-child(1) {
        width: 165px;
        height: 38px;
    }

    .footer-logo:nth-child(2) {
        width: 149px;
        height: 36px;
    }

    .footer-logo:nth-child(3) {
        width: 167px;
        height: 36px;
    }

    .footer-logo:nth-child(4) {
        width: 244px;
        height: 50px;
    }

    .footer-logo:nth-child(5) {
        width: 234px;
        height: 52px;
    }
}


