/* ═══════════════════════════════════════════
   افکت‌های ترسناک
   ═══════════════════════════════════════════ */

/* افکت خون‌چکه روی هدر */
.site-header::after {
    content: '';
    position: absolute;
    bottom: -5px; right: 10%;
    width: 3px; height: 20px;
    background: linear-gradient(to bottom, var(--blood), transparent);
    border-radius: 0 0 3px 3px;
    animation: drip 4s ease-in-out infinite;
    opacity: 0.6;
}
@keyframes drip {
    0%, 100% { height: 0; opacity: 0; }
    50% { height: 25px; opacity: 0.6; }
}

/* افکت چشمک‌زن طلایی */
.story-card:hover .card-badge {
    animation: glow 1.5s ease-in-out infinite;
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--gold); }
    50% { box-shadow: 0 0 20px var(--gold), 0 0 40px rgba(201,169,89,0.3); }
}

/* افکت مه */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(10,10,10,0.3) 100%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0.3;
}

/* افکت سایه ترسناک */
.story-card:hover {
    box-shadow: 0 10px 40px rgba(122, 26, 26, 0.3), 0 0 0 1px rgba(201,169,89,0.1);
}

/* افکت لرزش خفف */
@keyframes subtleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}
.story-card:hover .card-image img {
    animation: subtleShake 0.3s ease-in-out;
}

/* افکت حاشیه پوسیده */
.story-content {
    position: relative;
}
.story-content::before {
    content: '';
    position: absolute;
    top: 0; right: -15px; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--blood), var(--gold), var(--blood), transparent);
    opacity: 0.4;
    border-radius: 3px;
}

/* افکت عنوان خون‌ریزی */
.story-title {
    text-shadow: 0 0 10px rgba(122, 26, 26, 0.3);
}

/* افکت فانوس شناور */
.category-card::before {
    content: '';
    position: absolute;
    top: -20px; left: 50%;
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}
.category-card:hover::before {
    opacity: 0.6;
    top: -30px;
    box-shadow: 0 0 15px var(--gold), 0 0 30px rgba(201,169,89,0.3);
}
.category-card { position: relative; }

/* افکت متن ترسناک در هدر */
.logo-text {
    background: linear-gradient(135deg, var(--gold), #e8d5a0, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* افکت دکمه ترسناک */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.btn-primary:hover::before {
    width: 300px; height: 300px;
}

/* افکت پس‌زمینه الکی */
.dark-mode {
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(122, 26, 26, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 122, 122, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(201, 169, 89, 0.02) 0%, transparent 50%);
}

/* افکت بوردر گرادیانت */
.story-card {
    border-image: linear-gradient(135deg, rgba(122,26,26,0.3), rgba(201,169,89,0.1), rgba(122,26,26,0.3)) 1;
    border-width: 1px;
    border-style: solid;
    border-image-slice: 1;
}

/* افکت هدر ثابت با بلور */
.site-header {
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
}

/* افکت اسکرول نوار طلایی */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--blood); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* افکت انتخاب متن */
::selection { background: var(--blood); color: var(--white); }
::-moz-selection { background: var(--blood); color: var(--white); }

/* افکت لینک‌ها */
.story-content a {
    color: var(--gold);
    border-bottom: 1px dashed var(--gold);
    transition: all 0.2s;
}
.story-content a:hover {
    color: var(--gold-dim);
    border-bottom-style: solid;
}

/* افکت نقل قول */
.story-content blockquote::before {
    content: '«';
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: 5px; right: 10px;
}
.story-content blockquote { position: relative; }

/* افکت تگ */
.story-tag {
    position: relative;
    overflow: hidden;
}
.story-tag::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201,169,89,0.1), transparent);
    transition: left 0.5s;
}
.story-tag:hover::after { left: 100%; }

/* افکت شماره پربازدید */
.popular-rank {
    position: relative;
}
.popular-item:nth-child(1) .popular-rank { color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.popular-item:nth-child(2) .popular-rank { color: #c0c0c0; text-shadow: 0 0 10px rgba(192,192,192,0.5); }
.popular-item:nth-child(3) .popular-rank { color: #cd7f32; text-shadow: 0 0 10px rgba(205,127,50,0.5); }
