/* جعبه پروفایل خبرنگار - استایل‌های فانتزی */

.reporter-profile-box {
    direction: rtl;
    font-family: 'Tahoma', 'IRANSans', 'Vazir', sans-serif;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    border-radius: 20px;
    padding: 2px;
    margin: 30px 0;
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.reporter-profile-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.reporter-profile-box[data-animation="1"]::before {
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.reporter-header {
    background: var(--bg-color, #ffffff);
    border-radius: 19px;
    padding: 20px 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 120px;
}

.reporter-avatar {
    position: relative;
    flex-shrink: 0;
}

.reporter-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2)) border-box;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reporter-avatar:hover img {
    transform: scale(1.05);
}

.reporter-rank-badge {
    position: absolute;
    bottom: -5px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.35);
    white-space: nowrap;
}

.reporter-info {
    flex: 1;
}

.reporter-name {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reporter-specialty {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color, #667eea);
    font-size: 13px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.reporter-specialty svg {
    stroke: var(--primary-color, #667eea);
}

.reporter-bio {
    color: var(--text-color, #666);
    line-height: 1.6;
    margin: 0 0 12px 0;
    font-size: 13px;
}

.reporter-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.stat-item {
    background: var(--card-bg, #f5f7fa);
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.stat-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 600;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    border-radius: 8px;
    transition: width 1s ease;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.score-number {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color, #667eea);
    min-width: 40px;
}

.stat-posts {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* بخش اخبار پیشین */
.reporter-previous-posts {
    background: var(--bg-color, #ffffff);
    border-radius: 19px;
    padding: 20px 25px;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.previous-posts-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color, #333);
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    border-image-slice: 1;
}

.previous-posts-title svg {
    stroke: var(--primary-color, #667eea);
}

.posts-grid {
    display: grid;
    gap: 15px;
}

.post-grid-item {
    background: var(--bg-color, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.post-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color, #667eea);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 140px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-grid-item:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-content {
    padding: 15px;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-color, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color, #667eea);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #999;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-date svg {
    stroke: #999;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .reporter-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 20px;
    }
    
    .reporter-avatar img {
        width: 90px;
        height: 90px;
    }
    
    .reporter-name {
        font-size: 20px;
    }
    
    .reporter-stats {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr !important;
    }
    
    .reporter-specialty {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .reporter-profile-box {
        margin: 15px -10px;
        border-radius: 14px;
    }
    
    .reporter-header,
    .reporter-previous-posts {
        padding: 15px;
    }
    
    .reporter-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .post-thumbnail {
        height: 120px;
    }
}

/* انیمیشن‌های ظریف */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reporter-profile-box[data-animation="1"] {
    animation: fadeInUp 0.5s ease;
}

.reporter-profile-box[data-animation="1"] .post-grid-item {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

.reporter-profile-box[data-animation="1"] .post-grid-item:nth-child(1) { animation-delay: 0.08s; }
.reporter-profile-box[data-animation="1"] .post-grid-item:nth-child(2) { animation-delay: 0.16s; }
.reporter-profile-box[data-animation="1"] .post-grid-item:nth-child(3) { animation-delay: 0.24s; }
.reporter-profile-box[data-animation="1"] .post-grid-item:nth-child(4) { animation-delay: 0.32s; }
.reporter-profile-box[data-animation="1"] .post-grid-item:nth-child(5) { animation-delay: 0.40s; }
.reporter-profile-box[data-animation="1"] .post-grid-item:nth-child(6) { animation-delay: 0.48s; }
