/* ==================== ARTICLE PAGE ==================== */

/* Hero Header */
.article-hero {
    background: var(--bg-dark);
    padding: 50px 0 45px;
}
.article-hero-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: var(--primary);
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 22px;
    transition: var(--transition);
}
.article-hero-cat:hover { background: #0284c7; }
.article-hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 22px;
    max-width: 860px;
}
.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
}
.hero-meta-author {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}
.hero-meta-sep {
    color: rgba(255,255,255,0.25);
}

/* Breadcrumb Bar */
.article-breadcrumb-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs svg { opacity: .35; flex-shrink: 0; }
.breadcrumb-current { color: var(--text-body); }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    padding: 40px 0;
}

.article-content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 720px;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 12px;
}
.article-content p { margin-bottom: 22px; }
.article-content img {
    display: block;
    margin: 24px auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 100%;
    height: auto;
}
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 10px; }
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 18px 24px;
    background: var(--bg-light);
    margin: 24px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-body);
}
.article-content pre {
    background: var(--bg-dark);
    color: #e2e8f0;
    padding: 24px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 24px 0;
    font-size: 0.88rem;
    line-height: 1.7;
}
.article-content code {
    background: var(--bg-light);
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 0.88em;
    color: var(--primary-dark);
}
.article-content pre code { background: none; padding: 0; color: inherit; }
.article-content a { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.article-content th, .article-content td {
    border: 1px solid var(--border);
    padding: 12px 16px;
    text-align: left;
}
.article-content th { background: var(--bg-light); font-weight: 700; color: var(--text-dark); }

.article-featured-image {
    margin: 0 auto 32px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.article-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Password Protection Wall */
.article-password-wall {
    text-align: center;
    padding: 60px 30px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}
.password-wall-icon {
    color: var(--primary);
    margin-bottom: 20px;
}
.password-wall-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.password-wall-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 24px;
}
.password-wall-error {
    font-size: 0.85rem;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}
.password-wall-form {
    max-width: 380px;
    margin: 0 auto;
}
.password-wall-input-wrap {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}
.password-wall-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.password-wall-input-wrap input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
    font-family: inherit;
}
.password-wall-input-wrap button {
    padding: 12px 18px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.password-wall-input-wrap button:hover {
    background: var(--primary-dark);
}

/* Feedback Box */
.article-feedback {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding: 20px 24px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 3px solid #f59e0b;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-feedback-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}
.article-feedback-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.article-feedback-body p {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 14px;
}
.article-feedback-btn {
    display: inline-block;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dark);
    border: 1.5px solid var(--text-dark);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.article-feedback-btn:hover {
    background: var(--text-dark);
    color: #fff;
}

/* Report Modal */
.report-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.report-modal-overlay.active {
    display: flex;
}
.report-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 480px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.report-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}
.report-modal-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}
.report-modal-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dark);
    flex: 1;
}
.report-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}
.report-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}
.report-modal-body {
    padding: 20px 24px 24px;
}
.report-modal-context {
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: 20px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: 8px;
    line-height: 1.5;
}
.report-modal-context strong {
    color: var(--text-dark);
}
.report-field {
    margin-bottom: 16px;
}
.report-field label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.report-field .required {
    color: #ef4444;
}
.report-field select,
.report-field textarea,
.report-field input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.88rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.report-field select:focus,
.report-field textarea:focus,
.report-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.report-field textarea {
    resize: vertical;
    min-height: 80px;
}
.report-message {
    font-size: 0.85rem;
    padding: 0;
    margin-bottom: 0;
    border-radius: 8px;
    display: none;
}
.report-message.show {
    display: block;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.report-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.report-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.report-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}
.report-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}
.report-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
