/*
 * Article Content Frontend Styles
 * Pixel-perfect match to haber-detay.html static design
 * Loaded on haber-detay pages
 * Must stay in sync with public/css/tinymce-content.css
 */

/* ── Base styles (match TinyMCE body) ── */
.article-content {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

/* ── Lead / Intro paragraph ── */
.article-content > p.lead-text,
.article-content > p:first-child {
    font-size: 1.25rem;
    line-height: 1.625;
    color: rgb(55, 65, 81);
    margin-bottom: 1.5rem;
}

/* ── Headings ── */
.article-content h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}
.article-content h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}
.article-content h4 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

/* ── Paragraphs ── */
.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

/* ── Blockquote ── */
.article-content blockquote {
    border-left: 4px solid rgb(0, 0, 0);
    padding-left: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1.5rem;
    background-color: rgb(249, 250, 251);
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin: 0 0 1.5rem 0;
}
.article-content blockquote p {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-style: italic;
    color: rgb(55, 65, 81);
    margin-bottom: 0;
}
.article-content blockquote footer {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(75, 85, 99);
    margin-top: 0.5rem;
    font-style: normal;
    display: block;
}

/* ── Figure (image + caption) ── */
.article-content figure {
    margin: 1.5rem 0;
}
.article-content figure img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    display: block;
}
.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(75, 85, 99);
    margin-top: 0.75rem;
    font-style: italic;
}

/* ── Figure inline (natural size + alignment) ── */
.article-content figure.figure-inline {
    display: table;
    margin: 1.5rem 0;
}
.article-content figure.figure-inline img {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    display: block;
}
.article-content figure.figure-inline figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(75, 85, 99);
    margin-top: 0.75rem;
    font-style: italic;
}
.article-content figure.figure-left {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}
.article-content figure.figure-center {
    margin-left: auto;
    margin-right: auto;
    float: none;
    clear: both;
}
.article-content figure.figure-right {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ── Standalone images ── */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* ── Info box (checklist) ── */
.article-content .info-box {
    background-color: rgb(249, 250, 251);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.article-content .info-box h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
    color: #1f2937;
}
.article-content .info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-content .info-box ul li + li {
    margin-top: 0.5rem;
}
.article-content .info-box li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0;
    line-height: 1.5;
}
.article-content .info-box li i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    color: rgb(0, 0, 0);
    flex-shrink: 0;
}
.article-content .info-box li span {
    flex: 1;
}

/* ── Two-column image grid ── */
.article-content .image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .article-content .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.article-content .image-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.article-content .image-grid-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
    transition: transform 300ms ease;
}
.article-content .image-grid-item:hover img {
    transform: scale(1.05);
}
.article-content .image-grid-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1rem;
}
.article-content .image-grid-item .overlay p {
    color: rgb(255, 255, 255);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    font-style: normal;
}

/* ── Lists ── */
.article-content > ul,
.article-content > ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content > ul {
    list-style-type: disc;
}
.article-content > ol {
    list-style-type: decimal;
}
.article-content > ul li,
.article-content > ol li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

/* ── Links ── */
.article-content a {
    color: #c41e1e;
    text-decoration: underline;
}
.article-content a:hover {
    color: #a01818;
}

/* ── Tables ── */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.article-content th,
.article-content td {
    border: 1px solid rgb(229, 231, 235);
    padding: 0.75rem;
    text-align: left;
}
.article-content th {
    background-color: rgb(249, 250, 251);
    font-weight: 600;
}

/* ── Horizontal rule ── */
.article-content hr {
    border: none;
    border-top: 1px solid rgb(229, 231, 235);
    margin: 2rem 0;
}
