/* Post Actions Bar */
.post-actions-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0 25px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn i {
    font-size: 16px;
    color: #667eea;
}

.download-now:hover i {
    color: #27ae60;
}

.buy-now:hover i {
    color: #e74c3c;
}

.comment-btn:hover i {
    color: #3498db;
}

.star-rating-btn:hover i {
    color: #f39c12;
}

/* Rating Container - FIXED: Removed background override */
.rating-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    box-shadow: none;
}

.star-rating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.current-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    font-size: 13px;
}

.current-rating i {
    color: #f39c12;
    font-size: 14px;
}

.rating-text {
    color: #666;
    font-weight: 500;
}

/* Rating Modal */
.rating-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.rating-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.rating-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.star-rating-widget .stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.star-rating-widget .star {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating-widget .star:hover,
.star-rating-widget .star.active {
    color: #f39c12;
}

.star-rating-widget .rating-text {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.rating-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.submit-rating-btn,
.cancel-rating {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-rating-btn {
    background: #27ae60;
    color: white;
}

.submit-rating-btn:hover {
    background: #219653;
}

.cancel-rating {
    background: #e0e0e0;
    color: #333;
}

.cancel-rating:hover {
    background: #d0d0d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-actions-bar {
        gap: 10px;
        padding: 12px 15px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .action-text {
        display: none;
    }
    
    .action-btn i {
        font-size: 14px;
    }
    
    .rating-container {
        gap: 5px;
    }
    
    .current-rating {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .current-rating i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .post-actions-bar {
        justify-content: center;
    }
    
    .rating-container {
        flex-direction: column;
        gap: 5px;
    }
}