/* ===== KULLANICI ETKİLEŞİM BİLEŞENLERİ ===== */

/* ===== EMOJİ TEPKİ SİSTEMİ ===== */
.reaction-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.reaction-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

.reaction-btn.active {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--primary-color);
}

.reaction-btn .count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.reaction-btn.active .count {
    color: var(--primary-color);
}

.reaction-add-btn {
    padding: 6px 10px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.reaction-add-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Emoji Picker */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    display: none;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.emoji-picker.show {
    display: flex;
    animation: fadeInUp 0.2s ease;
}

.emoji-picker button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.emoji-picker button:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: scale(1.2);
}

/* ===== YORUM SİSTEMİ ===== */
.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.comments-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.comments-count {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
}

/* Yorum Formu */
.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.comment-form .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.comment-form .input-wrapper {
    flex: 1;
    position: relative;
}

.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: none;
    min-height: 80px;
    transition: all 0.2s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.comment-form .char-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-form .submit-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-form .submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.comment-form .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Yorum Listesi */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.comment-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.comment-item .content {
    flex: 1;
}

.comment-item .header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-item .author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.comment-item .time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-item .message {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.comment-item .footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.comment-item .reply-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.comment-item .reply-btn:hover {
    color: var(--primary-color);
}

/* Yorum Tepkileri */
.comment-reactions {
    display: flex;
    gap: 6px;
}

.comment-reactions .reaction-btn {
    padding: 4px 8px;
    font-size: 0.85rem;
}

/* ===== CANLI YAYIN ETKİLEŞİMLERİ ===== */
.live-interaction-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin-top: 1rem;
}

.viewer-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-weight: 600;
}

.viewer-count .dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.watching-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.watching-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.watching-btn.active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.reminder-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.reminder-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary-color);
}

.reminder-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== DOSYA PUANLAMA ===== */
.file-rating-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-top: 1rem;
}

.rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Yıldız Puanlama */
.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-rating .star {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.star-rating .star.active {
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rating-info .avg {
    font-weight: 700;
    color: #fbbf24;
    font-size: 1.1rem;
}

/* İşe Yaradı mı? */
.worked-voting {
    display: flex;
    align-items: center;
    gap: 12px;
}

.worked-voting span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.worked-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.worked-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.worked-btn.yes:hover,
.worked-btn.yes.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.worked-btn.no:hover,
.worked-btn.no.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.worked-btn .count {
    font-weight: 600;
}

/* İndirme Sayacı */
.download-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.download-stats i {
    color: var(--primary-color);
}

.download-stats .count {
    font-weight: 600;
    color: var(--text-primary);
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 768px) {
    .reaction-bar {
        gap: 6px;
    }
    
    .reaction-btn {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    
    .comment-form {
        flex-direction: column;
    }
    
    .comment-form .avatar {
        display: none;
    }
    
    .live-interaction-bar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }
    
    .reminder-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .file-rating-section {
        padding: 16px;
    }
    
    .rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .comments-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .comment-item {
        padding: 12px;
    }
    
    .comment-item .avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .comment-form textarea {
        min-height: 60px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .comment-form .submit-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .watching-btn, .reminder-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .viewer-count {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .reaction-bar {
        gap: 4px;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .reaction-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
        border-radius: 16px;
    }
    
    .reaction-add-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .emoji-picker {
        max-width: 180px;
        padding: 6px;
    }
    
    .emoji-picker button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .comments-header h4 {
        font-size: 1rem;
    }
    
    .comment-item .author {
        font-size: 0.85rem;
    }
    
    .comment-item .message {
        font-size: 0.85rem;
    }
    
    .comment-item .footer {
        margin-top: 8px;
    }
    
    .star-rating .star {
        font-size: 1.2rem;
    }
    
    .worked-voting {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .worked-voting span {
        width: 100%;
        font-size: 0.85rem;
    }
    
    .worked-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .download-stats {
        font-size: 0.8rem;
    }
    
    .live-interaction-bar {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .viewer-count {
        font-size: 0.8rem;
    }
    
    .viewer-count .dot {
        width: 6px;
        height: 6px;
    }
}
