﻿
:root {
    --primary-color: #4361ee;
    --primary-light: #eef2ff;
    --secondary-color: #3a0ca3;
    --success-color: #4cc9f0;
    --success-bg: #e7fafd;
    --success-light: #d4edda;
    --warning-light: #fff3cd;
    --danger-light: #f8d7da;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --border-radius: 12px;
}

body {
    background-color: #f5f7fb;
    font-family: Vazir, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
}

/* استایل‌های عمومی */
.navbar-custom {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.brand-logo {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
}

    .brand-logo i {
        margin-left: 8px;
        font-size: 1.4rem;
    }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    font-weight: 500;
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.share-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
}

    .share-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* کارت کارنامه در سایدبار */
.scorecard-card {
    background: white;
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

    .scorecard-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }

.scorecard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.scorecard-rank {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rank-gold {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #856404;
}

.rank-silver {
    background: linear-gradient(45deg, #C0C0C0, #A9A9A9);
    color: #333;
}

.rank-bronze {
    background: linear-gradient(45deg, #CD7F32, #8B4513);
    color: white;
}

.rank-expert {
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    color: white;
}

.scorecard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

    .stat-item:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-sm);
    }

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.progress-container {
    margin-bottom: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

/* استایل‌های باکس انتشار تحلیل (توییت) */
.tweet-box {
    background: white;
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    padding: 0;
    overflow: hidden;
}

.tweet-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-light);
}

    .tweet-header h6 {
        font-weight: 700;
        color: var(--primary-color);
        margin: 0;
    }

.tweet-body {
    padding: 20px;
}

.tweet-textarea {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    min-height: 120px;
    transition: all 0.3s ease;
}

    .tweet-textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    }

    .tweet-textarea::placeholder {
        color: #adb5bd;
    }

/* گزینه‌های تحلیل */
.analysis-options {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 18px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.target-fields {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

/* دکمه‌های ضبط صدا و آپلود */
.tweet-actions {
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
    align-items:end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tweet-media-buttons {
    display: flex;
    gap: 10px;
}

.media-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

    .media-btn:hover {
        background: var(--primary-light);
        color: var(--primary-color);
        transform: scale(1.05);
    }

    .media-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .media-btn.recording {
        background: #f8d7da;
        color: #721c24;
        animation: pulse 1.5s infinite;
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* نمایشگر ضبط صدا */
.recorder-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-bg);
    padding: 8px 15px;
    border-radius: 20px;
    margin-right: 10px;
    display: none;
}

    .recorder-display.active {
        display: flex;
    }

.recording-indicator {
    width: 10px;
    height: 10px;
    background-color: #dc3545;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.recording-time {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* پخش کننده صدا */
.audio-player {
    display: none;
    background: var(--light-bg);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

    .audio-player.active {
        display: block;
    }

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-timeline {
    flex: 1;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.audio-progress {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0%;
}

.audio-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 80px;
}

.audio-delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
}

/* دکمه انتشار */
/*.tweet-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}*/

    .tweet-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .tweet-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* استایل پست‌ها */
.post-card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    margin-bottom: 25px;
    overflow: hidden;
}

 /*   .post-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }*/



.user-avatar-score {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-level {
    position: absolute;
    bottom: -3px;
    right: -5px;
    background-color: transparent;
    color: var(--primary-color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    --border: 2px solid white;
}

.verified-badge {
    color: #1DA1F2;
    font-size: 1rem;
    margin-right: 5px;
    margin-left: 5px;
}

/* نشان تایید تحلیل */
.analysis-verified {
    display: inline-flex;
    align-items: center;
    background: #d4edda;
    color: #155724;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.analysis-failed {
    display: inline-flex;
    align-items: center;
    background: #f8d7da;
    color: #721c24;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.analysis-pending {
    display: inline-flex;
    align-items: center;
    background: #fff3cd;
    color: #856404;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hashtag {
    color: var(--primary-color);
    text-decoration: none;
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-left: 5px;
    transition: all 0.2s ease;
}

    .hashtag:hover {
        background: var(--primary-color);
        color: white;
    }

/* جدول لیگ تحلیلگران */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .leaderboard-table th {
        background: var(--light-bg);
        padding: 12px;
        font-size: 0.9rem;
        color: var(--text-secondary);
        border-bottom: 2px solid var(--border-color);
    }

    .leaderboard-table td {
        padding: 12px;
        border-bottom: 1px solid var(--border-color);
    }

    .leaderboard-table tr:hover {
        background-color: rgba(67, 97, 238, 0.05);
    }

.leaderboard-rank {
    font-weight: 700;
    text-align: center;
    width: 50px;
}

.leaderboard-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

/* استایل‌های پاسخگو */
@media (max-width: 768px) {
    .tweet-actions {
        flex-direction: column;
        gap: 15px;
    }

    .tweet-media-buttons {
        width: 100%;
        justify-content: center;
    }

    .recorder-display {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* بهبود استایل فرم‌ها */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    cursor: pointer;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    }

/* استایل‌های مودال */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 25px;
}

.modal-title {
    font-weight: 700;
    color: var(--primary-color);
}

.modal-body {
    padding: 25px;
}

/* تب‌های کارنامه */
.scorecard-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.scorecard-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

    .scorecard-tab:hover {
        color: var(--primary-color);
    }

    .scorecard-tab.active {
        color: var(--primary-color);
        border-bottom: 3px solid var(--primary-color);
    }

/* نمودار پیشرفت */
.progress-chart {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.chart-bar {
    flex: 1;
    background: #e9ecef;
    border-radius: 6px 6px 0 0;
    position: relative;
    min-height: 10px;
    transition: all 0.3s ease;
}

    .chart-bar:hover {
        transform: translateY(-5px);
    }

.chart-bar-fill {
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 6px 6px 0 0;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.chart-label {
    text-align: center;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.icon-btn{
    border : 0;
}
.icon-btn :hover{
    background : none;
}
.remove-target {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
}

    .remove-target:hover {
        background: none;
        opacity: 0.7;
    }

    /* برای اینکه در حالت هاور، آیکن کمی تیره‌تر شود */
    .remove-target i {
        transition: opacity 0.2s;
    }

    .remove-target:hover i {
        opacity: 0.7;
    }
.btn-remove-target{
    background-color:transparent;
    border:0;
}

.btn{
    border-radius:50px !important;
}

/* استایل‌های پخش کننده پست‌ها */
.audio-player {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .audio-play-btn:hover {
        background: #0b5ed7;
        transform: scale(1.05);
    }

    .audio-play-btn.playing {
        background: #dc3545;
    }

.audio-timeline {
    flex: 1;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.audio-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #0d6efd;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.audio-time {
    min-width: 100px;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
}

/* استایل‌های مربوط به Infinite Scroll */
#loadingIndicator .spinner-border {
    width: 3rem;
    height: 3rem;
}

#endOfPosts .alert {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* انیمیشن برای پست‌های جدید */
.post-card.new-post-animation {
    animation: fadeInUp 0.5s ease-out;
    border-left: 4px solid #0d6efd !important;
}

.post-card.new-loaded {
    animation: slideInDown 0.5s ease-out;
    border-left: 4px solid #0d6efd !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل‌های مربوط به progress bar صدا */
.audio-timeline:hover .audio-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 12px;
    height: 12px;
    background: #0d6efd;
    border-radius: 50%;
    transform: translateX(50%);
}

/* استایل‌های اضافی */
.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.like-btn.liked {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.bookmark-btn.bookmarked {
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        top: 0;
    }

    10% {
        opacity: 1;
        top: 20px;
    }

    90% {
        opacity: 1;
        top: 20px;
    }

    100% {
        opacity: 0;
        top: 0;
    }
}

.simple-media-icons {
    cursor: pointer;
}

.icon-btn {
    border: 0 !important;
}

.comments-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.comment-item {
    transition: all 0.3s ease;
}

  /*  .comment-item:hover {
        background-color: rgba(0, 0, 0, 0.02);
    }*/

.comment-avatar {
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-author {
    font-size: 0.9rem;
    font-weight: 600;
}

.comment-time {
    font-size: 0.75rem;
}

.comment-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.comment-actions button {
    font-size: 0.8rem;
}

.comment-textarea {
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

    .comment-textarea:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.comment-media-preview {
    position: relative;
    display: inline-block;
}

    .comment-media-preview img {
        max-width: 200px;
    }

    .comment-media-preview .remove-media {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 24px;
        height: 24px;
        padding: 0;
        border-radius: 50%;
        font-size: 0.7rem;
    }

/* استایل برای کامنت‌های پاسخ */
.reply-comment {
    margin-right: 20px;
    border-right: 2px solid #dee2e6;
    padding-right: 15px;
}

/* استایل برای لودر هنگام بارگذاری کامنت‌ها */
.comments-loading {
    text-align: center;
    padding: 20px;
}

    .comments-loading .spinner-border {
        width: 1.5rem;
        height: 1.5rem;
    }

.icon-btn {
    /* ریست استایل‌های پیش‌فرض */
    border: none;
    background: none;
    padding: 8px;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    color: currentColor;
    text-decoration: none;
    font-size: inherit;
}

    .icon-btn:hover,
    .icon-btn:focus {
        /* حذف کامل هرگونه پس‌زمینه و حاشیه */
        border: none !important;
        background: transparent !important;
        background-color: transparent !important;
        /* افکت بزرگ‌شدن */
        transform: scale(1.15);
        /* رنگ قرمز */
        color: #6d767e !important;
        fill: #6d767e !important;
        /* حذف هرگونه افکت دیگر */
        box-shadow: none !important;
        outline: none !important;
        text-decoration: none !important;
    }

    /* برای آی‌کان‌های درون دکمه */
    .icon-btn svg,
    .icon-btn i {
        transition: inherit;
        pointer-events: none; /* جلوگیری از تداخل events */
    }
/*.like-btn:hover,
        .like-btn:focus{
            color: #ff0000 !important;
            fill: #ff0000 !important;*/ /* برای آی‌کان‌های SVG */
/*}*/
/* استایل‌های مربوط به پیجینگ نظرات */
.comments-list {
    max-height: 600px;
    overflow-y: auto;
}

.comment-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

    .comment-loading .spinner-border {
        width: 1.5rem;
        height: 1.5rem;
        margin-bottom: 10px;
    }

.load-more-comments:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* انیمیشن برای نظرات جدید */
.comment-item.new-comment {
    animation: fadeInUp 0.5s ease-out;
    background-color: rgba(13, 110, 253, 0.05);
    border-left: 3px solid #0d6efd !important;
}

.like-count {
    color: #6d767e !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #karname {
        display: none;
    }

    #lique {
        display: none;
    }
}

.post-time, .comment-time {
    font-size: 12px;
}

.icon-btn>i{
    margin-left:2px;
}
.retweet-body > div {
    font-size: small;
    border: 2px solid #e9ecef !important;
    transform: none !important;
    box-shadow: none !important;
    /*background-color: #f8f9fa;*/
}
    .retweet-body > div:hover {
        cursor: pointer;
        transform: none !important;
        border: 2px solid #e9ecef !important;
        box-shadow: none !important;
    }
.imam-badge {
    border: 3px solid yellow !important;
    box-shadow: -1px -6px 4px rgba(255, 255, 0, 0.9) !important;
}

.follow-btn {
    padding: 0;
    color: #2563eb;
}

.unfollow-btn {
    padding: 0;
    color: rgb(220 53 69);
}

.follow-btn:hover {
    color: #2563eb !important;
}

.unfollow-btn:hover {
    color: rgb(220 53 69) !important;
}

.edited {
    font-size: 10px;
    color: rgb(177 177 177);
}

.back-to-top {
    display: none;
    width: 40px;
    height: 40px;
    line-height: 48px;
    text-align: center;
    font-size: 26px;
    color: white;
    position: fixed;
    border-radius: 20px;
    bottom: 20px;
    left: 12px;
    background-color: #1e1f60;
    z-index: 5;
}


    .back-to-top:hover {
        color: white;
        background-color: #4361ee;
        transition: all .5s;
    }
    