/* Article Page Component Styles */

.article-workspace {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}

.article-content-main {
    background: #ffffff;
    border: 1px solid #E5E9E2;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    width: 100%;
    box-sizing: border-box;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1.5px solid #CBD5E1;
}

.article-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #10243E;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.4px;
    flex: 1;
    min-width: 280px;
}

.article-meta-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.article-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6E7740;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
}

.article-meta-text {
    font-size: 0.8125rem;
}

.article-meta-date {
    color: #64748B;
    display: block;
}

.article-meta-author {
    font-weight: 700;
    color: #10243E;
}

.article-description {
    font-size: 1.05rem;
    color: #475569;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}

/* Article Body & RTE Typography */
.article-body {
    line-height: 1.7;
    color: #1E293B;
    font-size: 0.95rem;
}

.article-body section {
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #10243E;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #10243E;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-content-main img,
.article-body img,
.rte img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Editor image alignments (TinyMCE / Umbraco RTE) */
.article-body img[style*="float: left"],
.rte img[style*="float: left"] {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0 !important;
}

.article-body img[style*="float: right"],
.rte img[style*="float: right"] {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem !important;
}

.article-body img[style*="margin-left: auto"][style*="margin-right: auto"],
.rte img[style*="margin-left: auto"][style*="margin-right: auto"] {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* When parent paragraph/div/figure has text-align or margin alignment */
.article-body p[style*="text-align: left"],
.article-body div[style*="text-align: left"],
.rte p[style*="text-align: left"],
.rte div[style*="text-align: left"] {
    text-align: left;
}

.article-body p[style*="text-align: left"] img,
.article-body div[style*="text-align: left"] img,
.rte p[style*="text-align: left"] img,
.rte div[style*="text-align: left"] img {
    display: inline-block;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.article-body p[style*="text-align: right"],
.article-body div[style*="text-align: right"],
.rte p[style*="text-align: right"],
.rte div[style*="text-align: right"] {
    text-align: right;
}

.article-body p[style*="text-align: right"] img,
.article-body div[style*="text-align: right"] img,
.rte p[style*="text-align: right"] img,
.rte div[style*="text-align: right"] img {
    display: inline-block;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.article-body p[style*="text-align: center"],
.article-body div[style*="text-align: center"],
.article-body figure[style*="text-align: center"],
.rte p[style*="text-align: center"],
.rte div[style*="text-align: center"],
.rte figure[style*="text-align: center"] {
    text-align: center;
}

.article-body p[style*="text-align: center"] img,
.article-body div[style*="text-align: center"] img,
.article-body figure[style*="text-align: center"] img,
.rte p[style*="text-align: center"] img,
.rte div[style*="text-align: center"] img,
.rte figure[style*="text-align: center"] img {
    display: inline-block;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Default link styling inside article content */
.article-body a:not([style*="color"]),
.rte a:not([style*="color"]) {
    color: #33C8D6 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: color 0.15s ease !important;
}

.article-body a,
.rte a {
    color: #33C8D6;
    text-decoration: underline;
}

.article-body a:hover,
.rte a:hover {
    color: #1A9FB0 !important;
    text-decoration: underline !important;
}

/* Article Feedback Box */
.article-feedback-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-feedback-card {
    background: #ffffff;
    border: 1px solid #E5E9E2;
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    text-align: center;
}

.article-feedback-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #10243E;
    margin-bottom: 0.25rem;
}

.article-feedback-subtitle {
    font-size: 0.775rem;
    color: #64748B;
    margin: 0 0 0.85rem;
}

.article-feedback-group {
    display: flex;
    gap: 0.75rem;
}

.article-feedback-btn-yes {
    flex: 1;
    background: #EFF6E9;
    border: 1px solid #D6E4CC;
    color: #6E7740;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.article-feedback-btn-yes:hover {
    background: #DCEAD6;
}

.article-feedback-btn-no {
    flex: 1;
    background: #ffffff;
    border: 1px solid #CBD5E1;
    color: #475569;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.article-feedback-btn-no:hover {
    background: #F1F5F9;
}

.article-feedback-thanks {
    display: none;
    font-size: 0.825rem;
    font-weight: 700;
    color: #6E7740;
    margin-top: 0.65rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .article-workspace {
        padding: 1.25rem 1.5rem !important;
    }
    .article-content-main {
        padding: 1.5rem !important;
    }
}
