/* ==========================================================================
   Per-topic monitoring landing pages (/monitoring/{slug}).
   Shares base marketing styles from youmonit.css — this file adds the
   topic-specific hero / feature grid / step / alert-chip layouts.
   ========================================================================== */

.ym-topic-hero {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(65% 60% at 12% 0%, rgba(6, 78, 59, .55) 0%, transparent 55%),
        radial-gradient(45% 55% at 100% 20%, rgba(134, 239, 172, .22) 0%, transparent 65%),
        linear-gradient(155deg, #0f5132 0%, #15803D 40%, #4CAF87 100%);
    color: #f0fdf4;
}
.ym-topic-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .82);
    color: #052e16;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ym-topic-h1 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}
.ym-topic-lead {
    color: rgba(255, 255, 255, .92);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 1.25rem 0 0;
}
.ym-topic-lead strong, .ym-topic-lead code {
    color: #ecfeff;
}
.ym-topic-lead code {
    background: rgba(255, 255, 255, .12);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .9em;
}
.ym-topic-hero .btn-outline-secondary {
    color: #ecfeff;
    border-color: rgba(255, 255, 255, .35);
    background: transparent;
}
.ym-topic-hero .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #ffffff;
    color: #ffffff;
}
.ym-topic-hero .text-muted {
    color: rgba(255, 255, 255, .72) !important;
}
.ym-topic-facts {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    backdrop-filter: blur(6px);
}
.ym-topic-fact {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.ym-topic-fact:last-child { border-bottom: 0; }
.ym-topic-fact-num {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}
.ym-topic-fact-label {
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
    margin-top: 2px;
}

/* ------- Features grid ------- */
.ym-topic-features {
    padding: 4.5rem 0;
    background: #ffffff;
}
.ym-topic-feature {
    height: 100%;
    padding: 1.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.ym-topic-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(76, 175, 135, .45);
    box-shadow: 0 20px 35px -20px rgba(76, 175, 135, .35);
}
.ym-topic-feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(76, 175, 135, .15);
    color: #15803D;
    font-size: 1.35rem;
}
.ym-topic-feature h3 { color: #0f172a; font-weight: 700; }
.ym-topic-feature p  { color: #475569; line-height: 1.55; }

/* ------- Steps ------- */
.ym-topic-steps {
    padding: 4.5rem 0;
    background: #f4faf6;
}
.ym-topic-step {
    padding: 1.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    height: 100%;
}
.ym-topic-step-num {
    display: inline-block;
    background: #15803D;
    color: #ffffff;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: .82rem;
    letter-spacing: .04em;
}
.ym-topic-step h3 { color: #0f172a; font-weight: 700; }
.ym-topic-step p  { color: #475569; line-height: 1.55; }

/* ------- Alert channels grid ------- */
.ym-topic-alerts {
    padding: 4.5rem 0;
    background: #ffffff;
}
.ym-topic-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    max-width: 960px;
    margin: 0 auto;
}
.ym-topic-channel {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.1rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-weight: 600;
    color: #0f172a;
    font-size: .95rem;
    transition: border-color .18s, transform .18s;
}
.ym-topic-channel:hover {
    border-color: rgba(76, 175, 135, .55);
    transform: translateY(-2px);
}
.ym-topic-channel-icon { font-size: 1.1rem; }
.ym-topic-channel-note {
    color: #64748b;
    font-weight: 400;
    font-size: .8rem;
    margin-left: 3px;
}

/* ------- Related monitoring types ------- */
.ym-topic-related {
    padding: 4rem 0;
    background: #f4faf6;
}
.ym-topic-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    color: #0f172a;
    text-decoration: none;
    transition: transform .18s, border-color .18s, box-shadow .18s;
    height: 100%;
}
.ym-topic-related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(76, 175, 135, .55);
    box-shadow: 0 15px 25px -15px rgba(76, 175, 135, .3);
    color: #15803D;
}
.ym-topic-related-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: .5rem;
}
.ym-topic-related-title {
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.3;
}

/* ------- CTA ------- */
.ym-topic-cta {
    padding: 5rem 0;
    background:
        radial-gradient(55% 60% at 50% 100%, rgba(76, 175, 135, .18) 0%, transparent 60%),
        #f4faf6;
    color: #0f172a;
}
.ym-topic-cta .lead { color: #475569; }

@media (max-width: 767px) {
    .ym-topic-hero { padding: 3rem 0 2.5rem; }
    .ym-topic-features, .ym-topic-steps, .ym-topic-alerts, .ym-topic-related, .ym-topic-cta { padding: 3rem 0; }
    .ym-topic-facts { margin-top: 1.5rem; }
}
