/* ============================================
   NOTE CONTENT - ساده‌تر از مقاله
   ============================================ */
   .note-wrapper {
    max-width: 920px;
    margin: 20px auto 0;
}

.note-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem 3.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* ===== NOTE HEADER ===== */
.note-header {
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.2rem;
}

.note-header .note-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-light);
    padding: 0.1rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.note-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.note-header .note-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.note-header .tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.note-header .tags .tag {
    background: var(--border-color);
    padding: 0.05rem 0.8rem;
    border-radius: 20px;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* ===== NOTE FEATURED IMAGE ===== */
.note-featured-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-light), var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
}

.note-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== NOTE BODY ===== */
.note-body {
    color: var(--text-secondary);
}

.note-body p {
    margin-bottom: 0.8rem;
    line-height: 1.9;
}

.note-body ul,
.note-body ol {
    padding-right: 1.5rem;
    margin-bottom: 0.8rem;
}

html[dir="ltr"] .note-body ul,
html[dir="ltr"] .note-body ol {
    padding-right: 0;
    padding-left: 1.5rem;
}

.note-body li {
    margin-bottom: 0.3rem;
}

.note-body blockquote {
    border-right: 3px solid var(--accent);
    padding: 0.4rem 1.2rem;
    margin: 0.8rem 0;
    background: var(--bg-body);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

html[dir="ltr"] .note-body blockquote {
    border-right: none;
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.note-body code {
    background: var(--bg-body);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

.note-body pre {
    background: var(--bg-body);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 0.8rem 0;
    border: 1px solid var(--border-color);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.note-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.note-body .figure {
    margin: 1rem 0;
    text-align: center;
}

.note-body .figure img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.note-body .figure figcaption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.note-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
}

.note-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

/* ===== FOOTER NOTE ===== */
.footer-note {
    margin-top: 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   RESPONSIVE - NOTE
   ============================================ */
@media (max-width: 768px) {
    .note-content {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-sm);
        margin-top: 12px;
    }
    .note-header h1 {
        font-size: 1.4rem;
    }
    .note-featured-image {
        height: 150px;
    }
}

@media (max-width: 500px) {
    .note-content {
        padding: 1rem 0.8rem;
        border-radius: 8px;
    }
    .note-header .note-meta {
        font-size: 0.75rem;
        gap: 0.6rem;
    }
    .note-featured-image {
        height: 120px;
        font-size: 2.5rem;
    }
}