/**
 * Divi Markdown Converter — Frontend Styles
 * Applied to posts/pages that use the converted Divi layouts.
 */

/* ── Inline code in text modules ─────────────────────────────────────────── */
.dmc-inline-code,
.et_pb_text .dmc-inline-code {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 4px;
    padding: 0 5px;
    font-family: 'Fira Code', Consolas, 'Courier New', monospace;
    font-size: 0.875em;
    color: #c7254e;
    white-space: nowrap;
}

/* ── Code blocks ─────────────────────────────────────────────────────────── */
.et_pb_code pre {
    background: #1e1e2e;
    border-radius: 8px;
    padding: 20px 24px;
    overflow-x: auto;
    line-height: 1.7;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.et_pb_code pre code {
    font-family: 'Fira Code', Consolas, 'Courier New', monospace;
    font-size: 13px;
    color: #cdd6f4;
}

/* ── Blockquotes ──────────────────────────────────────────────────────────── */
.et_pb_text blockquote {
    border-left: 4px solid #7B68EE;
    background: rgba(123, 104, 238, 0.05);
    padding: 14px 20px;
    margin: 16px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #555;
}
.et_pb_text blockquote p:last-child {
    margin-bottom: 0;
}

/* ── Card components (H3 groups) ─────────────────────────────────────────── */
.et_pb_text .dmc-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    padding: 24px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.et_pb_text .dmc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.et_pb_text .dmc-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
.et_pb_text .dmc-card ul {
    padding-left: 18px;
    margin: 0;
}
.et_pb_text .dmc-card li {
    margin-bottom: 4px;
    line-height: 1.6;
}

/* ── GSAP animation initial state (set before JS loads) ─────────────────── */
.dmc-will-animate {
    opacity: 0;
}
.dmc-will-animate.dmc-animated {
    opacity: 1;
}

/* ── Hero section enhancements ───────────────────────────────────────────── */
.et_pb_section.et_pb_section_0 .et_pb_text h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
    letter-spacing: -0.01em;
}

/* ── Divider module ───────────────────────────────────────────────────────── */
.et_pb_divider_container {
    opacity: 0.6;
}

/* ── Responsive adjustments ──────────────────────────────────────────────── */
@media (max-width: 767px) {
    .et_pb_code pre {
        padding: 14px 16px;
        font-size: 12px;
    }
    .et_pb_text .dmc-card {
        padding: 18px;
    }
}
