/* ===== Editorial Enhancements ===== */

.oe-editorial-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line, #d7dee7);
    border-bottom: 1px solid var(--line, #d7dee7);
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
}

.oe-editorial-print-btn,
.oe-editorial-reader-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem;
    border: 1px solid var(--line, #d7dee7);
    border-radius: 8px;
    background: var(--surface-soft, #f6f8fb);
    color: var(--text-primary, #000);
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
}

.oe-editorial-print-btn:hover,
.oe-editorial-reader-btn:hover {
    background: var(--surface, white);
    border-color: var(--accent, #1a5b97);
    box-shadow: 0 8px 16px rgba(13, 24, 36, 0.1);
    transform: translateY(-1px);
}

.oe-editorial-print-btn:active,
.oe-editorial-reader-btn:active {
    transform: translateY(0);
}

.oe-editorial-reader-btn.active {
    background: var(--accent, #1a5b97);
    border-color: var(--accent, #1a5b97);
    color: white;
}

.oe-editorial-print-btn svg,
.oe-editorial-reader-btn svg {
    width: 18px;
    height: 18px;
}

.oe-editorial-print-btn .tooltip,
.oe-editorial-reader-btn .tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    background: rgba(12, 23, 36, 0.92);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.oe-editorial-print-btn:hover .tooltip,
.oe-editorial-reader-btn:hover .tooltip {
    opacity: 1;
}

/* Font Size Control */
.oe-editorial-font-control {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--line, #d7dee7);
    border-radius: 8px;
    background: var(--surface-soft, #f6f8fb);
}

.oe-editorial-font-control .font-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary, #000);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
}

.oe-editorial-font-control .font-btn:hover {
    background: rgba(26, 91, 151, 0.08);
    color: var(--accent, #1a5b97);
}

.oe-editorial-font-control .font-btn:active {
    background: rgba(26, 91, 151, 0.12);
}

.oe-editorial-font-control .font-decrease .minus,
.oe-editorial-font-control .font-increase .plus {
    position: absolute;
    font-size: 1.2rem;
    line-height: 1;
}

.oe-editorial-font-control .font-decrease .minus {
    right: 6px;
    bottom: 8px;
}

.oe-editorial-font-control .font-increase .plus {
    right: 4px;
    bottom: 6px;
}

/* Reader Mode Styles */
body.reader-mode {
    --text-primary: #2c3e50;
    --surface-soft: #f8f9fa;
}

body.reader-mode .article-content {
    max-width: 45em;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

body.reader-mode .article-content p {
    margin: 1.5em 0;
}

body.reader-mode .article-content h2,
body.reader-mode .article-content h3 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

body.reader-mode .newspaper-share,
body.reader-mode .related-articles,
body.reader-mode .article-meta {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

body.reader-mode .newspaper-share:hover,
body.reader-mode .related-articles:hover,
body.reader-mode .article-meta:hover {
    opacity: 1;
}

/* Toast Notifications */
.oe-editorial-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: rgba(15, 119, 83, 0.95);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(13, 24, 36, 0.2);
    animation: toastSlideIn 0.3s ease;
    z-index: 9999;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(1rem) translateX(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .oe-editorial-controls {
        gap: 0.3rem;
    }

    .oe-editorial-print-btn,
    .oe-editorial-reader-btn {
        min-width: 40px;
        height: 40px;
    }

    .oe-editorial-font-control .font-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    body.reader-mode .article-content {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .oe-editorial-toast {
        bottom: 1.5rem;
        right: 1rem;
        left: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.dark-mode .oe-editorial-print-btn,
    body.dark-mode .oe-editorial-reader-btn,
    body.dark-mode .oe-editorial-font-control {
        background: var(--surface-muted, #4a5f7f);
        border-color: var(--line, #546e8a);
    }

    body.dark-mode .oe-editorial-print-btn:hover,
    body.dark-mode .oe-editorial-reader-btn:hover {
        background: var(--surface, #5a6f8f);
    }

    body.dark-mode .oe-editorial-font-control .font-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    body.dark-mode.reader-mode {
        --surface-soft: #1a2332;
    }

    body.dark-mode.reader-mode .article-content {
        background: var(--surface, #2a3f5f);
        color: var(--text-primary, #e0e0e0);
    }
}

/* Print Styles */
@media print {
    .oe-editorial-controls,
    .newspaper-share,
    .related-articles,
    .oe-editorial-print-btn,
    .oe-editorial-reader-btn {
        display: none;
    }
}

/* Accessibility */
.oe-editorial-print-btn:focus-visible,
.oe-editorial-reader-btn:focus-visible,
.oe-editorial-font-control .font-btn:focus-visible {
    outline: 3px solid var(--accent, #1a5b97);
    outline-offset: 2px;
}
