/**
 * News - Style Wikipedia-like
 * Design inspiré de Wikimedia
 */

/* Variables */
:root {
    --wiki-blue: #3366cc;
    --wiki-blue-dark: #2a4b8d;
    --wiki-link: #0645ad;
    --wiki-visited: #0b0080;
    --wiki-red: #ba0000;
    --wiki-border: #a2a9b1;
    --wiki-bg: #f6f6f6;
    --wiki-bg-light: #f8f9fa;
    --wiki-text: #202122;
    --wiki-text-light: #54595d;
    --content-width: 960px;
    --sidebar-width: 200px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--wiki-text);
    background: #fff;
}

a {
    color: var(--wiki-link);
    text-decoration: none;
}

a:visited {
    color: var(--wiki-visited);
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.wiki-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.wiki-header {
    background: var(--wiki-bg-light);
    border-bottom: 1px solid var(--wiki-border);
    padding: 10px 20px;
}

.wiki-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wiki-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--wiki-text);
}

.wiki-logo img {
    height: 50px;
}

.wiki-logo h1 {
    font-size: 1.5em;
    font-weight: normal;
}

.wiki-logo .subtitle {
    font-size: 0.75em;
    color: var(--wiki-text-light);
}

.wiki-search {
    display: flex;
    gap: 5px;
}

.wiki-search input {
    padding: 6px 10px;
    border: 1px solid var(--wiki-border);
    border-radius: 2px;
    width: 250px;
    font-size: 13px;
}

.wiki-search button {
    padding: 6px 12px;
    background: var(--wiki-bg);
    border: 1px solid var(--wiki-border);
    border-radius: 2px;
    cursor: pointer;
}

.wiki-search button:hover {
    background: #eaecf0;
}

/* Navigation */
.wiki-nav {
    background: var(--wiki-bg-light);
    border-bottom: 1px solid var(--wiki-border);
    padding: 0 20px;
}

.wiki-nav-inner {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 0;
    font-size: 13px;
}

.wiki-nav a {
    color: var(--wiki-link);
}

/* Sidebar */
.wiki-sidebar {
    width: var(--sidebar-width);
    padding: 20px;
    background: var(--wiki-bg-light);
    border-right: 1px solid var(--wiki-border);
    min-height: calc(100vh - 120px);
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 12px;
    font-weight: bold;
    color: var(--wiki-text-light);
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--wiki-border);
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin: 5px 0;
}

.sidebar-section a {
    font-size: 13px;
}

/* Content */
.wiki-content {
    flex: 1;
    padding: 20px 30px;
    max-width: calc(100% - var(--sidebar-width));
}

/* Article */
.article-header {
    border-bottom: 1px solid var(--wiki-border);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 1.8em;
    font-weight: normal;
    line-height: 1.3;
}

.article-meta {
    font-size: 12px;
    color: var(--wiki-text-light);
    margin-top: 5px;
}

.article-actions {
    float: right;
    font-size: 12px;
}

.article-actions a {
    margin-left: 10px;
}

/* Article sections */
.article-section {
    margin: 20px 0;
}

.article-section h2 {
    font-size: 1.4em;
    font-weight: normal;
    border-bottom: 1px solid var(--wiki-border);
    padding-bottom: 3px;
    margin-bottom: 10px;
}

.article-section h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 15px 0 10px;
}

.article-section h4 {
    font-size: 1em;
    font-weight: bold;
    margin: 10px 0 5px;
}

.article-section p {
    margin: 10px 0;
}

.article-section ul, .article-section ol {
    margin: 10px 0 10px 25px;
}

.article-section li {
    margin: 5px 0;
}

/* Infobox */
.infobox {
    float: right;
    width: 280px;
    margin: 0 0 20px 20px;
    border: 1px solid var(--wiki-border);
    background: var(--wiki-bg-light);
    font-size: 13px;
}

.infobox-header {
    background: var(--wiki-blue);
    color: white;
    padding: 8px 10px;
    font-weight: bold;
    text-align: center;
}

.infobox-content {
    padding: 10px;
}

.infobox-row {
    display: flex;
    border-bottom: 1px solid var(--wiki-border);
    padding: 5px 0;
}

.infobox-row:last-child {
    border-bottom: none;
}

.infobox-label {
    width: 90px;
    font-weight: bold;
    color: var(--wiki-text-light);
}

.infobox-value {
    flex: 1;
}

/* Human Rights Analysis Box */
.human-rights-box {
    background: #f8f4e8;
    border: 1px solid #c8b06b;
    border-radius: 3px;
    padding: 15px;
    margin: 20px 0;
}

.human-rights-box h3 {
    color: #6b5900;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.human-rights-analysis .analysis-section {
    margin: 15px 0;
    padding: 10px;
    background: white;
    border-radius: 3px;
}

.human-rights-analysis .analysis-section h4 {
    color: var(--wiki-blue-dark);
    margin-bottom: 8px;
}

.human-rights-analysis .concerns li {
    color: var(--wiki-red);
}

.human-rights-analysis .overall {
    background: #e8f4e8;
    border-left: 3px solid #28a745;
}

.human-rights-analysis .recommendations {
    background: #e8f0f8;
    border-left: 3px solid var(--wiki-blue);
}

/* Categories */
.article-categories {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid var(--wiki-border);
    font-size: 12px;
}

.category-tag {
    display: inline-block;
    background: var(--wiki-bg);
    border: 1px solid var(--wiki-border);
    padding: 2px 8px;
    margin: 2px;
    border-radius: 2px;
}

/* Source box */
.source-box {
    background: var(--wiki-bg-light);
    border: 1px solid var(--wiki-border);
    padding: 10px;
    margin: 15px 0;
    font-size: 12px;
}

.source-box a {
    word-break: break-all;
}

/* Article list */
.article-list {
    list-style: none;
}

.article-list-item {
    padding: 15px;
    border-bottom: 1px solid var(--wiki-border);
}

.article-list-item:hover {
    background: var(--wiki-bg-light);
}

.article-list-item h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.article-list-item .summary {
    font-size: 13px;
    color: var(--wiki-text-light);
    margin-bottom: 5px;
}

.article-list-item .meta {
    font-size: 11px;
    color: var(--wiki-text-light);
}

/* Editor */
.editor-container {
    background: var(--wiki-bg-light);
    border: 1px solid var(--wiki-border);
    padding: 20px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--wiki-border);
    border-radius: 2px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group textarea.large {
    min-height: 300px;
}

.form-group .help-text {
    font-size: 12px;
    color: var(--wiki-text-light);
    margin-top: 3px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--wiki-border);
    border-radius: 2px;
    background: var(--wiki-bg);
    color: var(--wiki-text);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: #eaecf0;
    text-decoration: none;
}

.btn-primary {
    background: var(--wiki-blue);
    border-color: var(--wiki-blue-dark);
    color: white;
}

.btn-primary:hover {
    background: var(--wiki-blue-dark);
}

.btn-danger {
    background: #fee;
    border-color: var(--wiki-red);
    color: var(--wiki-red);
}

.btn-danger:hover {
    background: #fdd;
}

.btn-bluesky {
    background: #0085ff;
    border-color: #0066cc;
    color: white !important;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.btn-bluesky:hover {
    background: #0066cc;
    text-decoration: none;
}

.btn-bluesky:visited {
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    border-color: #128C7E;
    color: white !important;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.btn-whatsapp:hover {
    background: #128C7E;
    text-decoration: none;
}

.btn-whatsapp:visited {
    color: white;
}

.btn-facebook {
    background: #1877F2;
    border-color: #166FE5;
    color: white !important;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.btn-facebook:hover {
    background: #166FE5;
    text-decoration: none;
}

.btn-facebook:visited {
    color: white;
}

.btn-linkedin {
    background: #0A66C2;
    border-color: #004182;
    color: white !important;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.btn-linkedin:hover {
    background: #004182;
    text-decoration: none;
}

.btn-linkedin:visited {
    color: white;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 3px;
    margin: 15px 0;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Success/Error messages */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 15px;
    border-radius: 3px;
    margin: 15px 0;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 3px;
    margin: 15px 0;
}

/* Bluesky option in forms */
.bluesky-option {
    background: #e8f4ff;
    border: 1px solid #b8daff;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--wiki-border);
    border-top-color: var(--wiki-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-draft {
    background: #ffc107;
    color: #856404;
}

.status-published {
    background: #28a745;
    color: white;
}

/* Footer */
.wiki-footer {
    background: var(--wiki-bg-light);
    border-top: 1px solid var(--wiki-border);
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--wiki-text-light);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--wiki-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Header Right Section */
.wiki-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.user-menu a {
    color: var(--wiki-text-light);
    white-space: nowrap;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================
   DESKTOP RESET (above 768px)
   Ensures proper display when resizing from mobile to desktop
   ========================================== */
@media (min-width: 769px) {
    .wiki-header-right {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        flex-direction: row !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .wiki-sidebar {
        position: static !important;
        left: auto !important;
        width: var(--sidebar-width) !important;
        height: auto !important;
        min-height: auto !important;
    }

    .sidebar-overlay {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ==========================================
   TABLET BREAKPOINT (1024px)
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 180px;
    }

    .wiki-content {
        padding: 20px;
    }

    .wiki-search input {
        width: 200px;
    }

    .infobox {
        width: 240px;
    }
}

/* ==========================================
   SMALL TABLET / LARGE MOBILE (768px)
   ========================================== */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Header adjustments */
    .wiki-header {
        padding: 10px 15px;
    }

    .wiki-header-inner {
        position: relative;
    }

    .wiki-logo h1 {
        font-size: 1.2em;
    }

    .wiki-logo .subtitle {
        font-size: 0.65em;
    }

    /* Header right - hidden by default on mobile */
    .wiki-header-right {
        display: none;
        position: absolute;
        top: 100%;
        left: -15px;
        right: -15px;
        background: var(--wiki-bg-light);
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        border-bottom: 1px solid var(--wiki-border);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .wiki-header-right.active {
        display: flex;
    }

    .wiki-search {
        width: 100%;
    }

    .wiki-search input {
        width: 100%;
        flex: 1;
    }

    .user-menu {
        width: 100%;
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid var(--wiki-border);
    }

    /* Navigation */
    .wiki-nav {
        padding: 0 15px;
    }

    .wiki-nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 0;
        gap: 10px 20px;
    }

    /* Container */
    .wiki-container {
        flex-direction: column;
        position: relative;
    }

    /* Sidebar - transforms to slide-out menu on mobile */
    .wiki-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        min-height: 100vh;
        border-right: 1px solid var(--wiki-border);
        border-bottom: none;
        z-index: 999;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding-top: 60px;
    }

    .wiki-sidebar.active {
        left: 0;
    }

    /* Content */
    .wiki-content {
        max-width: 100%;
        padding: 15px;
    }

    /* Infobox */
    .infobox {
        float: none;
        width: 100%;
        margin: 15px 0;
    }

    /* Article */
    .article-header h1 {
        font-size: 1.5em;
    }

    .article-actions {
        float: none;
        margin-bottom: 10px;
    }

    /* Review */
    .review-header {
        flex-direction: column;
        gap: 10px;
    }

    .review-meta {
        align-items: flex-start;
    }

    /* AI Section */
    .ai-section {
        padding: 15px;
        margin: 20px 0;
    }

    /* Form groups */
    .btn-group {
        flex-wrap: wrap;
    }

    /* Editor toolbar */
    .rich-editor-toolbar {
        justify-content: center;
    }
}

/* ==========================================
   MOBILE BREAKPOINT (480px)
   ========================================== */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .wiki-header {
        padding: 8px 10px;
    }

    .wiki-logo h1 {
        font-size: 1em;
    }

    .wiki-logo .subtitle {
        display: none;
    }

    .wiki-nav-inner {
        font-size: 12px;
        gap: 8px 15px;
    }

    .wiki-content {
        padding: 10px;
    }

    .article-header h1 {
        font-size: 1.3em;
    }

    .article-section h2 {
        font-size: 1.2em;
    }

    .article-section h3 {
        font-size: 1.1em;
    }

    /* Buttons */
    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
        text-align: center;
    }

    /* Article list */
    .article-list-item {
        padding: 12px 10px;
    }

    .article-list-item h3 {
        font-size: 1em;
    }

    /* Editor */
    .editor-container {
        padding: 10px;
    }

    .form-group input[type="text"],
    .form-group input[type="url"],
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevent iOS zoom on focus */
    }

    /* Categories */
    .category-tag {
        font-size: 11px;
        padding: 2px 6px;
    }

    /* AI Section */
    .ai-section h2 {
        font-size: 1.1em;
    }

    .btn-ai {
        width: 100%;
        padding: 10px 20px;
    }

    /* Human Rights Box */
    .human-rights-box {
        padding: 10px;
    }

    /* Source box */
    .source-box {
        font-size: 11px;
    }

    /* Footer */
    .wiki-footer {
        padding: 15px 10px;
    }
}

/* ==========================================
   SMALL MOBILE BREAKPOINT (360px)
   ========================================== */
@media (max-width: 360px) {
    .wiki-logo h1 {
        font-size: 0.9em;
    }

    .wiki-nav-inner {
        font-size: 11px;
        gap: 5px 10px;
    }

    .wiki-nav-inner a {
        padding: 2px 0;
    }

    .article-header h1 {
        font-size: 1.15em;
    }

    .infobox-label {
        width: 70px;
        font-size: 12px;
    }

    .infobox-value {
        font-size: 12px;
    }
}

/* ==========================================
   LANDSCAPE MOBILE ORIENTATION
   ========================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .wiki-sidebar {
        width: 250px;
        padding-top: 50px;
    }

    .wiki-header-right {
        top: 100%;
    }
}

/* ==========================================
   TOUCH DEVICE IMPROVEMENTS
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .sidebar-section li {
        margin: 8px 0;
    }

    .sidebar-section a {
        display: block;
        padding: 5px 0;
    }

    .wiki-nav-inner a {
        padding: 5px 0;
    }

    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Remove hover effects that don't work well on touch */
    .article-list-item:hover {
        background: transparent;
    }

    .article-list-item:active {
        background: var(--wiki-bg-light);
    }
}

/* Rich Text Editor */
.rich-editor-wrapper {
    border: 1px solid var(--wiki-border);
    border-radius: 2px;
    background: white;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px;
    background: var(--wiki-bg);
    border-bottom: 1px solid var(--wiki-border);
}

.rich-editor-toolbar button {
    padding: 6px 10px;
    border: 1px solid var(--wiki-border);
    border-radius: 2px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    min-width: 32px;
}

.rich-editor-toolbar button:hover {
    background: var(--wiki-bg-light);
}

.rich-editor-toolbar button.active {
    background: var(--wiki-blue);
    color: white;
    border-color: var(--wiki-blue-dark);
}

.rich-editor-toolbar .separator {
    width: 1px;
    background: var(--wiki-border);
    margin: 0 5px;
}

.rich-editor-content {
    min-height: 150px;
    padding: 12px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}

.rich-editor-content:focus {
    box-shadow: inset 0 0 0 2px var(--wiki-blue);
}

.rich-editor-content p {
    margin: 0 0 10px 0;
}

.rich-editor-content p:last-child {
    margin-bottom: 0;
}

.rich-editor-content ul,
.rich-editor-content ol {
    margin: 10px 0 10px 25px;
}

.rich-editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.rich-editor-content table th,
.rich-editor-content table td {
    border: 1px solid var(--wiki-border);
    padding: 8px;
    text-align: left;
}

.rich-editor-content table th {
    background: var(--wiki-bg);
    font-weight: bold;
}

.rich-editor-content table tr:nth-child(even) {
    background: var(--wiki-bg-light);
}

/* AI Section */
.ai-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    color: white;
}

.ai-section h2 {
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.ai-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 14px;
}

.btn-ai {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ai:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-ai:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
}

/* Review Result */
.review-result {
    background: white;
    border-radius: 6px;
    margin-top: 20px;
    padding: 20px;
    color: var(--wiki-text);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--wiki-border);
}

.review-header h3 {
    margin: 0;
    color: #667eea;
    font-size: 1.3em;
    flex: 1;
    padding-right: 15px;
}

.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.review-meta span {
    font-size: 12px;
    color: var(--wiki-text-light);
    background: var(--wiki-bg);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Review Content */
.review-content {
    line-height: 1.7;
}

.review-chapo {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 0 4px 4px 0;
}

.review-intertitre {
    color: #667eea;
    font-size: 1.1em;
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.review-hashtags {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--wiki-border);
    color: #667eea;
    font-weight: bold;
    font-size: 13px;
}

.review-source {
    margin-top: 20px;
    padding: 10px 15px;
    background: #e8f4ff;
    border-radius: 4px;
    font-size: 13px;
}

.review-source a {
    word-break: break-all;
}

/* AI Section Error Message */
.ai-section .error-message {
    background: rgba(255, 255, 255, 0.9);
    color: #721c24;
    margin-top: 15px;
}

/* Article Content - Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.article-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content img.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.article-content img.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.article-content figure {
    margin: 20px 0;
    text-align: center;
}

.article-content figcaption {
    font-size: 12px;
    color: var(--wiki-text-light);
    margin-top: 8px;
    font-style: italic;
}

/* Print */
@media print {
    .wiki-sidebar,
    .wiki-nav,
    .article-actions,
    .btn,
    .ai-section {
        display: none;
    }

    .wiki-content {
        max-width: 100%;
    }
}
