/* ================================
   post.css - نسخه نهایی 2025
   خانه ربات و وب — Shahbazion.ir
   ================================ */

/* ===== متغیرهای CSS 2025 ===== */
:root {
  --primary-color: #c9a84c;
  --primary-dark: #b4922f;
  --primary-light: #d4b76e;
  --secondary-color: #b4922f;
  --accent-color: #c9a84c;
  --accent-light: #d4b76e;
  --text-color: #2c2c2c;
  --text-light: #5c5c5c;
  --text-lighter: #8a8a8a;
  --bg-color: #fefcf9;
  --bg-light: #fdfaf5;
  --bg-lighter: #faf8f3;
  --card-color: #ffffff;
  --border-color: #e0dcd0;
  --border-radius: 16px;
  --box-shadow: 0 6px 20px rgba(201,168,76,0.08);
  --box-shadow-hover: 0 12px 30px rgba(201,168,76,0.12);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-family: 'B Nazanin', Tahoma, Arial, sans-serif;

  --card-color: #ffffff;
  --header-bg: #fdfaf5;
  --footer-bg: #faf8f3;
  --footer-light: #f0ede0;
  --highlight-link: #c9a84c;
  --link-border: #c9a84c;
  --faq-bg: #f0ede0;
  --container-padding: 1.5rem;
  --mobile-breakpoint: 768px;
  --tablet-breakpoint: 1024px;

  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 245, 0.9));
  --glass-effect: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(201,168,76,0.18);
}

/* ===== بهبود اسکرول بار ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
}

::-webkit-scrollbar-corner {
  background: var(--bg-light);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-light);
}

/* ===== ریست پایه و تنظیمات عمومی ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.8;
    background-color: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    padding: var(--container-padding);
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(201,168,76,0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(201,168,76,0.05) 0%, transparent 20%);
}

/* ===== کانتینر اصلی ===== */
.container {
    max-width: min(1100px, 95vw);
    margin: 2.5rem auto;
    padding: 0 var(--container-padding);
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

/* ===== انیمیشن‌ها ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

/* ===== هدر پست ===== */
.blog-header {
    position: relative;
    background: var(--header-bg);
    color: var(--text-color);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.8s ease-out;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(201,168,76,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201,168,76,0.05) 0%, transparent 50%);
    z-index: 1;
}

.blog-header .header-text {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: calc(var(--border-radius) - 5px);
    border: 1px solid rgba(201,168,76,0.15);
}

.blog-header h1 {
    color: var(--text-color);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.post-header-date {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(201,168,76,0.1);
    padding: 12px 24px;
    border-radius: 50px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ===== breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2rem 0;
    padding: 20px;
    background: rgba(255,255,255,0.6);
    border-radius: var(--border-radius);
    font-size: 1rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(201,168,76,0.15);
    animation: fadeIn 0.6s ease-out 0.2s both;
    color: var(--text-color);
}

.breadcrumb-separator {
    color: var(--text-lighter);
    margin: 0 8px;
    font-size: 1.2rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.breadcrumb-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(201,168,76,0.08);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    background: rgba(201,168,76,0.15);
    transform: translateY(-2px);
}

.breadcrumb-item.active {
    color: var(--primary-dark);
    font-weight: 700;
    padding: 6px 12px;
    background: rgba(201,168,76,0.15);
    border-radius: 8px;
}

/* ===== دسته‌بندی‌های پست ===== */
.post-categories-container {
    margin: 2rem 0;
    padding: 25px;
    background: rgba(255,255,255,0.6);
    border-radius: var(--border-radius);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(201,168,76,0.15);
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.categories-title {
    font-weight: 800;
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-tag {
    background: rgba(201,168,76,0.15);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(201,168,76,0.25);
}

.category-tag:hover {
    background: rgba(201,168,76,0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.category-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
    transform: translateY(-2px);
}

.category-tag.active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

/* ===== user mini profile ===== */
.user-profile-mini {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    font-weight: 700;
    flex-wrap: wrap;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201,168,76,0.15);
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.user-profile-mini .badge-admin {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    border: none;
    white-space: nowrap;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(201,168,76,0.3);
}

.user-profile-mini button#logoutBtn {
    background: transparent;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-mini button#logoutBtn:hover {
    background: rgba(201,168,76,0.1);
    transform: translateY(-2px);
}

/* ===== تصویر Header ===== */
.header-image-wrapper {
    text-align: center;
    margin: 2.5rem 0;
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.header-image-wrapper img {
    display: block;
    margin: 1.5rem auto;
    max-width: min(600px, 95%);
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid rgba(201,168,76,0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: var(--transition);
    filter: brightness(1.02) contrast(1.05);
}

.header-image-wrapper img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* ===== استایل‌های عکس‌های مدرن ===== */
.post-card img {
    width: min(45%, 100%);
    max-width: 320px;
    border-radius: 20px;
    border: 3px solid rgba(201,168,76,0.15);
    box-shadow:
        0 10px 30px rgba(201,168,76,0.15),
        0 5px 15px rgba(201,168,76,0.1);
    object-fit: cover;
    margin: 0 auto;
    transition: var(--transition);
    height: auto;
    padding: 10px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    animation: pulse 2s infinite;
}

.post-card img:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 20px 50px rgba(201,168,76,0.25),
        0 10px 25px rgba(201,168,76,0.15);
    border-color: var(--primary-color);
    animation: none;
}

.blog-post img {
    display: block;
    margin: 2rem auto;
    width: min(55%, 100%);
    max-width: 380px;
    border-radius: 18px;
    border: 3px solid rgba(201,168,76,0.15);
    box-shadow:
        0 8px 25px rgba(201,168,76,0.12),
        0 4px 12px rgba(201,168,76,0.08);
    height: auto;
    padding: 8px;
    background: rgba(255,255,255,0.8);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.blog-post img:hover {
    transform: translateY(-6px);
    box-shadow:
        0 15px 40px rgba(201,168,76,0.2),
        0 8px 20px rgba(201,168,76,0.12);
    border-color: var(--primary-color);
}

.blog-post figure {
    margin: 2.5rem auto;
    text-align: center;
    padding: 0;
    animation: fadeIn 0.6s ease-out;
}

.blog-post figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 10px 15px;
    background: rgba(201,168,76,0.08);
    border-radius: 12px;
    border-right: 3px solid var(--primary-color);
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(5px);
}

/* ===== کارت پست ===== */
.post-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.9);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin: 2rem 0;
    border: 1px solid rgba(201,168,76,0.15);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease-out;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(201,168,76,0.3);
}

.post-card .post-content {
    width: 100%;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
}

/* ===== محتوای مقاله ===== */
.blog-post {
    background: rgba(255,255,255,0.9);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    line-height: 1.9;
    color: var(--text-color);
    font-size: clamp(1rem, 2.8vw, 1.15rem);
    overflow-wrap: break-word;
    word-wrap: break-word;
    border: 1px solid rgba(201,168,76,0.15);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.blog-post h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 3px solid rgba(201,168,76,0.2);
    position: relative;
}

.blog-post h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.blog-post h3 {
    margin-top: 2rem;
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    color: var(--primary-dark);
    line-height: 1.4;
    font-weight: 700;
    padding-right: 15px;
    border-right: 4px solid var(--accent-color);
}

.blog-post p {
    margin-bottom: 1.8rem;
    color: var(--text-color);
    text-align: justify;
    font-size: 1.1rem;
}

/* ===== کامپوننت‌های خاص پست ===== */
.highlight-box {
    background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06));
    border-right: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201,168,76,0.15);
    animation: fadeIn 0.6s ease-out;
}

.highlight-box p {
    margin: 0;
    color: var(--text-color);
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 500;
}

.stat-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 20px;
    border: 2px solid rgba(201,168,76,0.25);
    box-shadow: 0 10px 30px rgba(201,168,76,0.1);
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.stat-item {
    text-align: center;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(201,168,76,0.1);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    font-weight: 600;
}

.treatment-flow {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 2px solid rgba(201,168,76,0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.treatment-flow h4 {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.treatment-flow h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border-right: 5px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.flow-step:hover {
    background: rgba(201,168,76,0.08);
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.15);
}

.flow-step-number {
    background: var(--gradient-primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(201,168,76,0.4);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.6s ease-out 0.5s both;
    border: 1px solid rgba(201,168,76,0.1);
}

.comparison-table caption {
    caption-side: top;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1.5rem;
    background: rgba(201,168,76,0.1);
    border-radius: 12px;
}

.comparison-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-weight: 700;
    border: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    transition: var(--transition);
}

.comparison-table tr:hover td {
    background: rgba(201,168,76,0.07);
    transform: scale(1.02);
}

.reference-list {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    padding: 2rem;
    margin: 2.5rem 0;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.reference-list h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(201,168,76,0.2);
}

.reference-list ul {
    list-style: none;
    padding: 0;
}

.reference-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.05rem;
    transition: var(--transition);
}

.reference-list li:hover {
    padding-right: 10px;
    color: var(--primary-dark);
}

.reference-list li:last-child {
    border-bottom: none;
}

/* ===== جدول مدرن ===== */
.table-container {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(201,168,76,0.15);
    animation: fadeIn 0.6s ease-out;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    min-width: 650px;
    backdrop-filter: blur(10px);
}

th, td {
    padding: clamp(12px, 2.5vw, 18px);
    text-align: center;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    word-break: break-word;
    font-size: 1.05rem;
}

th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 18px 15px;
    border: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

td {
    padding: 16px;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

tr:hover td {
    background: rgba(201,168,76,0.07);
    transform: scale(1.02);
}

/* ===== لینک‌ها ===== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    word-break: break-word;
    font-weight: 600;
    position: relative;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 1px;
}

a:hover::after {
    width: 100%;
}

/* ===== لینک بازگشت ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
    font-size: clamp(1rem, 2.8vw, 1.1rem);
    padding: 12px 24px;
    background: rgba(201,168,76,0.1);
    border-radius: 12px;
    border: 1px solid rgba(201,168,76,0.2);
}

.back-link:hover {
    color: var(--primary-dark);
    background: rgba(201,168,76,0.2);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.15);
}

/* ===== فوتر بهبود یافته ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--text-light);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.05);
    border-radius: 25px 25px 0 0;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color);
    animation: fadeIn 0.6s ease-out 0.7s both;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(201,168,76,0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(201,168,76,0.03) 0%, transparent 40%);
    z-index: 1;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 1300px;
    margin: 0 auto 2rem auto;
    position: relative;
    z-index: 2;
}

.footer-column {
    flex: 1 1 min(300px, 100%);
    min-width: 250px;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    padding-bottom: 10px;
    border-bottom: 3px solid rgba(201,168,76,0.2);
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 1.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 1rem;
    transition: var(--transition);
}

.footer-column ul li:hover {
    transform: translateX(-5px);
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s;
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column ul li a:hover {
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-lighter);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    padding-top: 2rem;
    border-top: 1px solid rgba(201,168,76,0.2);
    position: relative;
    z-index: 2;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(201,168,76,0.1);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ===== FAQ ===== */
.faq {
    margin-top: 3rem;
    font-family: var(--font-family);
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.faq details.faq-item {
    margin-bottom: 1.5rem;
    border: none;
}

.faq details.faq-item > summary {
    cursor: pointer;
    background: var(--bg-light);
    padding: clamp(15px, 4vw, 20px) clamp(18px, 4vw, 25px);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    font-weight: 700;
    color: var(--text-color);
    list-style: none;
    position: relative;
}

.faq details.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq details.faq-item > summary::after {
    content: '▸';
    position: absolute;
    left: 25px;
    font-size: 1.5rem;
    transition: transform 0.4s;
    color: var(--primary-color);
}

.faq details.faq-item[open] > summary::after {
    transform: rotate(90deg);
    color: var(--primary-dark);
}

.faq details.faq-item > summary:hover {
    background: rgba(201,168,76,0.15);
    transform: translateY(-3px);
    color: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(201,168,76,0.2);
}

.faq details.faq-item .faq-content {
    padding: clamp(15px, 4vw, 20px) clamp(18px, 4vw, 25px);
    border-left: 5px solid var(--accent-color);
    background: var(--bg-light);
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    color: var(--text-color);
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.8;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201,168,76,0.1);
    animation: slideUp 0.4s ease-out;
}

/* ===== دیدگاه‌ها ===== */
.comments-section {
    margin-top: 3.5rem;
    background: var(--card-color);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(201,168,76,0.1);
    animation: fadeIn 0.6s ease-out 0.9s both;
}

.comments-section h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 3px solid rgba(201,168,76,0.2);
    position: relative;
}

.comments-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 1.5px;
}

.comments-section form input,
.comments-section form textarea {
    width: 100%;
    padding: clamp(12px, 3vw, 16px);
    margin-bottom: 1.2rem;
    border-radius: 12px;
    border: 2px solid rgba(201,168,76,0.3);
    background: var(--bg-light);
    color: var(--text-color);
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    font-family: var(--font-family);
    transition: var(--transition);
}

.comments-section form input:focus,
.comments-section form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
    transform: translateY(-2px);
}

.comments-section form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.comments-section form button {
    background: var(--gradient-primary);
    color: #fff;
    padding: clamp(12px, 3vw, 16px) clamp(20px, 4vw, 30px);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}

.comments-section form button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201,168,76,0.4);
}

.comment-card {
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
    border-radius: 15px;
    background: var(--bg-light);
    transition: var(--transition);
    border: 1px solid rgba(201,168,76,0.08);
}

.comment-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.comment-admin {
    border: 2px solid var(--primary-color);
    background: rgba(201,168,76,0.06);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.comment-admin::before {
    content: '⚙️ پاسخ ادمین';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(201,168,76,0.3);
}

/* ===== پاسخ ===== */
.reply-box {
    margin-right: clamp(1.5rem, 4vw, 3rem);
    border-right: 4px solid var(--primary-color);
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(201,168,76,0.06);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
    transition: var(--transition);
    border: 1px solid rgba(201,168,76,0.15);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.reply-box:hover {
    background: rgba(201,168,76,0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(201,168,76,0.15);
}

/* ===== استایل لینک‌های ادمین در کامنت‌ها ===== */
.comment-admin a {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 5px 8px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(201,168,76,0.25);
    animation: pulse 3s infinite;
}

.comment-admin a:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201,168,76,0.4);
    color: white;
    text-decoration: none;
    animation: none;
}

.comment-admin a[href*="shahbazion.ir"] {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: white;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(201,168,76,0.3);
    text-align: center;
    min-width: 200px;
    margin: 10px 5px;
}

.comment-admin a[href*="shahbazion.ir"]:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    color: white;
    box-shadow: 0 12px 35px rgba(201,168,76,0.4);
    text-decoration: none;
    transform: translateY(-5px);
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    margin-top: 8px;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reply-btn:hover {
    background: rgba(201,168,76,0.1);
    transform: translateY(-2px);
}

.reply-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    border: 2px solid rgba(201,168,76,0.3);
    background: var(--bg-light);
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
    transform: translateY(-2px);
}

.reply-form button {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}

.reply-form button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201,168,76,0.4);
}

/* ===== مودال ورود و ثبت نام ===== */
#loginModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease forwards;
    padding: 1.5rem;
}

#loginModalContent {
    background: var(--card-color);
    backdrop-filter: blur(15px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
    width: min(400px, 95vw);
    max-width: 95vw;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.5s ease forwards;
    text-align: center;
    border: 1px solid rgba(201,168,76,0.15);
}

#closeLogin {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.05);
}

#closeLogin:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

#loginTabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
}

#loginTabs button {
    flex: 1;
    border: none;
    padding: clamp(12px, 3vw, 16px) 0;
    cursor: pointer;
    font-weight: 700;
    background: transparent;
    color: var(--text-color);
    transition: var(--transition);
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
}

#loginTabs button.active {
    background: var(--gradient-primary);
    color: #fff;
}

#loginTabs button:hover {
    background: rgba(201,168,76,0.2);
}

#loginModalContent input {
    width: 100%;
    padding: clamp(12px, 3vw, 16px);
    margin-bottom: 1.2rem;
    border-radius: 12px;
    border: 2px solid rgba(201,168,76,0.3);
    background: var(--bg-light);
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    font-family: var(--font-family);
    transition: var(--transition);
}

#loginModalContent input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
    transform: translateY(-2px);
}

#loginModalContent button[type="submit"] {
    width: 100%;
    padding: clamp(12px, 3vw, 16px);
    border: none;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(201,168,76,0.3);
}

#loginModalContent button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201,168,76,0.4);
}

/* ===== دارک مود ===== */
body.dark-mode {
    --bg-color: #2b2b2b;
    --text-color: #e0d6c2;
    --card-color: #1a1a2e;
    --header-bg: #2b2b2b;
    --footer-bg: #2b2b2b;
    --footer-light: #0d1912;
    --accent: #c9a84c;
    --shadow: rgba(0, 0, 0, 0.6);
    --shadow-hover: rgba(0, 0, 0, 0.8);
    --highlight-link: #c9a84c;
    --link-border: #c9a84c;
    --text-light: #b0a590;
    --text-lighter: #8a8a8a;
    --bg-light: #1a1a2e;
    --bg-lighter: #252547;
    --border-color: #2d3748;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(201,168,76,0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(201,168,76,0.05) 0%, transparent 20%);
}

body.dark-mode .blog-header {
    background: var(--header-bg);
    border-bottom-color: rgba(201,168,76,0.2);
}

body.dark-mode .blog-header h1 {
    color: var(--text-color);
}

body.dark-mode .post-card,
body.dark-mode .blog-post,
body.dark-mode .comments-section {
    background: var(--card-color);
    color: var(--text-color);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(201,168,76,0.2);
}

body.dark-mode .blog-post p {
    color: var(--text-light);
}

body.dark-mode .blog-post h2 {
    color: var(--text-color);
}

body.dark-mode .blog-post h3 {
    color: var(--accent-color);
}

body.dark-mode .post-card img,
body.dark-mode .blog-post img {
    border-color: rgba(201,168,76,0.3);
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 10px 35px rgba(0,0,0,0.4);
}

body.dark-mode .post-card img:hover,
body.dark-mode .blog-post img:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(201,168,76,0.2);
}

body.dark-mode .blog-post figcaption {
    background: rgba(201,168,76,0.1);
    color: var(--text-light);
    border-right-color: var(--primary-color);
}

body.dark-mode .highlight-box {
    background: rgba(201,168,76,0.1);
    border-right-color: var(--primary-color);
}

body.dark-mode .stat-box {
    background: var(--bg-light);
    border-color: rgba(201,168,76,0.25);
}

body.dark-mode .stat-item {
    background: rgba(26, 26, 46, 0.95);
    color: var(--text-color);
}

body.dark-mode .stat-label {
    color: var(--text-light);
}

body.dark-mode .treatment-flow {
    background: rgba(26, 26, 46, 0.9);
    border-color: rgba(201,168,76,0.2);
}

body.dark-mode .flow-step {
    background: rgba(40, 40, 60, 0.95);
    border-right-color: var(--primary-color);
}

body.dark-mode .flow-step:hover {
    background: rgba(201,168,76,0.12);
}

body.dark-mode .comparison-table {
    background: rgba(26, 26, 46, 0.95);
}

body.dark-mode .comparison-table caption {
    color: var(--text-color);
}

body.dark-mode .comparison-table td {
    background: rgba(40, 40, 60, 0.8);
    color: var(--text-light);
}

body.dark-mode .comparison-table tr:hover td {
    background: rgba(201,168,76,0.12);
}

body.dark-mode .reference-list {
    background: rgba(40, 40, 60, 0.9);
    border-left-color: var(--primary-color);
}

body.dark-mode .reference-list h3 {
    color: var(--text-color);
}

body.dark-mode .reference-list li {
    color: var(--text-light);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .comment-admin a {
    background: rgba(201,168,76,0.2);
    color: white;
    border-color: rgba(201,168,76,0.4);
}

body.dark-mode .comment-admin a:hover {
    background: rgba(201,168,76,0.3);
}

body.dark-mode table {
    background: rgba(30, 36, 33, 0.95);
}

body.dark-mode th {
    background: var(--gradient-primary);
    color: white;
}

body.dark-mode td {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(40, 48, 43, 0.8);
}

body.dark-mode .site-footer {
    background: var(--footer-bg);
    color: var(--text-light);
}

body.dark-mode .footer-column h4 {
    color: var(--text-color);
}

body.dark-mode .footer-bottom {
    color: var(--text-lighter);
}

body.dark-mode .faq details.faq-item > summary {
    background: var(--bg-light);
    color: var(--text-color);
}

body.dark-mode .faq details.faq-item .faq-content {
    background: rgba(30, 38, 34, 0.95);
    border-left-color: var(--primary-color);
    color: var(--text-light);
}

body.dark-mode #loginModalContent {
    background: rgba(25, 32, 28, 0.98);
    color: var(--text-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

body.dark-mode #loginTabs button.active {
    background: var(--gradient-primary);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    body { padding: 0 0.5rem; }
    .container { padding: 0 0.8rem; margin: 1.5rem auto; }
    .blog-header { padding: 2rem 1rem; }
    .blog-header h1 { font-size: 1.6rem; }
    .post-card { padding: 1.5rem; }
    .post-card img { width: 70%; }
    .blog-post { 
        padding: 1.5rem; 
        max-width: 100%; 
        margin-left: auto; 
        margin-right: auto; 
    }
    .blog-post img { width: 80%; }
    .stat-box { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; }
    
    table {
        min-width: auto !important;
        width: 100% !important;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td { white-space: nowrap; }
    
    .blog-post img,
    .post-card img,
    img {
        max-width: 100% !important;
        height: auto;
    }
}

@media (max-width: 480px) {
    body { padding: 0 0.4rem; }
    .blog-header h1 { font-size: 1.3rem; }
    .post-card, .blog-post { padding: 1rem; }
    .blog-post { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}