/* Unique styles for resources page */

ul {
    margin: 0;
}

strong {
    color: var(--abyss);
}

article p {
    color: var(--abyss-80);
}

article li {
    color: var(--abyss-80);
}


.resources-page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    gap: 0.5rem;
}

.resources-page-hero h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 5vw + 0.5rem, 3rem);
}

.resources-page-hero > p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: var(--slate);
    font-size: 1.1rem;
    line-height: 1.6;
}

.resources-list-section {
    padding: 2rem 0;
}

/* Resources-specific button modifications - base styles now in navigation.css */


/* Semantic spacing and layout improvements */
.abuse-guide {
    max-width: 1200px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
}

.article-header h1 {
    margin-bottom: 1.5rem;
}

.safety-alerts {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert {
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid;
    margin: 0;
}

.alert-danger {
    background: rgba(255, 255, 255, 0.9);
    border-left-color: var(--brand-pink-300);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.alert-emergency {
    background: rgba(255, 255, 255, 0.9);
    border-left-color: var(--brand-pink-500);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.emergency-contacts {
    margin: 0.75rem 0 0 0;
    padding-left: 1.25rem;
}

.header-actions {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 0.75rem;
    justify-content: center;
}

/* Section spacing for article sections */
article > section {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    gap: 1rem;
}

article > section:first-child {
    margin-top: 0;
    padding-top: 0;
}

article > section:last-child {
    margin-bottom: 0;
}

/* Content grouping */
.safety-checklist,
.abuse-types-grid,
.tactics-explanation,
.cycle-explanation + .healing-insights,
.exit-checklist,
.safety-steps + .digital-support,
.recovery-strategies + .recovery-resources,
.bot-features + .bot-limitations,
.scripts-collection + .script-practice {
    margin-top: 0.75rem;
}

.planning-warning {
    margin-bottom: 1.5rem;
}

.recognition-support,
.bot-support-note,
.practice-support,
.digital-support,
.recovery-resources,
.bot-limitations,
.script-practice {
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.encouragement-message {
    margin-top: 0;
    padding-top: 0;
}

.disclaimers-and-encouragement h2,
.disclaimers-and-encouragement p {
    text-align: center;
}

/* Grid layouts */
.abuse-types-grid,
.scripts-collection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.abuse-type-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.script-card {
    background: transparent;
    border-radius: 0;
    padding: 1.5rem 0;
    border: none;
    box-shadow: none;
}

.script-card:last-child {
    border-bottom: none;
}

.abuse-type-card h3,
.script-card h3 {
    margin: 0 0 1rem 0;
    color: var(--abyss);
    font-size: 1.125rem;
    font-weight: 600;
}

.script-card blockquote {
    margin: 0;
    padding: 1rem 0 1rem 1rem;
    border-left: 3px solid var(--brand-pink-300);
    background: var(--white-80);
    font-style: italic;
    color: var(--slate);
    line-height: 1.6;
}

.signs-list,
.safety-list,
.insight-list,
.digital-checklist,
.recovery-list,
.capabilities-list,
.disclaimer-list {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.6;
}

.signs-list li,
.safety-list li,
.insight-list li,
.digital-checklist li,
.recovery-list li,
.capabilities-list li,
.disclaimer-list li {
    margin-bottom: 0.75rem;
}

/* Tactics explanation layout */
.tactics-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tactic-definition {
    background: rgba(255, 255, 255, 0.6);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--brand-pink-300);
}

.tactic-definition h3 {
    margin: 0 0 0.75rem 0;
    color: var(--abyss);
    font-size: 1.125rem;
    font-weight: 600;
}

.tactic-definition p {
    margin: 0;
    line-height: 1.6;
}

/* Table styling - using global styles from styles.css */
.exit-checklist {
    margin: 1.5rem 0;
}

.planning-table {
    /* Inherits global table styles from styles.css */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.planning-table td:first-child {
    font-weight: 600;
    text-align: center;
    width: 60px;
}

/* Action buttons spacing */
.section-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.final-cta {
    margin-top: 2rem;
    text-align: center;
}



@media (max-width: 768px) {
    .resources-page-hero {
        padding: 1.5rem 0 0 0;
        text-align: left;
    }

    .resources-page-hero h1 {
        font-size: clamp(1.75rem, 4.5vw + 0.5rem, 2.5rem);
    }

    .resources-page-hero > p {
        font-size: 1rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }

    .resources-list-section {
        padding: 1.5rem 0;
    }

    /* Mobile responsive improvements */
    .article-header {
        margin-bottom: 2rem;
    }

    .safety-alerts {
        gap: 0.75rem;
    }

    article > section {
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding-top: 1rem;
        gap: 0.75rem;
    }

    article > section:first-child {
        margin-top: 0;
        padding-top: 0;
    }

    article > section:last-child {
        margin-bottom: 0;
    }

    .abuse-types-grid,
    .scripts-collection,
    .tactics-explanation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }


    .planning-table {
        font-size: 0.9rem;
    }

    .planning-table th,
    .planning-table td {
        padding: 0.75rem 0.5rem;
    }

    .section-actions,
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }


}
