/* ============================================================
   Daily Reports Feature Page — daily-reports.css
   Prefix: dr-
   ============================================================ */

/* ---- Trust bar — cs-metrics 4-item variant (icon in place of a numeric value) ---- */
.cs-metrics__grid--4 { grid-template-columns: repeat(4, 1fr); }

.daily-report-page .cs-metrics__grid--4 .cs-metric__value {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-trust-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--light-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-green);
}

/* ---- Hero activity feed — completion photo attachment ---- */
.daily-report-page .f5__attachment {
    display: block;
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 0.5rem 0;
}

/* ============================================================
   HERO
   ============================================================ */
.dr-hero {
    background: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.dr-hero__container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.dr-hero__content {
    display: flex;
    flex-direction: column;
}

.dr-hero__title {
    font-size: 3.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.dr-hero__title-accent { color: var(--secondary-green); }

.dr-hero__subtitle {
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

.dr-hero__subtitle--secondary {
    font-size: 1rem;
    color: var(--text-quaternary);
    margin: 0 0 2rem;
}

.dr-hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.dr-hero__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-green);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(var(--secondary-green-rgb), 0.3);
    transition: background 0.2s, box-shadow 0.2s;
}

.dr-hero__btn-primary:hover {
    background: var(--secondary-green-border);
    box-shadow: 0 6px 20px rgba(var(--secondary-green-rgb), 0.4);
}

.dr-hero__visual {
    width: 100%;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    position: relative;
}

/* #dr-feature5-mockup — stretch every level so f5__ui's own width:100%/max-width:400px
   (features.css) resolves against real pixel values instead of shrink-to-fit content
   width, which is what forces it responsively narrower on small screens. */
.dr-hero__visual > div {
    width: 100%;
}

.dr-hero__visual .f5__ui {
    border-color: var(--grey-03);
    box-shadow: none;
}

/* ============================================================
   PROBLEM — cs-story on white bg, 4 cards / 2 per row
   ============================================================ */
.daily-report-page .cs-story { background: var(--white); }

.daily-report-page .cs-story__problems {
    grid-template-columns: repeat(2, 1fr);
}

.daily-report-page .cs-story__problem-card {
    grid-column: span 1 !important;
}

/* ============================================================
   FEATURES BENTO — extends pd-features__card / gps-pd-grid
   ============================================================ */
.dr-features {
    background: var(--grey-02);
    padding: 8rem 0;
}

.dr-features__container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.dr-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.dr-features__grid .pd-features__card { background: var(--white); }

/* ============================================================
   CUSTOMER STORY
   ============================================================ */
.dr-story__author-logo {
    height: 20px;
    width: auto;
    display: block;
    margin: 4px 0 8px;
}

/* ============================================================
   BY THE NUMBERS — big value inside cs-wf__step card, no icon
   ============================================================ */
.dr-stat-value {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.dr-stat-value--accent { color: var(--secondary-green); }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.dr-compare {
    background: var(--white);
    padding: 8rem 0;
}

.dr-compare__container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.dr-compare__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.dr-compare__col {
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
}

.dr-compare__col--traditional {
    background: var(--grey-02);
    border: 1px solid var(--grey-03);
}

.dr-compare__col--modern {
    background: var(--white);
    border: 2px solid var(--secondary-green);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.dr-compare__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-green);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.02em;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.dr-compare__title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

.dr-compare__col--modern .dr-compare__title { color: var(--text-primary); }

.dr-compare__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dr-compare__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.dr-compare__item-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-compare__item-icon--bad {
    background: rgba(255,68,68,0.1);
    color: var(--alert-red);
}

.dr-compare__item-icon--good {
    background: rgba(var(--secondary-green-rgb), 0.1);
    color: var(--secondary-green);
}

.dr-compare__col--modern .dr-compare__item { color: var(--text-primary); }

/* ============================================================
   RESOURCES — mirrors task-management article rhythm
   ============================================================ */
.daily-report-page .cs-resources { background: var(--grey-02); }
.daily-report-page .cs-resources__grid { gap: 20px; }

.daily-report-page .cs-resources__card {
    background: var(--white);
    border-color: var(--grey-03);
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.daily-report-page .cs-resources__card.reveal-visible {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
}

.daily-report-page .cs-resources__card:hover {
    border-color: var(--grey-03);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.daily-report-page .cs-resources__card-thumb { height: 160px; }
.daily-report-page .cs-resources__card-body { padding: 20px; }

.daily-report-page .cs-resources__chip {
    background: rgba(var(--secondary-green-rgb), 0.1);
    color: var(--secondary-green);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.daily-report-page .cs-resources__card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.daily-report-page .cs-resources__card-desc {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
    /* flex:1 (base) stretches this taller than 3 lines in a grid row, which defeats
       the line-clamp — pin it to its own clamped content height instead */
    flex: none;
}

.daily-report-page .cs-resources__link { color: var(--text-primary); font-size: 13px; font-weight: 500; }
.daily-report-page .cs-resources__card:hover .cs-resources__link { gap: 8px; color: var(--secondary-green); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .dr-hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 1.5rem 0;
    }
    /* No extra vertical padding here — .dr-hero__container already carries it;
       stacking both caused excess empty space at the bottom on tablet/mobile. */
    .dr-hero { min-height: auto; margin-top: 5rem; }
    .dr-hero__title { font-size: 2.5rem; }
    .dr-hero__content { text-align: center; align-items: center; }
    .dr-hero__ctas { justify-content: center; }

    /* Tablet: 2 items per row (2x2) */
    .cs-metrics__grid--4 { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }

    .dr-features { padding: 5rem 0; }
    .dr-features__grid { grid-template-columns: repeat(2, 1fr); }

    .dr-compare { padding: 5rem 0; }
    .dr-compare__grid { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
    /* "The Modern Way" card leads on tablet/mobile single-column layout */
    .dr-compare__col--modern { order: -1; }
}

@media (max-width: 768px) {
    .dr-hero__container { padding: 4rem 1rem 0; }
    .dr-hero__title { font-size: 2rem; }
    .dr-hero__subtitle { font-size: 1rem; }
    .dr-hero__btn-primary { font-size: 1rem; padding: 0.875rem 1.75rem; }

    .daily-report-page .cs-story__problems { grid-template-columns: 1fr; }

    .dr-features { padding: 4rem 0; }
    .dr-features__container { padding: 0 1rem; }
    .dr-features__grid { grid-template-columns: 1fr; }

    .dr-stat-value { font-size: 2.75rem; }

    .dr-compare { padding: 4rem 0; }
    .dr-compare__container { padding: 0 1rem; }
    .dr-compare__col { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .dr-hero { margin-top: 3.5rem; }
    .dr-hero__title { font-size: 1.75rem; }
    .dr-hero__subtitle { font-size: 1rem; }
    /* Second hero paragraph is mobile-only noise — hide it below the fold-worthy first line */
    .dr-hero__subtitle--secondary { display: none; }
    .dr-hero__ctas { width: 100%; }
    .dr-hero__btn-primary { width: 100%; justify-content: center; font-size: 1rem; }

    /* Mobile: 1 item per row */
    .cs-metrics__grid--4 { grid-template-columns: 1fr; gap: 1.5rem 0; }

    /* Keep the 9/16 portrait ratio instead of component-shared's fixed 480px height —
       that height/width combo over-crops this thumbnail and the video-label overlay
       ends up on top of the text already baked into the image. */
    .daily-report-page .cs-quote__video-wrap {
        height: auto;
        aspect-ratio: 9/16;
    }

    .dr-features { padding: 3rem 0; }

    .dr-stat-value { font-size: 2.25rem; }

    .dr-compare { padding: 3rem 0; }
    .dr-compare__col { padding: 1.75rem 1.25rem; }
    .dr-compare__title { font-size: 1.125rem; }
    .dr-compare__item { font-size: 0.9375rem; }
}
