/**
 * RESOURCE VIEW - Frontend Afrokwary
 * ===============================================
 * Styles pour la page de détail d'une ressource
 * Respecte 100% la charte graphique
 */

:root {
    --accent-green: #454b1b;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* ========================================================= */
/* TYPOGRAPHY                                                */
/* ========================================================= */

.resource-detail-page {
    font-family: var(--font-body);
    color: var(--text-dark);
}

.resource-title {
    font-family: var(--font-heading);
    color: var(--accent-green);
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    text-wrap: balance;
}

.resource-category {
    background-color: rgba(69, 75, 27, 0.1);
    color: var(--accent-green);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(69, 75, 27, 0.2);
    text-wrap: nowrap;
}

/* ========================================================= */
/* NAVIGATION                                                */
/* ========================================================= */

.back-link {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-green);
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-4px);
}

/* ========================================================= */
/* IMAGERY                                                   */
/* ========================================================= */

.resource-image-container img {
    border-radius: 0; /* Align with sharp edges in hub if needed, but hub used 0 radius. Let's stick to 0 or slight if user prefers. Hub has 0 radius. */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ========================================================= */
/* METADATA                                                  */
/* ========================================================= */

.meta-item {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--accent-green);
    margin-right: 0.5rem;
}

/* ========================================================= */
/* ACTION BOX                                                */
/* ========================================================= */

.action-box {
    background-color: #fafafa;
    border-left: 4px solid var(--accent-green);
    border-radius: 0;
}

.action-title {
    font-family: var(--font-heading);
    color: #000;
    font-weight: 700;
}

.btn-action {
    background-color: var(--accent-green);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-action-outline {
    background-color: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-action-outline:hover {
    background-color: var(--accent-green);
    color: #ffffff;
}

/* ========================================================= */
/* CONTENT                                                   */
/* ========================================================= */

.excerpt-box {
    background-color: rgba(69, 75, 27, 0.05);
    border-left: 4px solid var(--accent-green);
    padding: 2rem;
    margin-bottom: 2rem;
}

.excerpt-text {
    font-family: var(--font-body);
    font-style: italic;
    color: #333;
    font-size: 1.2rem;
    line-height: 1.6;
    text-wrap: pretty;
}

.article-body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-body h2, 
.article-body h3, 
.article-body h4 {
    font-family: var(--font-heading);
    color: var(--accent-green);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-wrap: balance;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-wrap: pretty;
}

.article-body ul, 
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--accent-green);
    text-decoration: underline;
    transition: color 0.2s;
}

.article-body a:hover {
    color: #000;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-green);
    padding-left: 1.5rem;
    font-style: italic;
    color: #555;
    margin: 2rem 0;
}
