/* کارت شیشه‌ای حرفه‌ای */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    border-radius: 2rem;
    box-shadow: 0 20px 40px -12px rgba(0, 70, 120, 0.25), 0 1px 2px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 120, 255, 0.18);
}
.glass-card:hover {
    box-shadow: 0 28px 44px -16px rgba(0, 98, 190, 0.35);
    transform: translateY(-3px);
}
.section-card {
    padding: 1.6rem 2rem;
    margin-bottom: 1.8rem;
}
.faq-item {
    margin-bottom: 5px;
}
/* چیدمان دو ستونه */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    padding-top: 30px;
}
.post-content {
    padding: 0 12px;
    text-align: justify;
    direction: rtl;
}
.post-content {
    color: #303030;
    font-size: 16px;
    line-height: 1.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* فاصله عمومی */
.post-content > *:first-child {
    margin-top: 0;
}

.post-content > *:last-child {
    margin-bottom: 0;
}

/* پاراگراف */
.post-content p {
    margin: 1rem 0;
}

/* هدینگ‌ها */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 700;
    line-height: 1.4;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h2 {
    font-size: 1.75rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

.post-content h5 {
    font-size: 1.1rem;
}

.post-content h6 {
    font-size: 1rem;
}

/* لیست‌ها */
.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-inline-start: 2rem;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin: 0.4rem 0;
    line-height: 1.8;
}

/* لیست‌های تو در تو */
.post-content ul ul {
    list-style-type: circle;
}

.post-content ul ul ul {
    list-style-type: square;
}

.post-content ol ol {
    list-style-type: lower-alpha;
}

.post-content ol ol ol {
    list-style-type: lower-roman;
}

.post-content li > ul,
.post-content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* لینک */
.post-content a {
    color: #60a5fa;
    text-decoration: underline;
}

.post-content a:hover {
    opacity: .85;
}

/* نقل قول */
.post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid #6366f1;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
}

/* کد */
.post-content code {
    font-family: monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
}

.post-content pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    background: #111827;
}

.post-content pre code {
    background: transparent;
    padding: 0;
}

/* تصاویر */
.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 12px;
}

/* جدول */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow-x: auto;
    display: block;
}

.post-content th,
.post-content td {
    border: 1px solid rgba(255,255,255,.12);
    padding: 12px;
    text-align: start;
}

.post-content th {
    font-weight: 600;
}

/* خط جداکننده */
.post-content hr {
    border: none;
    height: 1px;
    margin: 2rem 0;
    background: rgba(255,255,255,.12);
}

/* متن برجسته */
.post-content strong,
.post-content b {
    font-weight: 700;
}

.post-content em,
.post-content i {
    font-style: italic;
}

/* ریسپانسیو */
.post-content iframe,
.post-content video {
    max-width: 100%;
    border-radius: 12px;
}
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
/* تصویر پست (نه تمام عرض) */
.post-image-wrapper {
    text-align: center;
    margin-bottom: 1.8rem;
}
.post-image {
    max-width: 85%;
    height: auto;
    max-height: 300px;
    transition: transform 0.3s;
}
.post-image:hover {
    transform: scale(1.01);
}
.badge-category {
    background: linear-gradient(135deg, #0066cc20, #0099ff20);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0055aa;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.valid-badge {
    background: linear-gradient(115deg, #00c853, #00e676);
    color: white;
    padding: 0.35rem 1.1rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,200,80,0.3);
}
.invalid-badge {
    background: linear-gradient(115deg, #c80000, #e60000);
}
.btn-primary {
    background: linear-gradient(100deg, #0066ee, #0099ff);
    border: none;
    color: white;
    padding: 0.7rem 1.6rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0,100,200,0.2);
}
.btn-primary:hover {
    background: linear-gradient(100deg, #0055cc, #0088ee);
    transform: scale(0.97);
}
.comment-item {
    background: #f9fcff;
    border-radius: 1.2rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-right: 4px solid #2c7da0;
}
.faq-question {
    background: #eef4ff;
    padding: 1rem 1.2rem;
    border-radius: 1.2rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}
.faq-answer {
    padding: 0.8rem 1.3rem 1.2rem 1.3rem;
    background: #ffffffcc;
    border-radius: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    display: none;
}
.report-textarea {
    width: 100%;
    padding: 0.9rem;
    border-radius: 1.2rem;
    border: 1px solid #bdd9ff;
    background: #ffffffd9;
    font-family: inherit;
    resize: vertical;
}
/* ========== بخش لینک خفن با انیمیشن ========== */
.fancy-link-wrapper {
    margin: 1rem 0 1.2rem 0;
}
.fancy-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 2rem;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: #0f2b3d;
    border: 1px solid rgba(0, 150, 255, 0.6);
    box-shadow: 0 8px 20px -8px rgba(0, 100, 200, 0.4);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
    animation: pulseGlow 1.8s infinite ease-in-out, floatIn 0.6s ease-out;
    backdrop-filter: blur(4px);
}
.fancy-link-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,160,255,0.25) 0%, rgba(0,160,255,0) 80%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.fancy-link-card:hover::before {
    opacity: 1;
}
.fancy-link-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 30px -8px #0088ff70;
    border-color: #0099ff;
    background: linear-gradient(135deg, #ffffff, #e5f3ff);
}
@keyframes pulseGlow {
    0% { box-shadow: 0 8px 20px -8px rgba(0, 100, 200, 0.4); border-color: rgba(0, 150, 255, 0.5); }
    50% { box-shadow: 0 0 22px 4px #0088ffaa, 0 8px 20px -4px #0066cc; border-color: #0099ff; }
    100% { box-shadow: 0 8px 20px -8px rgba(0, 100, 200, 0.4); border-color: rgba(0, 150, 255, 0.5); }
}
@keyframes floatIn {
    0% { opacity: 0; transform: translateY(25px); }
    100% { opacity: 1; transform: translateY(0); }
}
.fancy-link-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 2;
}
.fancy-link-img {
    width: 64px;
    height: 64px;
    border-radius: 32px;
    object-fit: cover;
    box-shadow: 0 8px 16px -6px rgba(0,0,0,0.2);
    border: 2px solid white;
    transition: transform 0.3s;
}
.fancy-link-card:hover .fancy-link-img {
    transform: rotate(2deg) scale(1.02);
}
.fancy-link-text {
    display: flex;
    flex-direction: column;
}
.fancy-link-title {
    font-weight: 800;
    font-size: 1.3rem;
    background: linear-gradient(120deg, #004e92, #008cff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.fancy-link-desc {
    font-size: 0.75rem;
    color: #2c6a9e;
}
.fancy-link-arrow {
    background: #0080ff20;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #0080ff;
    transition: 0.2s;
    margin-right: 0.5rem;
}
.fancy-link-card:hover .fancy-link-arrow {
    background: #0080ff;
    color: white;
    transform: translateX(-6px);
    box-shadow: 0 4px 12px #0080ff60;
}
/* ابزارها */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}
.tool-item {
    background: #eef3fe;
    border-radius: 1.5rem;
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    color: #0066bb;
}
.tool-item:hover {
    background: #d9eaff;
    transform: translateY(-2px);
}
.similar-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e2efff;
    cursor: pointer;
}
.similar-post-img {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    object-fit: cover;
}
.similar-post-title {
    font-weight: 600;
    font-size: 0.9rem;
}
.flex-between {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
@media (max-width: 880px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .post-image {
        max-width: 95%;
    }
    .container {
        padding: 1rem;
    }
    .section-card {
        padding: 1.2rem;
    }
    .fancy-link-left {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .fancy-link-title {
        font-size: 1.1rem;
    }
}
.footer-note {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 2rem;
}
.comment-form input, .comment-form textarea {
    border-radius: 1rem;
    border: 1px solid #c5daff;
    padding: 0.7rem;
    width: 100%;
    margin-bottom: 10px;
    background: #fffffffa;
    font-family: inherit;
}
